commit e0dd7dab41a97896312bb0503e1bfe6e26c0ca3d Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Mon Mar 23 17:40:19 2015 +0000 Update to 1.5100 - New upstream release 1.5100 - Moved code to github - Added xz support (CPAN RT#68286) - Added lzip support (http://sourceforge.net/p/grepmail/patches/8/) - Added POD test - Fixed hang in pure Perl implementation for a malformed mbox file scenario - Fixed $OLDSTDERR used only once warning (CPAN RT#58053) - Fixed enabling of warnings (CPAN RT#79898) - Fixed a division by zero error for malformed mbox files that start with a newline (CPAN RT#69469) - Fix bug in M::M::Perl documentation - Add more cache file validation - Classify buildreqs by usage - Add patch to fix build error (CPAN RT#103025) - Use %license where possible - Drop %defattr, redundant since rpm 4.4 .gitignore | 2 +- Mail-Mbox-MessageParser-1.5002-warning.patch | 21 ------- perl-Mail-Mbox-MessageParser.spec | 84 ++++++++++++++++++++++------ rt103025.patch | 11 ++++ sources | 2 +- 5 files changed, 79 insertions(+), 41 deletions(-) --- diff --git a/.gitignore b/.gitignore index d118793..7ba11c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -Mail-Mbox-MessageParser-1.5002.tar.gz +/Mail-Mbox-MessageParser-[0-9.]*.tar.gz diff --git a/perl-Mail-Mbox-MessageParser.spec b/perl-Mail-Mbox-MessageParser.spec index 08d841c..7e9e9eb 100644 --- a/perl-Mail-Mbox-MessageParser.spec +++ b/perl-Mail-Mbox-MessageParser.spec @@ -1,22 +1,48 @@ Summary: A fast and simple mbox folder reader Name: perl-Mail-Mbox-MessageParser -Version: 1.5002 -Release: 17%{?dist} +Version: 1.5100 +Release: 1%{?dist} License: GPL+ Group: Development/Libraries Url: http://search.cpan.org/dist/Mail-Mbox-MessageParser/ Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCOPPIT/Mail-Mbox-MessageParser-%{version}.tar.gz Source1: perl-module-version-filter -Patch0: Mail-Mbox-MessageParser-1.5002-warning.patch +Patch0: rt103025.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch -BuildRequires: grep, gzip, bzip2, /usr/bin/diff +# Module Build +BuildRequires: grep, gzip, bzip2, lzip, xz, /usr/bin/diff +BuildRequires: perl +BuildRequires: perl(Config) +BuildRequires: perl(Cwd) BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::Manifest) +BuildRequires: perl(Fcntl) +BuildRequires: perl(File::Find) +BuildRequires: perl(FindBin) +BuildRequires: perl(warnings) +# Module Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Temp) BuildRequires: perl(FileHandle::Unget) +BuildRequires: perl(Storable) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Test Suite +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(FileHandle) +BuildRequires: perl(lib) BuildRequires: perl(Test::More) BuildRequires: perl(Text::Diff) +# Optional Tests +BuildRequires: perl(Test::Pod) >= 1.00 +# Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -Requires: grep, gzip, bzip2, /usr/bin/diff +Requires: grep, gzip, bzip2, lzip, xz, /usr/bin/diff +Requires: perl(Storable) %description Mail::Mbox::MessageParser is a feature-poor but very fast mbox parser. It uses @@ -26,8 +52,8 @@ information, GNU grep, or highly optimized Perl. %prep %setup -q -n Mail-Mbox-MessageParser-%{version} -# Fix used-only-once warning that breaks grepmail with perl 5.12.0 -%patch0 -p1 +# Fix compile failure (CPAN RT#103025) +%patch0 # Auto provides aren't clever enough for what Mail::Mbox::MessageParser does %if 0%{?__perllib_provides:1} @@ -40,19 +66,19 @@ information, GNU grep, or highly optimized Perl. %build perl Makefile.PL INSTALLDIRS=vendor \ - DIFF=/usr/bin/diff \ BZIP=/usr/bin/bzip2 \ BZIP2=/usr/bin/bzip2 \ + DIFF=/usr/bin/diff \ GREP=/bin/grep \ GZIP=/bin/gzip \ - --default + LZIP=/usr/bin/lzip \ + XZ=/usr/bin/xz make %{?_smp_mflags} %install rm -rf %{buildroot} -make pure_install PERL_INSTALL_ROOT=%{buildroot} +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null %{_fixperms} %{buildroot} %check @@ -62,16 +88,38 @@ make test rm -rf %{buildroot} %files -%defattr(-,root,root,-) -%doc README CHANGES anonymize_mailbox LICENSE +%if 0%{?_licensedir:1} +%license LICENSE +%else +%doc LICENSE +%endif +%doc README CHANGES anonymize_mailbox %{perl_vendorlib}/Mail/ -%{_mandir}/man3/Mail::Mbox::MessageParser.3pm* -%{_mandir}/man3/Mail::Mbox::MessageParser::Cache.3pm* -%{_mandir}/man3/Mail::Mbox::MessageParser::Grep.3pm* -%{_mandir}/man3/Mail::Mbox::MessageParser::MetaInfo.3pm* -%{_mandir}/man3/Mail::Mbox::MessageParser::Perl.3pm* +%{_mandir}/man3/Mail::Mbox::MessageParser.3* +%{_mandir}/man3/Mail::Mbox::MessageParser::Cache.3* +%{_mandir}/man3/Mail::Mbox::MessageParser::Grep.3* +%{_mandir}/man3/Mail::Mbox::MessageParser::MetaInfo.3* +%{_mandir}/man3/Mail::Mbox::MessageParser::Perl.3* %changelog +* Mon Mar 23 2015 Paul Howarth <paul@xxxxxxxxxxxx> - 1.5100-1 +- Update to 1.5100 + - Moved code to github + - Added xz support (CPAN RT#68286) + - Added lzip support (http://sourceforge.net/p/grepmail/patches/8/) + - Added POD test + - Fixed hang in pure Perl implementation for a malformed mbox file scenario + - Fixed $OLDSTDERR used only once warning (CPAN RT#58053) + - Fixed enabling of warnings (CPAN RT#79898) + - Fixed a division by zero error for malformed mbox files that start with a + newline (CPAN RT#69469) + - Fix bug in M::M::Perl documentation + - Add more cache file validation +- Classify buildreqs by usage +- Add patch to fix build error (CPAN RT#103025) +- Use %%license where possible +- Drop %%defattr, redundant since rpm 4.4 + * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 1.5002-17 - Perl 5.20 rebuild diff --git a/rt103025.patch b/rt103025.patch new file mode 100644 index 0000000..77bd12c --- /dev/null +++ b/rt103025.patch @@ -0,0 +1,11 @@ +--- inc/Sort/Versions.pm ++++ inc/Sort/Versions.pm +@@ -57,8 +57,6 @@ + return versioncmp($$caller_a, $$caller_b); + } + +-=encoding utf-8 +- + #line 159 + + 1; diff --git a/sources b/sources index 9a126a1..dc42e5c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0df054faf3a43a537636ea7ca997694c Mail-Mbox-MessageParser-1.5002.tar.gz +ac7dc33e092b12fe68747ae450e0bdfe Mail-Mbox-MessageParser-1.5100.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