diff --git a/perl-Declare-Constraints-Simple.spec b/perl-Declare-Constraints-Simple.spec index dbf2510..4b0f999 100644 --- a/perl-Declare-Constraints-Simple.spec +++ b/perl-Declare-Constraints-Simple.spec @@ -1,21 +1,21 @@ # 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 Version: 0.03 -Release: 35%{?dist} +Release: 36%{?dist} Summary: Declarative Validation of Data Structures License: GPL+ or Artistic URL: https://metacpan.org/release/Declare-Constraints-Simple Source0: https://cpan.metacpan.org/authors/id/P/PH/PHAYLON/Declare-Constraints-Simple-%{version}.tar.gz -Patch0: Declare-Constraints-Simple-0.03-Fix-building-on-Perl-without-dot-in-INC.patch +Patch0: Declare-Constraints-Simple-0.03-Fix-building-on-Perl-without-dot-in-INC.patch BuildArch: noarch # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter # Dependencies of bundled Module::Install BuildRequires: perl(Config) BuildRequires: perl(Cwd) @@ -69,10 +69,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 make test @@ -95,6 +94,12 @@ make test %{_mandir}/man3/Declare::Constraints::Simple::Result.3* %changelog +* Tue Jan 29 2019 Paul Howarth - 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 - 0.03-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild