From 3b703a4e093fa385a9150abbda178684d4a63ede Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:50:56 +0100 Subject: [PATCH] rebuild with perl-DateTime 0.78 [release 0.3001-3mamba;Tue Apr 30 2013] --- README.md | 2 + ...Mail-0.3001-fix-DateTime-version-req.patch | 36 +++++++++ perl-DateTime-Format-Mail.spec | 75 +++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 perl-DateTime-Format-Mail-0.3001-fix-DateTime-version-req.patch create mode 100644 perl-DateTime-Format-Mail.spec diff --git a/README.md b/README.md index 3badd6f..4edb8d8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-DateTime-Format-Mail +Convert between DateTime and RFC2822/822 formats. + diff --git a/perl-DateTime-Format-Mail-0.3001-fix-DateTime-version-req.patch b/perl-DateTime-Format-Mail-0.3001-fix-DateTime-version-req.patch new file mode 100644 index 0000000..7f91fbe --- /dev/null +++ b/perl-DateTime-Format-Mail-0.3001-fix-DateTime-version-req.patch @@ -0,0 +1,36 @@ +diff -Nru DateTime-Format-Mail-0.3001.orig/Build.PL DateTime-Format-Mail-0.3001/Build.PL +--- DateTime-Format-Mail-0.3001.orig/Build.PL 2007-08-30 21:57:17.000000000 +0200 ++++ DateTime-Format-Mail-0.3001/Build.PL 2013-04-30 15:33:38.181867808 +0200 +@@ -5,7 +5,7 @@ + Module::Build->new( module_name => 'DateTime::Format::Mail', + author => 'Dave Rolsky ', + license => 'perl', +- requires => { 'DateTime' => '0.1705', ++ requires => { 'DateTime' => '0.18', + 'Params::Validate' => '0.67', + 'Test::More' => '0.47', + }, +diff -Nru DateTime-Format-Mail-0.3001.orig/lib/DateTime/Format/Mail.pm DateTime-Format-Mail-0.3001/lib/DateTime/Format/Mail.pm +--- DateTime-Format-Mail-0.3001.orig/lib/DateTime/Format/Mail.pm 2007-08-30 21:57:17.000000000 +0200 ++++ DateTime-Format-Mail-0.3001/lib/DateTime/Format/Mail.pm 2013-04-30 15:34:30.665202703 +0200 +@@ -4,7 +4,7 @@ + use strict; + use 5.005; + use Carp; +-use DateTime 0.1705; ++use DateTime; + use Params::Validate qw( validate validate_pos SCALAR ); + use vars qw( $VERSION ); + +diff -Nru DateTime-Format-Mail-0.3001.orig/META.yml DateTime-Format-Mail-0.3001/META.yml +--- DateTime-Format-Mail-0.3001.orig/META.yml 2007-08-30 21:57:17.000000000 +0200 ++++ DateTime-Format-Mail-0.3001/META.yml 2013-04-30 15:33:59.220584497 +0200 +@@ -11,7 +11,7 @@ + resources: + license: http://dev.perl.org/licenses/ + requires: +- DateTime: 0.1705 ++ DateTime: 0.18 + Params::Validate: 0.67 + Test::More: 0.47 + build_requires: diff --git a/perl-DateTime-Format-Mail.spec b/perl-DateTime-Format-Mail.spec new file mode 100644 index 0000000..ce67a31 --- /dev/null +++ b/perl-DateTime-Format-Mail.spec @@ -0,0 +1,75 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-DateTime-Format-Mail +Version: 0.3001 +Release: 3mamba +Summary: DateTime::Format::Mail - Convert between DateTime and RFC2822/822 formats +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Mail-%{version}.tar.gz +Patch0: perl-DateTime-Format-Mail-0.3001-fix-DateTime-version-req.patch +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-DateTime +BuildRequires: perl-devel +BuildRequires: perl-Params-Validate +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME: +# make test: Test::Signature 1.03 not installed +# make test: File::Find::Rule not installed + +%description +Convert between DateTime and RFC2822/822 formats. + +%prep +%setup -q -n DateTime-Format-Mail-%{version} +%patch0 -p1 + +%build +perl Build.PL installdirs=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install \ + destdir="%{buildroot}" \ + --install_path bindoc="%{_mandir}/man1" \ + --install_path libdoc="%{_mandir}/man3" + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +find %{buildroot}%{perl_vendorlib} \ + -type d -depth -exec rmdir {} 2>/dev/null \; + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo %dir ${dir#%buildroot} >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Apr 30 2013 Silvan Calarco 0.3001-3mamba +- rebuild with perl-DateTime 0.78 + +* Wed Nov 05 2008 Silvan Calarco 0.3001-2mamba +- automatic rebuild by autodist + +* Tue Dec 11 2007 Aleph0 0.3001-1mamba +- package created by autospec