1 | %define _version 0.401 |
---|
2 | |
---|
3 | Name: perl-DateTime-Format-Mail |
---|
4 | Version: 0.4010 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: Convert between DateTime and RFC2822/822 formats |
---|
7 | |
---|
8 | Group: Development/Libraries |
---|
9 | License: GPL+ or Artistic |
---|
10 | URL: http://search.cpan.org/dist/DateTime-Format-Mail |
---|
11 | Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Mail-%{_version}.tar.gz |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
14 | BuildArch: noarch |
---|
15 | BuildRequires: perl(Carp) |
---|
16 | BuildRequires: perl(Class::ISA) |
---|
17 | BuildRequires: perl(DateTime) >= 0.18 |
---|
18 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 |
---|
19 | BuildRequires: perl(File::Find::Rule) |
---|
20 | BuildRequires: perl(Module::Build) |
---|
21 | BuildRequires: perl(Params::Validate) |
---|
22 | BuildRequires: perl(Pod::Coverage::TrustPod) |
---|
23 | BuildRequires: perl(Test::CPAN::Meta) |
---|
24 | BuildRequires: perl(Test::More) >= 0.88 |
---|
25 | BuildRequires: perl(Test::Pod) >= 1.41 |
---|
26 | BuildRequires: perl(Test::Pod::Coverage) >= 1.08 |
---|
27 | |
---|
28 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
29 | |
---|
30 | %description |
---|
31 | RFCs 2822 and 822 specify date formats to be used by email. This module parses |
---|
32 | and emits such dates. |
---|
33 | |
---|
34 | RFC2822 (April 2001) introduces a slightly different format of date than that |
---|
35 | used by RFC822 (August 1982). The main correction is that the preferred format |
---|
36 | is more limited, and thus easier to parse programmatically. |
---|
37 | |
---|
38 | Despite the ease of generating and parsing perfectly valid RFC822 and RFC2822 |
---|
39 | people still get it wrong. This module aims to correct that. |
---|
40 | |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -n DateTime-Format-Mail-%{_version} |
---|
44 | |
---|
45 | # POD doesn't like E<copy> very much... |
---|
46 | perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f` |
---|
47 | |
---|
48 | # DateTime >= 0.1705 plays havoc with rpm's versioning system |
---|
49 | #for X in lib/DateTime/Format/Mail.pm META.yml; do |
---|
50 | #sed -i -e 's/0\.1705/0.70/g' $X |
---|
51 | #done |
---|
52 | |
---|
53 | %build |
---|
54 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
55 | make %{?_smp_mflags} |
---|
56 | |
---|
57 | # American English, bitte |
---|
58 | #mv LICENCE LICENSE |
---|
59 | |
---|
60 | %install |
---|
61 | rm -rf %{buildroot} |
---|
62 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
63 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
64 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
65 | chmod -R u+w %{buildroot}/* |
---|
66 | |
---|
67 | |
---|
68 | %check |
---|
69 | # we don't have a SIGNATURE, regardless of perl(Test::Signature) being around |
---|
70 | #rm t/00signature.t |
---|
71 | |
---|
72 | make test |
---|
73 | |
---|
74 | |
---|
75 | %clean |
---|
76 | rm -rf %{buildroot} |
---|
77 | |
---|
78 | |
---|
79 | %files |
---|
80 | %defattr(-,root,root,-) |
---|
81 | %doc CREDITS Changes LICENSE README |
---|
82 | %doc t/sample_dates t/invalid.t |
---|
83 | %{perl_vendorlib}/* |
---|
84 | %{_mandir}/man3/*.3* |
---|
85 | |
---|
86 | |
---|
87 | %changelog |
---|
88 | * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.4010-1 |
---|
89 | - new upstream release |
---|
90 | - built with perl 5.16.3 |
---|
91 | |
---|
92 | * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.3001-1 |
---|
93 | - initial build for Vine Linux |
---|
94 | |
---|
95 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-13 |
---|
96 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
97 | |
---|
98 | * Wed Jul 20 2011 Iain Arnell <iarnell@gmail.com> - 0.3001-12 |
---|
99 | - update filtering macros for rpm 4.9 |
---|
100 | |
---|
101 | * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.3001-11 |
---|
102 | - Perl mass rebuild |
---|
103 | |
---|
104 | * Mon Feb 14 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.3001-10 |
---|
105 | - Switch to using perl-filters/Abandon filter-requires.sh |
---|
106 | (Work around mass rebuild breakdown). |
---|
107 | |
---|
108 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-9 |
---|
109 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
110 | |
---|
111 | * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.3001-8 |
---|
112 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
113 | |
---|
114 | * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.3001-7 |
---|
115 | - Mass rebuild with perl-5.12.0 |
---|
116 | |
---|
117 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.3001-6 |
---|
118 | - rebuild against perl 5.10.1 |
---|
119 | |
---|
120 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-5 |
---|
121 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
122 | |
---|
123 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-4 |
---|
124 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
125 | |
---|
126 | * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3001-3 |
---|
127 | - Rebuild for perl 5.10 (again) |
---|
128 | |
---|
129 | * Fri Jan 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.3001-2 |
---|
130 | - no more notes/ directory |
---|
131 | |
---|
132 | * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.3001-1 |
---|
133 | - 0.3001 |
---|
134 | - fix license tag |
---|
135 | - rebuild against new perl |
---|
136 | |
---|
137 | * Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-4 |
---|
138 | - bump for mass rebuild |
---|
139 | |
---|
140 | * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-3 |
---|
141 | - bump for build and release |
---|
142 | |
---|
143 | * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-2 |
---|
144 | - add missing br: perl(File::Find::Rule) |
---|
145 | - additional files from the test suite added to %%doc |
---|
146 | |
---|
147 | * Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-1 |
---|
148 | - Initial spec file for F-E |
---|