diff --git a/.gitignore b/.gitignore index 825cbb1..c180796 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -DateTime-Format-Strptime-1.2000.tar.gz -/DateTime-Format-Strptime-1.5000.tar.gz +/DateTime-Format-Strptime-[0-9.]*.tar.gz diff --git a/perl-DateTime-Format-Strptime.spec b/perl-DateTime-Format-Strptime.spec index 2ef20d8..f6bf973 100644 --- a/perl-DateTime-Format-Strptime.spec +++ b/perl-DateTime-Format-Strptime.spec @@ -1,21 +1,26 @@ +# RPM and CPAN versioning don't match +%global cpanversion 1.54 + Name: perl-DateTime-Format-Strptime -Version: 1.5000 -Release: 8%{?dist} +Version: 1.5400 +Release: 1%{?dist} Summary: Parse and format strp and strf time patterns License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/DateTime-Format-Strptime/ -Source0: http://www.cpan.org/authors/id/R/RI/RICKM/DateTime-Format-Strptime-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-Strptime-%{cpanversion}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch +BuildRequires: perl(Carp) BuildRequires: perl(Class::ISA) -BuildRequires: perl(DateTime) >= 0.44 +BuildRequires: perl(DateTime) >= 1.00 BuildRequires: perl(DateTime::Locale) >= 0.45 BuildRequires: perl(DateTime::TimeZone) >= 0.79 -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 BuildRequires: perl(Params::Validate) >= 0.64 -BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This module implements most of strptime(3), the POSIX function that is the @@ -24,21 +29,17 @@ pattern and returns a string, strptime takes a string and a pattern and returns the DateTime object associated. %prep -%setup -q -n DateTime-Format-Strptime-%{version} +%setup -q -n DateTime-Format-Strptime-%{cpanversion} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT - make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT - find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - -%{_fixperms} $RPM_BUILD_ROOT/* +%{_fixperms} $RPM_BUILD_ROOT %check make test @@ -47,12 +48,25 @@ make test rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root,-) %doc Changes LICENSE README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/DateTime/ +%{_mandir}/man3/DateTime::Format::Strptime.3pm* %changelog +* Wed Apr 3 2013 Paul Howarth - 1.5400-1 +- Update to 1.54 (rpm version 1.5400 to maintain upgrade path) + - Packaging cleanup, including listing Test::More as a test prereq, not a + runtime prereq (CPAN RT#76128) + - Shut up "unescaped braces in regex" warning from 5.17.0 (CPAN RT#77514) + - A fix in DateTime.pm 1.00 broke a test in this distro (CPAN RT#84371) + - Require DateTime.pm 1.00 because without it tests will break +- Specify all dependencies +- This release by DROLSKY -> update source URL +- Drop %%defattr, redundant since rpm 4.4 +- Don't need to remove empty directories from the buildroot +- Don't use macros for commands +- Make %%files list more explicit + * Thu Feb 14 2013 Fedora Release Engineering - 1.5000-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild @@ -78,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT - Update to 1.5000. * Thu Dec 16 2010 Marcela Maslanova - 1.2000-3 -- 661697 rebuild for fixing problems with vendorach/lib +- Rebuild to fix problems with vendorarch/lib (#661697) * Tue Jun 15 2010 Petr Sabata - 1.2000-1 - Update to the latest upstream release diff --git a/sources b/sources index 777237f..c79559d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ccd7e8fe4276c258e325e0bbce3f8e74 DateTime-Format-Strptime-1.5000.tar.gz +ca0fa912861f360f9aa535c6b4c0282f DateTime-Format-Strptime-1.54.tar.gz