[packages/perl-DateTime-Format-Strptime] - updated to 1.75 (as 1.7500)
qboosh
qboosh at pld-linux.org
Fri Oct 5 21:00:58 CEST 2018
commit 806f6a123b9960c9b0aea725c4bb78c686c3ecde
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 5 21:04:22 2018 +0200
- updated to 1.75 (as 1.7500)
perl-DateTime-Format-Strptime.spec | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/perl-DateTime-Format-Strptime.spec b/perl-DateTime-Format-Strptime.spec
index a735894..cfb74ff 100644
--- a/perl-DateTime-Format-Strptime.spec
+++ b/perl-DateTime-Format-Strptime.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without tests # do not perform "make test"
+%bcond_with tests_i18n # tests with localization (requires some DateTime::Locale language resources)
%define pdir DateTime
%define pnam Format-Strptime
@@ -9,29 +10,35 @@ Summary: DateTime::Format::Strptime - Parse and format strp and strf time patter
Summary(pl.UTF-8): DateTime::Format::Strptime - analiza i formatowanie wzorców czasu strp i strf
Name: perl-DateTime-Format-Strptime
# fill version to 4 decimal digits to avoid epoch bumps after 1.5000 (drop in >= 2.x if possible)
-%define rver 1.68
+%define rver 1.75
Version: %{rver}00
Release: 1
License: Artistic v2.0
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Strptime-%{rver}.tar.gz
-# Source0-md5: 50dcc1ff5346848fe1ec928bda07fe44
-URL: http://search.cpan.org/dist/DateTime-Format-Strptime/
+# Source0-md5: 3f081b0068d82007392a22a33647f0a0
+URL: https://metacpan.org/release/DateTime-Format-Strptime
BuildRequires: perl-ExtUtils-MakeMaker >= 6.31
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
BuildRequires: perl-DateTime >= 1:1.00
-BuildRequires: perl-DateTime-Locale >= 0.45
-BuildRequires: perl-DateTime-TimeZone >= 0.79
+BuildRequires: perl-DateTime-Locale >= 1.05
+BuildRequires: perl-DateTime-TimeZone >= 2.09
BuildRequires: perl-Package-DeprecationManager >= 0.15
-BuildRequires: perl-Params-Validate >= 1.20
+BuildRequires: perl-Params-ValidationCompiler
+BuildRequires: perl-Specio >= 0.33
BuildRequires: perl-Test-Fatal
BuildRequires: perl-Test-Simple >= 0.96
BuildRequires: perl-Test-Warnings
BuildRequires: perl-Try-Tiny
%endif
+%if %{with tests_i18n} && "%(ls /usr/share/perl5/vendor_perl/auto/share/dist/DateTime-Locale/{de,en-AU,en-GB,en-US-POSIX,fr,fr-FR,ga,pt,zh}.pl >/dev/null 2>&1 ; echo $?)" != "0"
+BuildRequires: perl-DateTime-Locale(with_locales:de;en-AU;en-GB;en-US;fr;fr-FR;ga;pt;zh)
+%endif
Requires: perl-DateTime >= 1.00
+Requires: perl-DateTime-Locale >= 1.05
+Requires: perl-DateTime-TimeZone >= 2.09
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -50,6 +57,12 @@ wzorzec, a zwraca powiązany obiekt DateTime.
%prep
%setup -q -n %{pdir}-%{pnam}-%{rver}
+%if %{with tests} && %{without tests_i18n}
+%{__sed} -i -e "/^\[\(Australian\|UK\|French\)/,/^\[/ d" t/basic.t
+%{__sed} -i -e "/locale.*'pt'/ s/'pt'/'en-US'/" t/format-datetime.t
+%{__rm} t/format-with-locale.t t/locale-{de,ga,pt,zh}.t
+%endif
+
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
@@ -70,4 +83,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc Changes
%{perl_vendorlib}/DateTime/Format/Strptime.pm
+%{perl_vendorlib}/DateTime/Format/Strptime
%{_mandir}/man3/DateTime::Format::Strptime.3pm*
+%{_mandir}/man3/DateTime::Format::Strptime::Types.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-DateTime-Format-Strptime.git/commitdiff/806f6a123b9960c9b0aea725c4bb78c686c3ecde
More information about the pld-cvs-commit
mailing list