diff --git a/.rpmlint b/perl-Sub-Exporter-ForMethods.rpmlintrc similarity index 100% rename from .rpmlint rename to perl-Sub-Exporter-ForMethods.rpmlintrc diff --git a/perl-Sub-Exporter-ForMethods.spec b/perl-Sub-Exporter-ForMethods.spec index 4f7d22a..bc60470 100644 --- a/perl-Sub-Exporter-ForMethods.spec +++ b/perl-Sub-Exporter-ForMethods.spec @@ -1,16 +1,17 @@ Name: perl-Sub-Exporter-ForMethods Version: 0.100052 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Helper routines for using Sub::Exporter to build methods License: GPL+ or Artistic URL: https://metacpan.org/release/Sub-Exporter-ForMethods -Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-ForMethods-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Sub/Sub-Exporter-ForMethods-%{version}.tar.gz BuildArch: noarch +# Build: BuildRequires: coreutils BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) BuildRequires: perl(warnings) @@ -25,10 +26,9 @@ BuildRequires: perl(File::Spec) BuildRequires: perl(lib) BuildRequires: perl(namespace::autoclean) BuildRequires: perl(Test::More) >= 0.88 +# Dependencies: Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -%{?perl_default_filter} - %description This package provides helper routines for using Sub::Exporter to build methods that won't be removed by namespace::autoclean. @@ -41,9 +41,9 @@ perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -%{_fixperms} $RPM_BUILD_ROOT/* +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} %check make test @@ -55,6 +55,13 @@ make test %{_mandir}/man3/Sub::Exporter::ForMethods.3* %changelog +* Fri Oct 18 2019 Paul Howarth - 0.100052-13 +- Spec tidy-up + - Use author-independent source URL + - Drop redundant use of %%{?perl_default_filter} + - Simplify find command using -delete + - Fix permissions verbosely + * Fri Jul 26 2019 Fedora Release Engineering - 0.100052-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild