SPECS: ruby-builder.spec - rdoc subpackage, use tgz to build

glen glen at pld-linux.org
Tue Jan 6 08:27:44 CET 2009


Author: glen                         Date: Tue Jan  6 07:27:43 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rdoc subpackage, use tgz to build

---- Files affected:
SPECS:
   ruby-builder.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/ruby-builder.spec
diff -u SPECS/ruby-builder.spec:1.7 SPECS/ruby-builder.spec:1.8
--- SPECS/ruby-builder.spec:1.7	Thu Dec 13 10:25:27 2007
+++ SPECS/ruby-builder.spec	Tue Jan  6 08:27:38 2009
@@ -6,15 +6,19 @@
 Release:	1
 License:	Ruby's
 Group:		Development/Languages
-Source0:	http://rubyforge.org/frs/download.php/21724/builder-%{version}.gem
-# Source0-md5:	e96a525d9e0b42a2e2d5e77cbd02eb72
-URL:		http://builder.rubyforge.org
+Source0:	http://rubyforge.org/frs/download.php/21725/builder-%{version}.tgz
+# Source0-md5:	31e6ecd35af1659272659610a51a8211
+URL:		http://rubyforge.org/projects/builder
 BuildRequires:	rake
 BuildRequires:	rpmbuild(macros) >= 1.277
-BuildRequires:	setup.rb = 3.3.1
+BuildRequires:	setup.rb >= 3.3.1
+%{?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
+%define		_enable_debug_packages	0
+
 %description
 Simple builder to facilitate programatic generation of XML markup.
 
@@ -22,12 +26,19 @@
 Proste narzędzie do budowania ułatwiające programowe generowanie
 znaczników XML.
 
+%package rdoc
+Summary:	Documentation files for builder
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+Documentation files for builder.
+
 %prep
-%setup -q -c
-tar xf %{SOURCE0} -O data.tar.gz | tar xzv-
-cp %{_datadir}/setup.rb .
+%setup -q -n builder-%{version}
 
 %build
+cp /usr/share/setup.rb .
 ruby setup.rb config \
 	--rbdir=%{ruby_rubylibdir} \
 	--sodir=%{ruby_archdir}
@@ -35,26 +46,33 @@
 ruby setup.rb setup
 
 rdoc --op rdoc lib
+# /usr/lib/ruby/1.8/rdoc/markup/simple_markup/to_flow.rb:181:
+#in `convert_special': Unhandled special: Special: type=17, text="<!-- HI -->" (RuntimeError)
 #rdoc --ri --op ri lib
+rm -f ri/created.rid
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
 
 ruby setup.rb install \
 	--prefix=$RPM_BUILD_ROOT
 
 #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 rdoc
-%{ruby_rubylibdir}/builder*
 %{ruby_rubylibdir}/blankslate.rb
-#%{ruby_ridir}/*
+%{ruby_rubylibdir}/builder
+%{ruby_rubylibdir}/builder.rb
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -62,6 +80,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2009/01/06 07:27:38  glen
+- rdoc subpackage, use tgz to build
+
 Revision 1.7  2007/12/13 09:25:27  aredridel
 - 2.1.2
 
================================================================

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



More information about the pld-cvs-commit mailing list