commit e9413795589b22fec40dea391cdb9fe990d28d24 Author: Petr Šabata <contyk@xxxxxxxxxx> Date: Wed Jan 7 15:16:32 2015 +0100 Adapt the test suite for the 2015-2115 era Date-Pcalc-6.1-century.patch | 433 ++++++++++++++++++++++++++++++++++++++++++ perl-Date-Pcalc.spec | 46 ++++- 2 files changed, 468 insertions(+), 11 deletions(-) --- diff --git a/Date-Pcalc-6.1-century.patch b/Date-Pcalc-6.1-century.patch new file mode 100644 index 0000000..614033d --- /dev/null +++ b/Date-Pcalc-6.1-century.patch @@ -0,0 +1,433 @@ +From d8fddafea015740755ddcb24da1388996303502f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk@xxxxxxxxxx> +Date: Wed, 7 Jan 2015 14:40:19 +0100 +Subject: [PATCH] Adapt the test suite for the next 100 years +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We're now closer to year 2064 than 1964, therefore dates with two-digit +years decode differently now. + +Signed-off-by: Petr Šabata <contyk@xxxxxxxxxx> +--- + t/f016.t | 32 ++++++++++++++++---------------- + t/f027.t | 44 ++++++++++++++++++++++---------------------- + t/f028.t | 44 ++++++++++++++++++++++---------------------- + 3 files changed, 60 insertions(+), 60 deletions(-) + +diff --git a/t/f016.t b/t/f016.t +index 98069a4..60cc3fa 100644 +--- a/t/f016.t ++++ b/t/f016.t +@@ -15,19 +15,19 @@ print "1..25\n"; + + $n = 1; + if ((($year,$mm,$dd) = Decode_Date_EU("3.1.64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("3 1 64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("03.01.64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("03/01/64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("3. Ene 1964",4)) && +@@ -35,11 +35,11 @@ if ((($year,$mm,$dd) = Decode_Date_EU("3. Ene 1964",4)) && + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("Geburtstag: 3. Januar '64 in Backnang/W�berg",3)) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("03-Jan-64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("3.Jan1964",6)) && +@@ -47,19 +47,19 @@ if ((($year,$mm,$dd) = Decode_Date_EU("3.Jan1964",6)) && + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("3Jan64",0)) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("030164")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("3ja64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_EU("3164")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -72,15 +72,15 @@ unless (($year,$mm,$dd) = Decode_Date_EU("29.2.1995")) + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US("1 3 64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_US("01/03/64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_US("Jan 3 '64")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_US("Jan 3 1964")) && +@@ -96,15 +96,15 @@ if ((($year,$mm,$dd) = Decode_Date_US("Jan31964")) && + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_US("Jan364")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_US("ja364")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + if ((($year,$mm,$dd) = Decode_Date_US("1364")) && +-($year==1964)&&($mm==1)&&($dd==3)) ++($year==2064)&&($mm==1)&&($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +diff --git a/t/f027.t b/t/f027.t +index 3070fd7..4a686dc 100644 +--- a/t/f027.t ++++ b/t/f027.t +@@ -41,47 +41,47 @@ if ((($year,$mm,$dd) = Decode_Date_US2("_00134_")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_1364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_01364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_001364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_10364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_010364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_0010364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_110364_")) && +-($year==1964) && ($mm==11) && ($dd==3)) ++($year==2064) && ($mm==11) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_0110364_")) && +-($year==1964) && ($mm==11) && ($dd==3)) ++($year==2064) && ($mm==11) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_00110364_")) && +-($year==1964) && ($mm==11) && ($dd==3)) ++($year==2064) && ($mm==11) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -116,7 +116,7 @@ if ((($year,$mm,$dd) = Decode_Date_US2("_0011031964_")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_1_3_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -126,22 +126,22 @@ if ((($year,$mm,$dd) = Decode_Date_US2("_1_3_1964_")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_jan_3_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_Jan_3_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_jAN_3_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_January_3_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -155,32 +155,32 @@ if ((($year,$mm,$dd) = Decode_Date_US2(" January 3rd, 1964 ")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_Jan364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_Jan0364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_Jan00364_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_Jan2264_")) && +-($year==1964) && ($mm==1) && ($dd==22)) ++($year==2064) && ($mm==1) && ($dd==22)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_Jan02264_",0)) && +-($year==1964) && ($mm==1) && ($dd==22)) ++($year==2064) && ($mm==1) && ($dd==22)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_Jan002264_",'')) && +-($year==1964) && ($mm==1) && ($dd==22)) ++($year==2064) && ($mm==1) && ($dd==22)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -223,12 +223,12 @@ unless (($year,$mm,$dd) = Decode_Date_US2("_ja331964_")) + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("x000001x000003x000064x")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_US2("_ja_000003x000064x")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +diff --git a/t/f028.t b/t/f028.t +index 8c98c51..96662de 100644 +--- a/t/f028.t ++++ b/t/f028.t +@@ -41,47 +41,47 @@ if ((($year,$mm,$dd) = Decode_Date_EU2("_00314_")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3164_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_03164_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_003164_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_30164_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_030164_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_0030164_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_110364_")) && +-($year==1964) && ($mm==3) && ($dd==11)) ++($year==2064) && ($mm==3) && ($dd==11)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_0110364_")) && +-($year==1964) && ($mm==3) && ($dd==11)) ++($year==2064) && ($mm==3) && ($dd==11)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_00110364_")) && +-($year==1964) && ($mm==3) && ($dd==11)) ++($year==2064) && ($mm==3) && ($dd==11)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -116,7 +116,7 @@ if ((($year,$mm,$dd) = Decode_Date_EU2("_0011031964_")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3_1_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -126,22 +126,22 @@ if ((($year,$mm,$dd) = Decode_Date_EU2("_3_1_1964_")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3_jan_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3_Jan_64_",0)) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3_jAN_64_",1)) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3-JAN-64_",2)) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -156,7 +156,7 @@ if ((($year,$mm,$dd) = Decode_Date_EU2("_3-January-1964_",'')) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_000003-Jan-000064_",undef)) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -166,7 +166,7 @@ if ((($year,$mm,$dd) = Decode_Date_EU2("_000003-Jan-001964_")) && + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3_ja_64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -175,22 +175,22 @@ unless (($year,$mm,$dd) = Decode_Date_EU2("_3_j_64_")) + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_3ja64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_03ja64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_003ja64_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("_000003ja000064_")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +@@ -223,12 +223,12 @@ unless (($year,$mm,$dd) = Decode_Date_EU2("_33ja1964_")) + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("x000003x000001x000064x")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + + if ((($year,$mm,$dd) = Decode_Date_EU2("x000003_ja_000064x")) && +-($year==1964) && ($mm==1) && ($dd==3)) ++($year==2064) && ($mm==1) && ($dd==3)) + {print "ok $n\n";} else {print "not ok $n\n";} + $n++; + +-- +2.1.0 + diff --git a/perl-Date-Pcalc.spec b/perl-Date-Pcalc.spec index ff50b3d..4590888 100644 --- a/perl-Date-Pcalc.spec +++ b/perl-Date-Pcalc.spec @@ -1,6 +1,6 @@ Name: perl-Date-Pcalc Version: 6.1 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Gregorian calendar date calculations License: GPL+ or Artistic Group: Development/Libraries @@ -8,12 +8,34 @@ URL: http://search.cpan.org/dist/Date-Pcalc/ Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Pcalc-%{version}.tar.gz # Perl 5.16 compatibility, CPAN RT #76442 Patch0: Date-Pcalc-6.1-boolean.patch - -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Related: rt#101232 +Patch1: Date-Pcalc-6.1-century.patch BuildRequires: %{_bindir}/iconv -BuildRequires: perl(ExtUtils::MakeMaker) +# Build +BuildRequires: perl +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +# Runtime BuildRequires: perl(Bit::Vector) >= 7.1 +BuildRequires: perl(bytes) BuildRequires: perl(Carp::Clan) >= 5.3 +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(overload) +BuildRequires: perl(vars) +# Tests only +# nothing +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(bytes) +Requires: perl(Bit::Vector) >= 7.1 +Requires: perl(Carp::Clan) >= 5.3 + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Bit::Vector\\)$ +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Carp::Clan\\)$ %description This package consists of a Perl module for all kinds of date calculations based @@ -24,18 +46,17 @@ DIN 1355 and, to some extent, ISO 8601 (where applicable). %prep %setup -q -n Date-Pcalc-%{version} %patch0 -p0 +%patch1 -p1 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor </dev/null +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 </dev/null make %{?_smp_mflags} %install %{_bindir}/iconv --from-code=ISO-8859-1 --to-code=UTF-8 blib/man3/Date::Pcalc.3pm -o blib/man3/Date::Pcalc.3pm-utf8 mv blib/man3/Date::Pcalc.3pm-utf8 blib/man3/Date::Pcalc.3pm -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* +make pure_install DESTDIR=%{buildroot} +chmod -R u+w %{buildroot}/* %check make test @@ -44,13 +65,16 @@ make test # Defaults to binary if gcc is found (default Fedora buildroot contains gcc) # There's No option available to specify explicitly %files -%defattr(-,root,root,-) -%doc CHANGES.txt README.txt EXAMPLES.txt CREDITS.txt GNU_GPL.txt Artistic.txt +%license GNU_GPL.txt Artistic.txt +%doc CHANGES.txt README.txt EXAMPLES.txt CREDITS.txt %{perl_vendorarch}/auto/Date %{perl_vendorarch}/Date %{_mandir}/man3/* %changelog +* Wed Jan 07 2015 Petr Šabata <contyk@xxxxxxxxxx> - 6.1-12 +- Adapt the test suite for the 2015-2115 era + * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 6.1-11 - Perl 5.20 rebuild
-- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel