|
@@ -8,22 +8,21 @@
|
|
|
#
|
|
|
# Note that right now, the only way to run tests locally from a cvs sandbox
|
|
|
# "make noarch" type scenario is the third one.
|
|
|
-%define real_version 0.80
|
|
|
+%define real_version 0.81
|
|
|
|
|
|
Name: perl-DateTime-Format-Builder
|
|
|
# 0.80 in reality, but rpm can't get it
|
|
|
-Version: 0.8000
|
|
|
+Version: 0.8100
|
|
|
Release: 1%{?_dist_release}
|
|
|
Summary: Create DateTime parser classes and objects
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
-License: GPL+ or Artistic
|
|
|
+License: Artistic 2.0
|
|
|
URL: http://search.cpan.org/dist/DateTime-Format-Builder
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-%{real_version}.tar.gz
|
|
|
|
|
|
-BuildArch: noarch
|
|
|
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
-
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildArch: noarch
|
|
|
## core
|
|
|
BuildRequires: perl(Test::More)
|
|
|
## non-core
|
|
@@ -45,8 +44,7 @@ Provides: perl(DateTime::Format::Builder) = %{version}
|
|
|
# for signature checking
|
|
|
%{?_with_network_tests:BuildRequires: perl(Module::Signature) }
|
|
|
|
|
|
-# not explicitly picked up
|
|
|
-Requires: perl(DateTime::Format::Strptime)
|
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
@@ -65,25 +63,14 @@ is expected.
|
|
|
%prep
|
|
|
%setup -q -n DateTime-Format-Builder-%{real_version}
|
|
|
|
|
|
-cat << \EOF > %{name}-req
|
|
|
-#!/bin/sh
|
|
|
-%{__perl_requires} $* |\
|
|
|
- sed -e '/perl(DateTime::Format::HTTP)/d;/perl(DateTime::Format::IBeat)/d' \
|
|
|
- -e '/perl(DateTime::Format::Mail)/d'
|
|
|
-EOF
|
|
|
-
|
|
|
-%define __perl_requires %{_builddir}/DateTime-Format-Builder-%{real_version}/%{name}-req
|
|
|
-chmod +x %{__perl_requires}
|
|
|
-
|
|
|
# digital signature checking. Not essential, but nice
|
|
|
%{?_with_network_tests: cpansign -v }
|
|
|
|
|
|
# POD doesn't like E<copy> very much...
|
|
|
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
|
|
|
|
|
|
-# American English
|
|
|
-mv LICENCE LICENSE
|
|
|
-
|
|
|
+# silence rpmlint
|
|
|
+sed -i '1s~^#!.*perl~#!%{__perl}~' t/*.t
|
|
|
|
|
|
%build
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
@@ -104,12 +91,16 @@ make test
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc COPYING Artistic Changes AUTHORS CREDITS LICENSE README examples/ t/
|
|
|
+%doc Changes LICENSE README examples/ t/
|
|
|
%{perl_vendorlib}/*
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Dec 20 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.8100-1
|
|
|
+- updated to 0.81
|
|
|
+- built with perl 5.16.3
|
|
|
+
|
|
|
* Sun Jan 6 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.8000-1
|
|
|
- initial build based on Fedora development package
|
|
|
|