rpms/perl-MIME-tools/devel perl-MIME-tools.spec, 1.12, 1.13 sources, 1.5, 1.6 .cvsignore, 1.5, 1.6

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Wed Apr 19 14:14:08 UTC 2006


Author: pghmcfc

Update of /cvs/extras/rpms/perl-MIME-tools/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14385

Modified Files:
	perl-MIME-tools.spec sources .cvsignore 
Log Message:
Update to 5.420
Cosmetic changes reflecting new maintainer's preferences
Examples remain executable since they don't introduce new dependencies
Simplify provides filter



Index: perl-MIME-tools.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-MIME-tools/devel/perl-MIME-tools.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- perl-MIME-tools.spec	16 Jan 2006 20:47:22 -0000	1.12
+++ perl-MIME-tools.spec	19 Apr 2006 14:14:08 -0000	1.13
@@ -1,75 +1,74 @@
 Name:           perl-MIME-tools
-Version:        5.419
+Version:        5.420
 Release:        1%{?dist}
 Summary:        Modules for parsing and creating MIME entities in Perl
-
 Group:          Development/Libraries
 License:        Artistic or GPL
 URL:            http://search.cpan.org/dist/MIME-tools/
-Source0:        http://www.cpan.org/authors/id/D/DS/DSKOLL/MIME-tools-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-broot-%(%{__id_u} -n)
-
+Source0:        http://search.cpan.org/CPAN/authors/id/D/DS/DSKOLL/MIME-tools-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(IO::Stringy)
-BuildRequires:  perl(MIME::Base64) >= 2.20
-BuildRequires:  perl-MailTools
+BuildRequires:  perl(IO::Stringy)       >= 1.211
+BuildRequires:  perl(MIME::Base64)      >= 2.20
+BuildRequires:  perl-MailTools          >= 1.50
 BuildRequires:  perl(MIME::QuotedPrint)
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
-MIME-tools is a collection of Perl5 MIME:: modules for parsing,
-decoding, *and generating* single- or multipart (even nested
-multipart) MIME messages. (Yes, kids, that means you can send messages
-with attached GIF files).
+MIME-tools is a collection of Perl5 MIME:: modules for parsing, decoding, and
+generating single- or multipart (even nested multipart) MIME messages.
 
+Yes, kids, that means you can send messages with attached GIF files.
 
 %prep
 %setup -q -n MIME-tools-%{version}
-chmod 644 examples/* # avoid dependencies
-f=ChangeLog ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
-cat << \EOF > %{name}-prov
-#!/bin/sh
-%{__perl_provides} $* | grep -v '^perl(main)$'
-EOF
-%define __perl_provides %{_builddir}/MIME-tools-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
 
+# Fix character encoding
+/usr/bin/iconv -f iso-8859-1 -t utf-8 ChangeLog > ChangeLog.utf8
+%{__mv} ChangeLog.utf8 ChangeLog
+
+# Remove redundant provides
+%global provfilt /bin/sh -c "%{__perl_provides} | %{__grep} -Fvx 'perl(main)'"
+%define __perl_provides %{provfilt}
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
-
+%{__make} %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/set-version.pl
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+%{__rm} -rf %{buildroot}
+%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
+/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
+/usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';'
+%{__chmod} -R u+w %{buildroot}/*
 
 %check
-if %{__perl} -e "use MIME::QuotedPrint 3.03" 2>/dev/null ; then
-  make test
+if %{__perl} -e "use MIME::QuotedPrint 3.03" 2>/dev/null; then
+  %{__make} test
 else
   # Expected failures: 4, 5 and 7-11 of t/Misc.t
-  make test || :
+  %{__make} test || :
 fi
 
-
 %clean
-rm -rf $RPM_BUILD_ROOT
-
+%{__rm} -rf %{buildroot}
 
 %files
-%defattr(-,root,root,-)
-%doc ChangeLog COPYING README README-OR-DIE examples/
+%defattr(-,root,root,0755)
+%doc README* COPYING ChangeLog
+# Adding examples introduces additional deps, but these are all satisfied by
+# perl, perl-MIME-tools, and perl-MailTools, which are all deps anyway.
+%doc examples
 %{perl_vendorlib}/MIME/
-%{_mandir}/man3/MIME::*.3*
-
+%{_mandir}/man3/MIME::*.3pm*
 
 %changelog
+* Wed Apr 19 2006 Paul Howarth <paul at city-fan.org> - 5.420-1
+- 5.420
+- Cosmetic changes reflecting new maintainer's preferences
+- Examples remain executable since they don't introduce new dependencies
+- Simplify provides filter
+
 * Mon Jan 16 2006 Ville Skyttä <ville.skytta at iki.fi> - 5.419-1
 - 5.419.
 - Don't provide perl(main).


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-MIME-tools/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- sources	16 Jan 2006 20:47:22 -0000	1.5
+++ sources	19 Apr 2006 14:14:08 -0000	1.6
@@ -1 +1 @@
-1c033072b751e27ecb096bc155a7e406  MIME-tools-5.419.tar.gz
+4db6505cc0132c80c5a9cc54f443a21a  MIME-tools-5.420.tar.gz


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-MIME-tools/devel/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- .cvsignore	16 Jan 2006 20:47:22 -0000	1.5
+++ .cvsignore	19 Apr 2006 14:14:08 -0000	1.6
@@ -1 +1 @@
-MIME-tools-5.419.tar.gz
+MIME-tools-5.420.tar.gz




More information about the fedora-extras-commits mailing list