commit 0b0a18048d5e0a2327a796b6e520231f4d55e7c3 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Mon Mar 19 15:44:34 2012 +0000 Update to 1.456 - Update to 1.456 - Fix some spurious "Date" headers in badly-written tests - Fix a horrendous bug that would let you end up with: Content-Type: image/jpeg; charset="utf-8" - Correct test expectations for Encodings 1.313 - Simplify provides filter - Use one buildreq per line for readability - Add module version requirements from META.yml - BR: perl(base) - Add runtime dependency on perl(Email::Simple::Creator) ≥ 1.4 - Drop redundant buildreqs perl(Email::Date) and perl(IO::All) - Don't need to remove empty directories from buildroot - Use %{_fixperms} macro rather than our own chmod incantation - Use DESTDIR rather than PERL_INSTALL_ROOT - Don't use macros for commands - Drop %defattr, redundant since rpm 4.4 - Make %files list more explicit .gitignore | 1 + perl-Email-MIME-Creator.spec | 65 +++++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 45 insertions(+), 23 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..062f3bd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Email-MIME-Creator-[0-9.]*.tar.gz diff --git a/perl-Email-MIME-Creator.spec b/perl-Email-MIME-Creator.spec index cefb909..ac0a037 100644 --- a/perl-Email-MIME-Creator.spec +++ b/perl-Email-MIME-Creator.spec @@ -1,17 +1,25 @@ Name: perl-Email-MIME-Creator -Version: 1.453 -Release: 2%{?dist} +Version: 1.456 +Release: 1%{?dist} Summary: Email::MIME constructor for starting anew Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Email-MIME-Creator/ Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-MIME-Creator-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: perl(ExtUtils::MakeMaker), perl(IO::All), perl(Email::MIME), perl(Email::Date) -BuildRequires: perl(Email::MIME::Modifier), perl(Email::Simple), perl(Email::Simple::Creator) -BuildRequires: perl(Test::More), perl(Test::Pod), perl(Test::Pod::Coverage) +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildRequires: perl(base) +BuildRequires: perl(Email::MIME) >= 1.82 +BuildRequires: perl(Email::MIME::Encodings) >= 1.313 +BuildRequires: perl(Email::MIME::Modifier) >= 1.440 +BuildRequires: perl(Email::Simple) >= 1.92 +BuildRequires: perl(Email::Simple::Creator) >= 1.4 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.47 +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) BuildArch: noarch -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Email::Simple::Creator) >= 1.4 %description This module provides an Email::MIME constructor. @@ -19,26 +27,21 @@ This module provides an Email::MIME constructor. %prep %setup -q -n Email-MIME-Creator-%{version} -# Filter false positive provides. -cat <<EOF > %{name}-prov -#!/bin/sh -%{__perl_provides} \ -| grep -v 'perl(Email::MIME)' -EOF -%define __perl_provides %{_builddir}/Email-MIME-Creator-%{version}/%{name}-prov -chmod +x %{__perl_provides} +# Provides: filter perl(Email::MIME) +%global provfilt /bin/sh -c "%{__perl_provides} | grep -Fvx 'perl(Email::MIME)'" +%define __perl_provides %{provfilt} + %build sed -i '/LICENSE/ d' Makefile.PL -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %install -rm -rf $RPM_BUILD_ROOT _docs -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT +make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* +%{_fixperms} $RPM_BUILD_ROOT %check make test @@ -47,12 +50,30 @@ make test rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root,-) %doc README LICENSE Changes %{perl_vendorlib}/Email/ -%{_mandir}/man3/*.3* +%{_mandir}/man3/Email::MIME::Creator.3pm* %changelog +* Mon Mar 19 2012 Paul Howarth <paul@xxxxxxxxxxxx> - 1.456-1 +- update to 1.456 + - fix some spurious "Date" headers in badly-written tests + - fix a horrendous bug that would let you end up with: + Content-Type: image/jpeg; charset="utf-8" + - correct test expectations for Encodings 1.313 +- simplify provides filter +- use one buildreq per line for readability +- add module version requirements from META.yml +- BR: perl(base) +- add runtime dependency on perl(Email::Simple::Creator) ≥ 1.4 +- drop redundant buildreqs perl(Email::Date) and perl(IO::All) +- don't need to remove empty directories from buildroot +- use %%{_fixperms} macro rather than our own chmod incantation +- use DESTDIR rather than PERL_INSTALL_ROOT +- don't use macros for commands +- drop %%defattr, redundant since rpm 4.4 +- make %%files list more explicit + * Thu Jul 5 2007 Tom "spot" Callaway <tcallawa@xxxxxxxxxx> - 1.453-2 - fix false provide (Email::MIME) diff --git a/sources b/sources index bfd487a..b314772 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -29c0550e0320d53f2b9f933f0442ab17 Email-MIME-Creator-1.453.tar.gz +3e34396a03fe3c65170909fb57f116cc Email-MIME-Creator-1.456.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel