SPECS: ruby-ActionMailer.spec - rdoc subpackage

glen glen at pld-linux.org
Tue Oct 14 16:09:06 CEST 2008


Author: glen                         Date: Tue Oct 14 14:09:06 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rdoc subpackage

---- Files affected:
SPECS:
   ruby-ActionMailer.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/ruby-ActionMailer.spec
diff -u SPECS/ruby-ActionMailer.spec:1.18 SPECS/ruby-ActionMailer.spec:1.19
--- SPECS/ruby-ActionMailer.spec:1.18	Thu Mar  8 07:40:05 2007
+++ SPECS/ruby-ActionMailer.spec	Tue Oct 14 16:09:01 2008
@@ -1,22 +1,25 @@
 # $Revision$, $Date$
+%define pkgname actionmailer
 Summary:	Mail generator library for Ruby
 Summary(pl.UTF-8):	Biblioteka do generowania listów w języku Ruby
 Name:		ruby-ActionMailer
-%define tarname actionmailer
 Version:	1.1.5
 Release:	1
 License:	Ruby-alike
 Group:		Development/Languages
-Source0:	http://rubyforge.org/download.php/7648/%{tarname}-%{version}.tgz
+Source0:	http://rubyforge.org/download.php/7648/actionmailer-%{version}.tgz
 # Source0-md5:	48c3b18413c52dcf731c459c395489a7
 URL:		http://actionpack.rubyonrails.org/
-BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	rpmbuild(macros) >= 1.484
 BuildRequires:	ruby-modules
 %{?ruby_mod_ver_requires_eq}
 Requires:	ruby-ActionPack >= 1.7.0
 #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
 Action Mailer uses the Action Pack library to generate template-driven
 email.
@@ -25,19 +28,29 @@
 Action Mailer używa biblioteki Action Pack do generowania listów
 elektronicznych na podstawie szablonów.
 
+%package rdoc
+Summary:	Documentation files for ActionMailer
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+Documentation files for ActionMailer.
+
 %prep
-%setup -q -n %{tarname}-%{version}
+%setup -q -n actionmailer-%{version}
+rm -rf lib/action_mailer/vendor
 
 %build
-rm -rf lib/action_mailer/vendor
 rdoc --ri --op ri lib
 rdoc --op rdoc lib
+%{__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}/%{name}-%{version}-%{release}}
 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}-%{release}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -46,8 +59,12 @@
 %defattr(644,root,root,755)
 %doc README rdoc
 %{ruby_rubylibdir}/*
-%{ruby_ridir}/ActionMailer
-%{ruby_ridir}/MailHelper
+%{ruby_ridir}/ri/ActionMailer
+%{ruby_ridir}/ri/MailHelper
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}-%{release}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -55,6 +72,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2008/10/14 14:09:01  glen
+- rdoc subpackage
+
 Revision 1.18  2007/03/08 06:40:05  aredridel
 - massive attack: correct ri output path for ruby 1.8.6
 
@@ -68,12 +88,12 @@
 - up to 1.1.5
 
 Revision 1.14  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.13  2005/12/29 16:59:47  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-ActionMailer.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list