123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- %define _version 0.401
- Name: perl-DateTime-Format-Mail
- Version: 0.4010
- Release: 1%{?_dist_release}
- Summary: Convert between DateTime and RFC2822/822 formats
- Group: Development/Libraries
- License: GPL+ or Artistic
- 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
- BuildArch: noarch
- BuildRequires: perl(Carp)
- BuildRequires: perl(Class::ISA)
- BuildRequires: perl(DateTime) >= 0.18
- BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
- BuildRequires: perl(File::Find::Rule)
- BuildRequires: perl(Module::Build)
- BuildRequires: perl(Params::Validate)
- BuildRequires: perl(Pod::Coverage::TrustPod)
- BuildRequires: perl(Test::CPAN::Meta)
- BuildRequires: perl(Test::More) >= 0.88
- BuildRequires: perl(Test::Pod) >= 1.41
- BuildRequires: perl(Test::Pod::Coverage) >= 1.08
- Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
- %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<copy> very much...
- perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
- # DateTime >= 0.1705 plays havoc with rpm's versioning system
- #for X in lib/DateTime/Format/Mail.pm META.yml; do
- #sed -i -e 's/0\.1705/0.70/g' $X
- #done
- %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 CREDITS Changes LICENSE README
- %doc t/sample_dates t/invalid.t
- %{perl_vendorlib}/*
- %{_mandir}/man3/*.3*
- %changelog
- * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.4010-1
- - new upstream release
- - built with perl 5.16.3
- * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.3001-1
- - initial build for Vine Linux
- * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-13
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
- * Wed Jul 20 2011 Iain Arnell <iarnell@gmail.com> - 0.3001-12
- - update filtering macros for rpm 4.9
- * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.3001-11
- - Perl mass rebuild
- * Mon Feb 14 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.3001-10
- - Switch to using perl-filters/Abandon filter-requires.sh
- (Work around mass rebuild breakdown).
- * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-9
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
- * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.3001-8
- - 661697 rebuild for fixing problems with vendorach/lib
- * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.3001-7
- - Mass rebuild with perl-5.12.0
- * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.3001-6
- - rebuild against perl 5.10.1
- * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-5
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3001-3
- - Rebuild for perl 5.10 (again)
- * Fri Jan 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.3001-2
- - no more notes/ directory
- * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.3001-1
- - 0.3001
- - fix license tag
- - rebuild against new perl
- * Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-4
- - bump for mass rebuild
- * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-3
- - bump for build and release
- * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 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 <cweyl@alumni.drew.edu> 0.30-1
- - Initial spec file for F-E
|