From 6b0e812b716c25ddb7bf684c7efc29bfa04d5e03 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Mon, 7 Aug 2006 01:37:49 +0000 Subject: [PATCH] auto-import perl-DateTime-Format-Mail-0.30-2.fc5 on branch devel from perl-DateTime-Format-Mail-0.30-2.fc5.src.rpm --- .cvsignore | 1 + filter-requires.sh | 3 ++ perl-DateTime-Format-Mail.spec | 84 ++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 89 insertions(+) create mode 100755 filter-requires.sh create mode 100644 perl-DateTime-Format-Mail.spec diff --git a/.cvsignore b/.cvsignore index e69de29..f74304f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +DateTime-Format-Mail-0.30.tar.gz diff --git a/filter-requires.sh b/filter-requires.sh new file mode 100755 index 0000000..4a161e3 --- /dev/null +++ b/filter-requires.sh @@ -0,0 +1,3 @@ +#!/bin/sh +/usr/lib/rpm/perl.req $* | + sed -e 's/perl(DateTime) >= 0.1705/perl(DateTime) >= 0.18/' diff --git a/perl-DateTime-Format-Mail.spec b/perl-DateTime-Format-Mail.spec new file mode 100644 index 0000000..573a2d7 --- /dev/null +++ b/perl-DateTime-Format-Mail.spec @@ -0,0 +1,84 @@ +Name: perl-DateTime-Format-Mail +Version: 0.30 +Release: 2%{?dist} +Summary: Convert between DateTime and RFC2822/822 formats + +Group: Development/Libraries +License: Artistic or GPL +URL: http://search.cpan.org/dist/DateTime-Format-Mail +Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Mail-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Module::Build), perl(DateTime) +BuildRequires: perl(Params::Validate) >= 0.67, perl(Test::More) >= 0.47 +BuildRequires: perl(File::Find::Rule) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# DateTime >= 0.1705 plays havoc with rpm's versioning system +Source99: filter-requires.sh +%define __perl_requires %{SOURCE99} + + +%description +RFCs 2822 and 822 specify date formats to be used by email. This module parses +and emits such dates. + +RFC2822 (April 2001) introduces a slightly different format of date than that +used by RFC822 (August 1982). The main correction is that the preferred format +is more limited, and thus easier to parse programmatically. + +Despite the ease of generating and parsing perfectly valid RFC822 and RFC2822 +people still get it wrong. This module aims to correct that. + + +%prep +%setup -q -n DateTime-Format-Mail-%{version} + +# POD doesn't like E very much... +perl -pi -e 's/E/(C)/' `find lib/ -type f` + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +# American English, bitte +mv LICENCE LICENSE + +%install +rm -rf %{buildroot} +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + + +%check +# we don't have a SIGNATURE, regardless of perl(Test::Signature) being around +rm t/00signature.t + +make test + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc Artistic COPYING LICENSE Changes AUTHORS README notes/ CREDITS +%doc t/sample_dates t/invalid.t +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Sun Aug 06 2006 Chris Weyl 0.30-2 +- add missing br: perl(File::Find::Rule) +- additional files from the test suite added to %%doc + +* Fri Aug 04 2006 Chris Weyl 0.30-1 +- Initial spec file for F-E diff --git a/sources b/sources index e69de29..af0b2ff 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d3940d6b387b75de0332201db1685e7d DateTime-Format-Mail-0.30.tar.gz