Spec clean-up
- Specify all build dependencies - Simplify find command using -delete - BR: perl(Test::Vars) unconditionally - Don't run the extra tests whilst bootstrapping
This commit is contained in:
parent
2237ea8448
commit
375e5dbfd5
|
@ -5,15 +5,18 @@
|
|||
|
||||
Name: perl-Software-License-CCpack
|
||||
Version: 1.11
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Software::License pack for Creative Commons' licenses
|
||||
License: LGPLv3
|
||||
URL: http://search.cpan.org/dist/Software-License-CCpack/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/B/BB/BBYRD/Software-License-CCpack-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Module Runtime
|
||||
BuildRequires: perl(base)
|
||||
|
@ -30,6 +33,7 @@ BuildRequires: perl(List::Util)
|
|||
BuildRequires: perl(Test::CheckDeps) >= 0.010
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
# Extra Tests
|
||||
%if 0%{!?perl_bootstrap:1}
|
||||
BuildRequires: perl(Pod::Coverage::TrustPod)
|
||||
BuildRequires: perl(Test::CPAN::Meta::JSON)
|
||||
BuildRequires: perl(Test::DistManifest)
|
||||
|
@ -41,9 +45,6 @@ BuildRequires: perl(Test::Pod) >= 1.41
|
|||
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
||||
BuildRequires: perl(Test::Portability::Files)
|
||||
BuildRequires: perl(Test::Synopsis)
|
||||
# Disable using of Test::Vars, because it fails with Perl 5.22.0
|
||||
# There is not a properly fix for it yet
|
||||
%if ! 0%(perl -e 'print $] >= 5.022')
|
||||
BuildRequires: perl(Test::Vars)
|
||||
%endif
|
||||
# Runtime
|
||||
|
@ -67,12 +68,14 @@ 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
|
||||
%if 0%{!?perl_bootstrap:1}
|
||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" RELEASE_TESTING=1
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
|
@ -106,6 +109,12 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" RELEASE_TESTING=1
|
|||
%{_mandir}/man3/Software::License::CC_PDM_1_0.3*
|
||||
|
||||
%changelog
|
||||
* Fri Apr 13 2018 Paul Howarth <paul@city-fan.org> - 1.11-11
|
||||
- Specify all build dependencies
|
||||
- Simplify find command using -delete
|
||||
- BR: perl(Test::Vars) unconditionally
|
||||
- Don't run the extra tests whilst bootstrapping
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue