Author: glen                         Date: Tue Jan 13 17:05:59 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated

---- Files affected:
SPECS:
   template-ruby.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/template-ruby.spec
diff -u SPECS/template-ruby.spec:1.1 SPECS/template-ruby.spec:1.2
--- SPECS/template-ruby.spec:1.1        Sun Oct 12 11:38:41 2008
+++ SPECS/template-ruby.spec    Tue Jan 13 18:05:54 2009
@@ -8,13 +8,14 @@
 # Source0-md5: -
 Group:         Development/Languages
 URL:           http://rubyforge.org/projects/.../
-BuildRequires: rpmbuild(macros) >= 1.277
+BuildRequires: rpmbuild(macros) >= 1.484
+BuildRequires: ruby >= 1:1.8.6
 BuildRequires: ruby-modules
 %{?ruby_mod_ver_requires_eq}
 #BuildArch:    noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# nothing to be placed there. we're not noarc only because of ruby packaging
+# nothing to be placed there. we're not noarch only because of ruby packaging
 %define                _enable_debug_packages  0
 
 %description
@@ -23,6 +24,7 @@
 %package rdoc
 Summary:       Documentation files for ...
 Group:         Documentation
+Requires:      ruby >= 1:1.8.7-4
 
 %description rdoc
 Documentation files for ....
@@ -30,16 +32,26 @@
 %prep
 %setup -q -n ...-%{version}
 
+# gem install
+%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
+find -newer README  -o -print | xargs touch --reference %{SOURCE0}
+
+cp /usr/share/setup.rb .
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %build
 rdoc --ri --op ri lib
 rdoc --op rdoc lib
-%{__rm} -f ri/created.rid
+rm -f ri/created.rid
 
 %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 rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -50,7 +62,8 @@
 
 %files rdoc
 %defattr(644,root,root,755)
-%{ruby_ridir}/ri/...
+%{ruby_rdocdir}/%{name}-%{version}
+%{ruby_ridir}/...
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -58,5 +71,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/01/13 17:05:54  glen
+- updated
+
 Revision 1.1  2008/10/12 09:38:41  glen
 - template for ruby too
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/template-ruby.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to