159 lines
5.5 KiB
RPMSpec
159 lines
5.5 KiB
RPMSpec
%global cpan_version 0.402
|
|
|
|
Name: perl-DateTime-Format-Mail
|
|
Epoch: 1
|
|
Version: %{cpan_version}.0
|
|
Release: 2%{?dist}
|
|
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/B/BO/BOOK/DateTime-Format-Mail-%{cpan_version}.tar.gz
|
|
BuildArch: noarch
|
|
# Build
|
|
BuildRequires: make
|
|
BuildRequires: perl
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
# Runtime:
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(DateTime) >= 0.18
|
|
BuildRequires: perl(Params::Validate)
|
|
BuildRequires: perl(vars)
|
|
# Tests only
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(DateTime) >= 0.18
|
|
|
|
# Remove under-specified dependencies
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(DateTime\\)
|
|
|
|
%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-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make pure_install DESTDIR=%{buildroot}
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc CREDITS Changes README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%changelog
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.402.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jul 23 2015 Petr Šabata <contyk@redhat.com> - 1:0.402.0-1
|
|
- 0.402 bump
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.401.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.401.0-2
|
|
- Perl 5.22 rebuild
|
|
|
|
* Fri Dec 05 2014 Petr Pisar <ppisar@redhat.com> - 1:0.401.0-1
|
|
- 0.401 bump
|
|
|
|
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.3001-21
|
|
- Perl 5.20 rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-20
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-19
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 0.3001-18
|
|
- Perl 5.18 rebuild
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Sat Dec 29 2012 Iain Arnell <iarnell@gmail.com> 0.3001-16
|
|
- gzip the sample dates file in documentation (rhbz#890441)
|
|
- update spec for modern rpmbuild
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.3001-14
|
|
- Perl 5.16 rebuild
|
|
|
|
* 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
|