From c2c35fd6dc5cd4c7aa6438db92389eda011ff9e2 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Oct 17 2019 14:56:24 +0000 Subject: Spec tidy-up - Specify all dependencies - Simplify find command using -delete - Fix permissions verbosely - Use %license where possible --- diff --git a/perl-Scalar-Properties.spec b/perl-Scalar-Properties.spec index 0328eea..af96886 100644 --- a/perl-Scalar-Properties.spec +++ b/perl-Scalar-Properties.spec @@ -3,7 +3,7 @@ Name: perl-Scalar-Properties Version: 1.100860 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Run-time properties on scalar variables License: GPL+ or Artistic URL: https://metacpan.org/release/Scalar-Properties @@ -13,12 +13,18 @@ BuildArch: noarch # =================================================================== # Build requirements # =================================================================== +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.11 # =================================================================== # Module requirements # =================================================================== -# (no non-core/dual-lived requirements) +BuildRequires: perl(overload) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) # =================================================================== # Test requirements # =================================================================== @@ -47,7 +53,6 @@ BuildRequires: perl(Test::MinimumVersion) BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.08 BuildRequires: perl(Test::Portability::Files) -BuildRequires: perl(Test::Spelling), aspell-en BuildRequires: perl(Test::Synopsis) # =================================================================== # Runtime requirements @@ -72,18 +77,30 @@ make %{?_smp_mflags} %install 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 AUTHOR_TESTING=1 RELEASE_TESTING=1 %files -%doc Changes LICENSE README +%if 0%{?_licensedir:1} +%license LICENSE +%else +%doc LICENSE +%endif +%doc Changes README %{perl_vendorlib}/Scalar/ -%{_mandir}/man3/Scalar::Properties.3pm* +%{_mandir}/man3/Scalar::Properties.3* %changelog +* Thu Oct 17 2019 Paul Howarth - 1.100860-20 +- Spec tidy-up + - Specify all dependencies + - Simplify find command using -delete + - Fix permissions verbosely + - Use %%license where possible + * Fri Jul 26 2019 Fedora Release Engineering - 1.100860-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild