commit 50ea422ad5a6c776a17d1500e52bcc7d6c185649 Author: Jitka Plesnikova <jplesnik@xxxxxxxxxx> Date: Fri Nov 14 16:20:54 2014 +0100 1.10 bump .gitignore | 1 + perl-Time-Duration.spec | 52 ++++++++++++++++++++++++---------------------- sources | 2 +- 3 files changed, 29 insertions(+), 26 deletions(-) --- diff --git a/.gitignore b/.gitignore index 910a575..c84a233 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Time-Duration-1.06.tar.gz +/Time-Duration-1.1.tar.gz diff --git a/perl-Time-Duration.spec b/perl-Time-Duration.spec index 201b94a..e44b883 100644 --- a/perl-Time-Duration.spec +++ b/perl-Time-Duration.spec @@ -1,57 +1,59 @@ +# Real version +%global cpan_version 1.1 + Name: perl-Time-Duration Summary: Time-Duration - rounded or exact English expression of durations -Version: 1.06 -Release: 19%{?dist} -License: GPLv2+ or Artistic 2.0 +# Keep 2-digit version for history +Version: %{cpan_version}0 +Release: 1%{?dist} +License: GPL+ or Artistic Group: Development/Libraries Url: http://search.cpan.org/dist/Time-Duration/ -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildarch: noarch -Source: http://search.cpan.org/CPAN/authors/id/A/AV/AVIF/Time-Duration-%{version}.tar.gz -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -BuildRequires: perl(Test::Pod::Coverage) perl(Test::Pod) perl(ExtUtils::MakeMaker) +Source: http://search.cpan.org/CPAN/authors/id/A/AV/AVIF/Time-Duration-%{cpan_version}.tar.gz +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(strict) +BuildRequires: perl(Test) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) %description This module provides functions for expressing durations in rounded or exact terms. - %prep -%setup -q -n Time-Duration-%{version} - +%setup -q -n Time-Duration-%{cpan_version} +rm -rf inc +sed -i -e '/^inc\//d' MANIFEST %check make test - %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} - %install -rm -rf %{buildroot} - -make pure_install PERL_INSTALL_ROOT=%{buildroot} - +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot} - -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %doc README ChangeLog %{_mandir}/man3/* %{perl_vendorlib}/Time %changelog +* Fri Nov 14 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 1.10-1 +- 1.10 bump +- Modernize spec file + * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 1.06-19 - Perl 5.20 rebuild diff --git a/sources b/sources index 38df303..dd692b7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d65108e0e4e8ffb38e28d532f8ddcd12 Time-Duration-1.06.tar.gz +120c16b3a31f5d24f17325295078fe6c Time-Duration-1.1.tar.gz -- 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