rpms/perl-MailTools/FC-5 perl-MailTools-1.74-CPAN-20726.patch, NONE, 1.1 perl-MailTools.spec, 1.16, 1.17

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Fri Jul 28 14:24:00 UTC 2006


Author: pghmcfc

Update of /cvs/extras/rpms/perl-MailTools/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32480

Modified Files:
	perl-MailTools.spec 
Added Files:
	perl-MailTools-1.74-CPAN-20726.patch 
Log Message:
resync with devel


perl-MailTools-1.74-CPAN-20726.patch:

--- NEW FILE perl-MailTools-1.74-CPAN-20726.patch ---
--- Mail/Util.pm.orig	2006-01-21 03:16:10.000000000 -0600
+++ Mail/Util.pm	2006-07-27 14:10:14.000000000 -0500
@@ -13,7 +13,7 @@
 use Exporter ();
 
 BEGIN {
-    require 5.000;
+    require 5.006_001;
 
     $VERSION = "1.74";
 
@@ -102,7 +102,7 @@
     local *FH;
     local $_;
 
-    open(FH,"< $file") or
+    open(FH,'<',$file) or
 	do {
 	    require Carp;
 	    Carp::croak("cannot open '$file': $!\n");


Index: perl-MailTools.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-MailTools/FC-5/perl-MailTools.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- perl-MailTools.spec	15 Mar 2006 07:49:15 -0000	1.16
+++ perl-MailTools.spec	28 Jul 2006 14:24:00 -0000	1.17
@@ -1,52 +1,52 @@
 Summary:        Various mail-related perl modules
 Name:           perl-MailTools
 Version:        1.74
-Release:        1%{?dist}
-
+Release:        2%{?dist}
 License:        GPL or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/MailTools/
-Source0:        http://www.cpan.org/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
+Source0:        http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
+Patch0:         perl-MailTools-1.74-CPAN-20726.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildArch:      noarch
-BuildRequires:  perl >= 1:5.6.1
 BuildRequires:  perl(Net::Domain)
 BuildRequires:  perl(Net::SMTP)
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 MailTools is a set of Perl modules related to mail applications.
 
-
 %prep
 %setup -q -n MailTools-%{version}
+%patch0 -p0
+# Set up example scripts
 cd examples
-for file in *.PL ; do %{__perl} $file ; done ; chmod -x *_demo
-rm *.PL # yeah, causes warnings from MakeMaker, but we don't care
-cd ..
-
+for file in *.PL
+do
+    %{__perl} $file
+done
+%{__chmod} -x *_demo
+# Remove example-generation scripts, no longer needed
+# It causes warnings from MakeMaker, but we don't care
+%{__rm} *.PL
+cd -
 
 %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 ';'
-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
-make test
-
+%{__make} test
 
 %clean
-rm -rf $RPM_BUILD_ROOT
-
+%{__rm} -rf %{buildroot}
 
 %files
 %defattr(-,root,root,0755)
@@ -55,8 +55,12 @@
 %{perl_vendorlib}/Mail/
 %{_mandir}/man3/Mail::*.3pm*
 
-
 %changelog
+* Fri Jul 28 2008 Paul Howarth <paul at city-fan.org> 1.74-2
+- cosmetic spec file changes
+- fix CPAN RT#20726 (RH #200450), allowing Mail::Util::read_mbox() to open
+  files with weird names
+
 * Wed Mar  1 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.74-1
 - 1.74.
 




More information about the fedora-extras-commits mailing list