BR: perl(Test::CleanNamespaces)

This commit is contained in:
Paul Howarth 2016-09-06 11:11:56 +01:00
parent 882b925d84
commit 2b642154d2

View File

@ -1,8 +1,6 @@
#TODO: BR: Test::CleanNamespaces when available
Name: perl-Module-Implementation
Version: 0.09
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Loads one of several alternate underlying implementations for a module
Group: Development/Libraries
License: Artistic 2.0
@ -13,6 +11,9 @@ BuildArch: noarch
# ===================================================================
# Build requirements
# ===================================================================
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
@ -38,6 +39,7 @@ BuildRequires: perl(Test::Requires)
# Optional test requirements
# ===================================================================
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(Test::CleanNamespaces)
BuildRequires: perl(Test::Taint)
# ===================================================================
# Author/Release test requirements
@ -80,17 +82,13 @@ something like a plugin system, not this module.
%prep
%setup -q -n Module-Implementation-%{version}
# Can't try namespace-cleanliness.t until we have Test::CleanNamespaces
sed -i -e '/namespace-cleanliness.t/d' MANIFEST t/00-report-prereqs.t t/author-no-tabs.t
rm t/namespace-cleanliness.t
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}
%check
@ -109,9 +107,13 @@ make test RELEASE_TESTING=1
%license LICENSE
%doc Changes README.md
%{perl_vendorlib}/Module/
%{_mandir}/man3/Module::Implementation.3pm*
%{_mandir}/man3/Module::Implementation.3*
%changelog
* Tue Sep 6 2016 Paul Howarth <paul@city-fan.org> - 0.09-9
- BR: perl(Test::CleanNamespaces)
- Simplify find command using -delete
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.09-8
- Perl 5.24 re-rebuild of bootstrapped packages