diff --git a/.gitignore b/.gitignore index 8b358f0..93447c3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /Package-Variant-1.001002.tar.gz /Package-Variant-1.001003.tar.gz /Package-Variant-1.002002.tar.gz +/Package-Variant-1.003002.tar.gz diff --git a/perl-Package-Variant.spec b/perl-Package-Variant.spec index bdd9509..f47e09d 100644 --- a/perl-Package-Variant.spec +++ b/perl-Package-Variant.spec @@ -1,30 +1,33 @@ Name: perl-Package-Variant -Version: 1.002002 -Release: 3%{?dist} +Version: 1.003002 +Release: 1%{?dist} Summary: Parameterizable packages License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Package-Variant/ -Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Package-Variant-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/M/MS/MSTROUT/Package-Variant-%{version}.tar.gz BuildArch: noarch +# Build +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Runtime BuildRequires: perl(Carp) -BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Import::Into) >= 1 BuildRequires: perl(Module::Runtime) >= 0.013 +BuildRequires: perl(strictures) >= 2 +# Optional runtime +BuildRequires: perl(Sub::Name) +# Tests only +BuildRequires: perl(Exporter) BuildRequires: perl(Moo) BuildRequires: perl(Moo::Role) -BuildRequires: perl(strict) -BuildRequires: perl(strictures) >= 1 -BuildRequires: perl(Sub::Name) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) -BuildRequires: perl(warnings) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -# not automatically detected -Requires: perl(Sub::Name) - -%{?perl_default_filter} +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Recommends: perl(Sub::Name) %description This module allows you to build packages that return different variations @@ -34,14 +37,11 @@ depending on what parameters are given. %setup -q -n Package-Variant-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps +perl Makefile.PL INSTALLDIRS=vendor --skipdeps NO_PACKLIST=1 make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} - -find %{buildroot} -type f -name .packlist -exec rm -f {} \; - %{_fixperms} %{buildroot}/* %check @@ -53,6 +53,11 @@ make test %{_mandir}/man3/* %changelog +* Tue Sep 01 2015 Petr Ĺ abata - 1.003002-1 +- 1.003002 bump +- Update upstream URL +- Modernize the spec + * Thu Jun 18 2015 Fedora Release Engineering - 1.002002-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 4257634..59c8876 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dd86d48c51beca32d36799f1bf540faf Package-Variant-1.002002.tar.gz +f898ec7426e051ca4431fd8afed24937 Package-Variant-1.003002.tar.gz