|
@@ -1,32 +1,32 @@
|
|
|
|
+%define _version 0.401
|
|
|
|
+
|
|
Name: perl-DateTime-Format-Mail
|
|
Name: perl-DateTime-Format-Mail
|
|
-Version: 0.3001
|
|
|
|
|
|
+Version: 0.4010
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Summary: Convert between DateTime and RFC2822/822 formats
|
|
Summary: Convert between DateTime and RFC2822/822 formats
|
|
|
|
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
License: GPL+ or Artistic
|
|
License: GPL+ or Artistic
|
|
URL: http://search.cpan.org/dist/DateTime-Format-Mail
|
|
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)
|
|
|
|
|
|
+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
|
|
BuildArch: noarch
|
|
|
|
+BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Class::ISA)
|
|
BuildRequires: perl(Class::ISA)
|
|
-BuildRequires: perl(Module::Build), perl(DateTime)
|
|
|
|
-BuildRequires: perl(Params::Validate) >= 0.67, perl(Test::More) >= 0.47
|
|
|
|
|
|
+BuildRequires: perl(DateTime) >= 0.18
|
|
|
|
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
BuildRequires: perl(File::Find::Rule)
|
|
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))
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
-# DateTime >= 0.1705 plays havoc with rpm's versioning system
|
|
|
|
-Requires: perl(DateTime) >= 0.18
|
|
|
|
-
|
|
|
|
-%if "%{_dist_release}" > "vl6"
|
|
|
|
-%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(DateTime\\)
|
|
|
|
-%else
|
|
|
|
-%global provfilt /bin/sh -c "%{__perl_provides} | grep -Ev 'perl[(]DateTime[)]'"
|
|
|
|
-%define __perl_provides %{provfilt}
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
RFCs 2822 and 822 specify date formats to be used by email. This module parses
|
|
RFCs 2822 and 822 specify date formats to be used by email. This module parses
|
|
and emits such dates.
|
|
and emits such dates.
|
|
@@ -40,22 +40,22 @@ people still get it wrong. This module aims to correct that.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -n DateTime-Format-Mail-%{version}
|
|
|
|
|
|
+%setup -q -n DateTime-Format-Mail-%{_version}
|
|
|
|
|
|
# POD doesn't like E<copy> very much...
|
|
# POD doesn't like E<copy> very much...
|
|
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
|
|
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
|
|
|
|
|
|
# DateTime >= 0.1705 plays havoc with rpm's versioning system
|
|
# DateTime >= 0.1705 plays havoc with rpm's versioning system
|
|
-for X in lib/DateTime/Format/Mail.pm META.yml Build.PL ; do
|
|
|
|
-sed -i -e 's/0\.1705/0.70/g' $X
|
|
|
|
-done
|
|
|
|
|
|
+#for X in lib/DateTime/Format/Mail.pm META.yml; do
|
|
|
|
+#sed -i -e 's/0\.1705/0.70/g' $X
|
|
|
|
+#done
|
|
|
|
|
|
%build
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
# American English, bitte
|
|
# American English, bitte
|
|
-mv LICENCE LICENSE
|
|
|
|
|
|
+#mv LICENCE LICENSE
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -67,7 +67,7 @@ chmod -R u+w %{buildroot}/*
|
|
|
|
|
|
%check
|
|
%check
|
|
# we don't have a SIGNATURE, regardless of perl(Test::Signature) being around
|
|
# we don't have a SIGNATURE, regardless of perl(Test::Signature) being around
|
|
-rm t/00signature.t
|
|
|
|
|
|
+#rm t/00signature.t
|
|
|
|
|
|
make test
|
|
make test
|
|
|
|
|
|
@@ -78,13 +78,17 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc Artistic COPYING LICENSE Changes AUTHORS README CREDITS
|
|
|
|
|
|
+%doc CREDITS Changes LICENSE README
|
|
%doc t/sample_dates t/invalid.t
|
|
%doc t/sample_dates t/invalid.t
|
|
%{perl_vendorlib}/*
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3*
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%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
|
|
* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.3001-1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|
|
|
|
|