Spec tidy-up

- Use author-independent source URL
- Be verbose about permissions changes
- Use %{make_build} and %{make_install}
epel9 imports/e9/perl-Module-Manifest-1.09-8.el9
Paul Howarth 5 years ago
parent e9cb8f544e
commit 1ea1d6f3d0

@ -1,11 +1,12 @@
Name: perl-Module-Manifest Name: perl-Module-Manifest
Version: 1.09 Version: 1.09
Release: 7%{?dist} Release: 8%{?dist}
Summary: Parse and examine a Perl distribution MANIFEST file Summary: Parse and examine a Perl distribution MANIFEST file
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Manifest 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 BuildArch: noarch
# Build:
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
@ -28,6 +29,7 @@ BuildRequires: perl(Test::Warn)
# Optional tests: # Optional tests:
# CPAN::Meta 2.120900 not helpful # CPAN::Meta 2.120900 not helpful
# CPAN::Meta::Prereqs not helpful # CPAN::Meta::Prereqs not helpful
# Dependencies:
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(File::Spec) >= 0.80 Requires: perl(File::Spec) >= 0.80
Requires: perl(Params::Util) >= 0.10 Requires: perl(Params::Util) >= 0.10
@ -42,15 +44,16 @@ the MANIFEST.SKIP file and check that.
%prep %prep
%setup -q -n Module-Manifest-%{version} %setup -q -n Module-Manifest-%{version}
chmod -x examples/*
chmod -c -x examples/*
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT %{make_install}
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} -c %{buildroot}
%check %check
make test make test
@ -62,6 +65,12 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Sat Sep 28 2019 Paul Howarth <paul@city-fan.org> - 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 <releng@fedoraproject.org> - 1.09-7 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save