From 1ea1d6f3d0ade52a8053ad586db3fa08e94f42a0 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Sat, 28 Sep 2019 20:09:01 +0100 Subject: [PATCH] Spec tidy-up - Use author-independent source URL - Be verbose about permissions changes - Use %{make_build} and %{make_install} --- perl-Module-Manifest.spec | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/perl-Module-Manifest.spec b/perl-Module-Manifest.spec index 063079a..4798c91 100644 --- a/perl-Module-Manifest.spec +++ b/perl-Module-Manifest.spec @@ -1,11 +1,12 @@ Name: perl-Module-Manifest Version: 1.09 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Parse and examine a Perl distribution MANIFEST file License: GPL+ or Artistic URL: https://metacpan.org/release/Module-Manifest -Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Module-Manifest-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Module/Module-Manifest-%{version}.tar.gz BuildArch: noarch +# Build: BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators @@ -28,6 +29,7 @@ BuildRequires: perl(Test::Warn) # Optional tests: # CPAN::Meta 2.120900 not helpful # CPAN::Meta::Prereqs not helpful +# Dependencies: Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(File::Spec) >= 0.80 Requires: perl(Params::Util) >= 0.10 @@ -42,15 +44,16 @@ the MANIFEST.SKIP file and check that. %prep %setup -q -n Module-Manifest-%{version} -chmod -x examples/* + +chmod -c -x examples/* %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +%{_fixperms} -c %{buildroot} %check make test @@ -62,6 +65,12 @@ make test %{_mandir}/man3/* %changelog +* Sat Sep 28 2019 Paul Howarth - 1.09-8 +- Spec tidy-up + - Use author-independent source URL + - Be verbose about permissions changes + - Use %%{make_build} and %%{make_install} + * Fri Jul 26 2019 Fedora Release Engineering - 1.09-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild