Spec tidy-up
- Simplify find command using -delete - Drop redundant buildroot cleaning in %install section
This commit is contained in:
parent
37591c81e6
commit
a6200c1fa0
@ -2,22 +2,22 @@
|
||||
%bcond_without perl_Test_Requires_enables_extra_test
|
||||
|
||||
# Only need manual requires for "use base XXX;" prior to rpm 4.9
|
||||
%global rpm49 0%(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e')
|
||||
%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e' 2>/dev/null || echo 0)
|
||||
|
||||
Name: perl-Test-Requires
|
||||
Summary: Checks to see if a given module can be loaded
|
||||
Version: 0.10
|
||||
Release: 13%{?dist}
|
||||
Release: 14%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Test-Requires
|
||||
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Requires-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
|
||||
# Module
|
||||
BuildRequires: perl(base)
|
||||
@ -54,10 +54,9 @@ perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
%{_fixperms} %{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
# note the "skipped" warnings indicate success :)
|
||||
@ -77,6 +76,11 @@ make test TEST_FILES="xt/*.t"
|
||||
%{_mandir}/man3/Test::Requires.3*
|
||||
|
||||
%changelog
|
||||
* Tue Jan 29 2019 Paul Howarth <paul@city-fan.org> - 0.10-14
|
||||
- Simplify find command using -delete
|
||||
- Drop redundant buildroot cleaning in %%install section
|
||||
- Drop redundant explicit %%clean section
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user