Spec tidy-up

- Simplify find command using -delete
- Drop redundant buildroot cleaning in %install section
epel9 imports/e9/perl-Declare-Constraints-Simple-0.03-36.el9
Paul Howarth 6 years ago
parent dd8c6a504e
commit 24948f3d5d

@ -1,9 +1,9 @@
# Provides/Requires filtering is different from rpm 4.9 onwards # Provides/Requires filtering is different from rpm 4.9 onwards
%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-Declare-Constraints-Simple Name: perl-Declare-Constraints-Simple
Version: 0.03 Version: 0.03
Release: 35%{?dist} Release: 36%{?dist}
Summary: Declarative Validation of Data Structures Summary: Declarative Validation of Data Structures
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Declare-Constraints-Simple URL: https://metacpan.org/release/Declare-Constraints-Simple
@ -14,8 +14,8 @@ BuildArch: noarch
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
# Dependencies of bundled Module::Install # Dependencies of bundled Module::Install
BuildRequires: perl(Config) BuildRequires: perl(Config)
BuildRequires: perl(Cwd) BuildRequires: perl(Cwd)
@ -69,10 +69,9 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot} %{_fixperms} -c %{buildroot}
%check %check
make test make test
@ -95,6 +94,12 @@ make test
%{_mandir}/man3/Declare::Constraints::Simple::Result.3* %{_mandir}/man3/Declare::Constraints::Simple::Result.3*
%changelog %changelog
* Tue Jan 29 2019 Paul Howarth <paul@city-fan.org> - 0.03-36
- Spec tidy-up
- 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.03-35 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.03-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save