SPECS: ruby-ActiveSupport.spec - update to 2.0.5; -rdoc subpackage
glen
glen at pld-linux.org
Tue Jan 6 08:18:13 CET 2009
Author: glen Date: Tue Jan 6 07:18:13 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- update to 2.0.5; -rdoc subpackage
---- Files affected:
SPECS:
ruby-ActiveSupport.spec (1.22 -> 1.23)
---- Diffs:
================================================================
Index: SPECS/ruby-ActiveSupport.spec
diff -u SPECS/ruby-ActiveSupport.spec:1.22 SPECS/ruby-ActiveSupport.spec:1.23
--- SPECS/ruby-ActiveSupport.spec:1.22 Thu Dec 13 17:03:45 2007
+++ SPECS/ruby-ActiveSupport.spec Tue Jan 6 08:18:08 2009
@@ -1,53 +1,125 @@
# $Revision$, $Date$
+# TODO
+# - get rid of internal pkgs
+# vendor/builder-2.1.2
+# vendor/xml-simple-1.0.11
+# vendor/xml-simple-1.0.11/xmlsimple.rb
Summary: Mail generator library for Ruby
Summary(pl.UTF-8): Biblioteka do generowania listów w języku Ruby
Name: ruby-ActiveSupport
-%define tarname activesupport
-Version: 2.0.1
+Version: 2.0.5
Release: 1
License: Ruby-alike
Group: Development/Languages
-Source0: http://rubyforge.org/frs/download.php/28871/%{tarname}-%{version}.tgz
-# Source0-md5: 2699c85ff20b7a3766b8dd418763e6b7
-Patch0: %{name}-nogems.patch
-URL: http://www.rubyonrails.com/
+Source0: http://rubyforge.org/frs/download.php/45353/activesupport-%{version}.tgz
+# Source0-md5: 662a9b2a43c43ed76bb422fe884f8699
+Patch0: %{name}-nogems.patch
+URL: http://rubyforge.org/projects/activesupport/
BuildRequires: rpmbuild(macros) >= 1.277
+BuildRequires: ruby >= 1:1.8.6
BuildRequires: ruby-modules
%{?ruby_mod_ver_requires_eq}
-Requires: ruby-builder >= 2.1.2
Requires: ruby-breakpoint
+Requires: ruby-builder >= 2.1.2
Requires: ruby-xml-simple >= 1.0.11
#BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# nothing to be placed there. we're not noarch only because of ruby packaging
+%define _enable_debug_packages 0
+
%description
Utility libraries for Ruby on Rails.
%description -l pl.UTF-8
Biblioteki narzędziowe dla Ruby on Rails.
+%package rdoc
+Summary: Documentation files for ActiveSupport
+Summary(pl.UTF-8): Dokumentacja do biblioteki ActiveSupport
+Group: Documentation
+Requires: ruby >= 1:1.8.7-4
+
+%description rdoc
+Documentation files for ActiveSupport.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja do biblioteki ActiveSupport.
+
%prep
-%setup -q -n %{tarname}-%{version}
+%setup -q -n activesupport-%{version}
%patch0 -p1
%build
-#rdoc --ri --op ri lib
+rdoc --ri --op ri lib
rdoc --op rdoc lib
+rm -f ri/created.rid
+# external packages?
+rm -rf ri/Array
+rm -rf ri/BigDecimal
+rm -rf ri/BlankSlate
+rm -rf ri/Builder
+rm -rf ri/CGI
+rm -rf ri/Class
+rm -rf ri/ClassInheritableAttributes
+rm -rf ri/Date
+rm -rf ri/DateTime
+rm -rf ri/Dependencies
+rm -rf ri/Enumerable
+rm -rf ri/Exception
+rm -rf ri/FalseClass
+rm -rf ri/File
+rm -rf ri/Fixnum
+rm -rf ri/Float
+rm -rf ri/Hash
+rm -rf ri/HashWithIndifferentAccess
+rm -rf ri/Inflector
+rm -rf ri/Integer
+rm -rf ri/Kernel
+rm -rf ri/Logger
+rm -rf ri/MissingSourceFile
+rm -rf ri/Module
+rm -rf ri/NameError
+rm -rf ri/NilClass
+rm -rf ri/Numeric
+rm -rf ri/Object
+rm -rf ri/OrderedOptions
+rm -rf ri/Pathname
+rm -rf ri/Proc
+rm -rf ri/Range
+rm -rf ri/Regexp
+rm -rf ri/REXML
+rm -rf ri/String
+rm -rf ri/Symbol
+rm -rf ri/Test
+rm -rf ri/Time
+rm -rf ri/TimeZone
+rm -rf ri/TrueClass
+rm -rf ri/XmlSimple
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
-#cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGELOG rdoc
-%{ruby_rubylibdir}/*
-#%{ruby_ridir}/ActiveSupport
+%doc CHANGELOG
+%{ruby_rubylibdir}/active_support
+%{ruby_rubylibdir}/active_support.rb
+%{ruby_rubylibdir}/activesupport.rb
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+%{ruby_ridir}/ActiveSupport
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -55,6 +127,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.23 2009/01/06 07:18:08 glen
+- update to 2.0.5; -rdoc subpackage
+
Revision 1.22 2007/12/13 16:03:45 qboosh
- formatting
@@ -83,12 +158,12 @@
- up to 1.2.5
Revision 1.13 2005/12/31 10:36:33 twittner
-- change %%ruby_mod_ver_requires_eq to %%{?ruby_mod_ver_requires_eq} -
+- change %ruby_mod_ver_requires_eq to %{?ruby_mod_ver_requires_eq} -
expand this macro only if defined to avoid parse error when appropriate
BRs is not installed yet (solution provided by glen)
Revision 1.12 2005/12/29 16:59:48 twittner
-- replace R: ruby-modules with %%ruby_mod_ver_requires_eq macro
+- replace R: ruby-modules with %ruby_mod_ver_requires_eq macro
defined as `Requires: ruby-modules(ver) = 1.8' where `1.8' is
major ruby version taken from rbconfig
- add BR: rpmbuild(macros) >= 1.277 with aforementioned macros
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ruby-ActiveSupport.spec?r1=1.22&r2=1.23&f=u
More information about the pld-cvs-commit
mailing list