commit 447b223db57c96f4b7c7c8e1e15198d5510fe32d Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Mon Mar 19 15:33:52 2012 +0000 Update to 1.424 - Update to 1.424 - Fixed header: why was it creating LFCR? - Normalize line endings to CRLF in body - Improve reliability of existing line-ending code - Improve tests - Packaging improvements - Update Email::Simple prereq version (CPAN RT#28520) - Replace Email::Date prereq with Email::Date::Format - One buildreq per line for readability - Add module version requirements from META.yml - Add runtime dependency on perl(Email::Date::Format) - Simplify provides filter - Don't need to remove empty directories from buildroot - Don't use macros for commands - Use %{_fixperms} macro rather than our own chmod incantation - Use DESTDIR rather than PERL_INSTALL_ROOT - Make %files list more explicit - Drop %defattr, redundant since rpm 4.4 - Package Changes file .gitignore | 1 + perl-Email-Simple-Creator.spec | 63 ++++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 43 insertions(+), 23 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..4681066 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Email-Simple-Creator-[0-9.]*.tar.gz diff --git a/perl-Email-Simple-Creator.spec b/perl-Email-Simple-Creator.spec index d84d644..5be39ad 100644 --- a/perl-Email-Simple-Creator.spec +++ b/perl-Email-Simple-Creator.spec @@ -1,17 +1,22 @@ Name: perl-Email-Simple-Creator -Version: 1.420 -Release: 3%{?dist} +Version: 1.424 +Release: 1%{?dist} Summary: Email::Simple constructor for starting anew Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Email-Simple-Creator/ Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Simple-Creator-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: perl(ExtUtils::MakeMaker), perl(Email::Date), perl(Test::More) -BuildRequires: perl(Email::Simple), perl(Test::Pod), perl(Test::Pod::Coverage) +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildRequires: perl(Email::Date::Format) >= 1.000 +BuildRequires: perl(Email::Simple) >= 2.003 +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(Email::Simple) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Email::Date::Format) >= 1.000 +Requires: perl(Email::Simple) >= 2.003 %description This software provides a constructor to Email::Simple for creating @@ -20,26 +25,20 @@ messages from scratch. %prep %setup -q -n Email-Simple-Creator-%{version} -# Filter false positive provides. -cat <<EOF > %{name}-prov -#!/bin/sh -%{__perl_provides} \ -| grep -v 'perl(Email::Simple)' -EOF -%define __perl_provides %{_builddir}/Email-Simple-Creator-%{version}/%{name}-prov -chmod +x %{__perl_provides} +# Provides: filter perl(Email::Simple) +%global provfilt /bin/sh -c "%{__perl_provides} | grep -Fvx 'perl(Email::Simple)'" +%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 +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 @@ -48,12 +47,32 @@ make test rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root,-) -%doc README LICENSE +%doc Changes README LICENSE %{perl_vendorlib}/Email/ -%{_mandir}/man3/*.3* +%{_mandir}/man3/Email::Simple::Creator.3pm* %changelog +* Mon Mar 19 2012 Paul Howarth <paul@xxxxxxxxxxxx> - 1.424-1 +- update to 1.424 + - Fixed header: why was it creating LFCR? + - Normalize line endings to CRLF in body + - Improve reliability of existing line-ending code + - Improve tests + - Packaging improvements + - Update Email::Simple prereq version (CPAN RT#28520) + - Replace Email::Date prereq with Email::Date::Format +- one buildreq per line for readability +- add module version requirements from META.yml +- add runtime dependency on perl(Email::Date::Format) +- simplify provides filter +- don't need to remove empty directories from buildroot +- don't use macros for commands +- use %%{_fixperms} macro rather than our own chmod incantation +- use DESTDIR rather than PERL_INSTALL_ROOT +- make %%files list more explicit +- drop %%defattr, redundant since rpm 4.4 +- package Changes file + * Thu Jul 5 2007 Tom "spot" Callaway <tcallawa@xxxxxxxxxx> - 1.420-3 - fix false provide of Email::Simple diff --git a/sources b/sources index ceb3b84..33b7c56 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0129737130e106af223ac1e3f03b55b0 Email-Simple-Creator-1.420.tar.gz +423317f420cc64183d933db1cb15a8bb Email-Simple-Creator-1.424.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