rpms/perl-MIME-tools/FC-5 perl-MIME-tools.spec,1.13,1.14

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Tue Aug 8 15:27:34 UTC 2006


Author: pghmcfc

Update of /cvs/extras/rpms/perl-MIME-tools/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16369

Modified Files:
	perl-MIME-tools.spec 
Log Message:
resync with devel



Index: perl-MIME-tools.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-MIME-tools/FC-5/perl-MIME-tools.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- perl-MIME-tools.spec	19 Apr 2006 15:57:49 -0000	1.13
+++ perl-MIME-tools.spec	8 Aug 2006 15:27:34 -0000	1.14
@@ -1,6 +1,6 @@
 Name:           perl-MIME-tools
 Version:        5.420
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Modules for parsing and creating MIME entities in Perl
 Group:          Development/Libraries
 License:        Artistic or GPL
@@ -31,6 +31,10 @@
 %global provfilt /bin/sh -c "%{__perl_provides} | %{__grep} -Fvx 'perl(main)'"
 %define __perl_provides %{provfilt}
 
+# The more useful examples will go in %{_bindir}
+%{__mkdir} useful-examples
+%{__mv} examples/mime{dump,encode,explode,postcard,send} useful-examples
+
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 %{__make} %{?_smp_mflags}
@@ -42,6 +46,17 @@
 /usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';'
 %{__chmod} -R u+w %{buildroot}/*
 
+# Put the more useful examples in %{_bindir}
+%{__install} -d -m 755 %{buildroot}%{_bindir}
+%{__install} -d -m 755 %{buildroot}%{_mandir}/man1
+cd useful-examples
+for ex in mime*
+do
+  %{__install} -p -m 755 ${ex} %{buildroot}%{_bindir}/
+  /usr/bin/pod2man ${ex} > %{buildroot}%{_mandir}/man1/${ex}.1
+done
+cd -
+
 %check
 if %{__perl} -e "use MIME::QuotedPrint 3.03" 2>/dev/null; then
   %{__make} test
@@ -60,9 +75,14 @@
 # perl, perl-MIME-tools, and perl-MailTools, which are all deps anyway.
 %doc examples
 %{perl_vendorlib}/MIME/
+%{_bindir}/mime*
+%{_mandir}/man1/mime*.1*
 %{_mandir}/man3/MIME::*.3pm*
 
 %changelog
+* Tue Aug  8 2006 Paul Howarth <paul at city-fan.org> 5.420-2
+- Install the more useful examples in %%{_bindir} (#201691)
+
 * Wed Apr 19 2006 Paul Howarth <paul at city-fan.org> - 5.420-1
 - 5.420
 - Cosmetic changes reflecting new maintainer's preferences




More information about the fedora-extras-commits mailing list