SPECS: ruby-mime-types.spec - unify ruby package

glen glen at pld-linux.org
Wed Jan 14 15:33:51 CET 2009


Author: glen                         Date: Wed Jan 14 14:33:51 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unify ruby package

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

---- Diffs:

================================================================
Index: SPECS/ruby-mime-types.spec
diff -u SPECS/ruby-mime-types.spec:1.7 SPECS/ruby-mime-types.spec:1.8
--- SPECS/ruby-mime-types.spec:1.7	Tue Jan 13 19:10:44 2009
+++ SPECS/ruby-mime-types.spec	Wed Jan 14 15:33:46 2009
@@ -1,4 +1,6 @@
 # $Revision$, $Date$
+# TODO:
+# - MIME subdir in ri
 Summary:	MIME::Types for Ruby
 Summary(pl.UTF-8):	MIME::Types dla języka Ruby
 Name:		ruby-mime-types
@@ -14,6 +16,9 @@
 #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
 MIME::Types provides the ability for detailed information about MIME
 entities to be determined and used programmatically.
@@ -28,6 +33,14 @@
 Moduł ten jest w dużej części oparty na perlowym MIME::Types 1.13.
 Więcej informacji znajduje się w głównej dokumentacji.
 
+%package rdoc
+Summary:	Documentation files for mime-types
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+Documentation files for mime-types.
+
 %prep
 %setup -q -n mime-types-%{version}
 cp %{_datadir}/setup.rb .
@@ -41,24 +54,34 @@
 
 rdoc --op rdoc lib
 rdoc --ri --op ri lib
+rm -f ri/created.rid
+rm -rf ri/MIME/InvalidContentType
 
 %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}/*
-%{ruby_ridir}/*
+%{ruby_rubylibdir}/mime/type.rb
+%{ruby_rubylibdir}/mime/types.rb
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+%dir %{ruby_ridir}/MIME
+%{ruby_ridir}/MIME/*.yaml
+%{ruby_ridir}/MIME/Type
+%{ruby_ridir}/MIME/Types
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -66,6 +89,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2009/01/14 14:33:46  glen
+- unify ruby package
+
 Revision 1.7  2009/01/13 18:10:44  uzsolt
 - change setup.rb BR version
 
================================================================

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



More information about the pld-cvs-commit mailing list