@ -1,26 +1,21 @@
# TODO: BR: perl(Test::Code::TidyAll) ≥ 0.24 when available
# NOTE: BR: perl(Test::Pod::No404s) not included as it requires network access
Name: perl-Package-DeprecationManager
Version: 0.16
Release: 3 %{?dist}
Version: 0.17
Release: 1%{?dist}
Summary: Manage deprecation warnings for your distribution
License: Artistic 2.0
URL: http://search.cpan.org/dist/Package-DeprecationManager/
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz
Patch0: Package-DeprecationManager-0.14-no-Test::Code::TidyAll.patch
Patch3: Package-DeprecationManager-0.16-stopwords.patch
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(List::Util) >= 1.33
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Package::Stash)
BuildRequires: perl(Params::Util)
BuildRequires: perl(strict)
@ -36,27 +31,6 @@ BuildRequires: perl(Test::Warnings)
# Optional Tests
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(CPAN::Meta::Prereqs)
%if 0%{!?perl_bootstrap:1} && ! 0%{?rhel}
# Author Tests
BuildRequires: perl(blib)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Pod::Wordlist)
BuildRequires: perl(Test::CleanNamespaces) >= 0.15
BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::Mojibake)
BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Spelling), hunspell-en
BuildRequires: perl(Test::Version) >= 1.002
# Release Tests
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::CPAN::Changes) >= 0.19
BuildRequires: perl(Test::CPAN::Meta::JSON)
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(Test::Pod::LinkCheck)
BuildRequires: perl(Test::Portability::Files)
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -70,27 +44,17 @@ the version when that feature was deprecated.
%prep
%setup -q -n Package-DeprecationManager-%{version}
# Test::Code::TidyAll not yet available in Fedora
%patch0
# "PayPal" not a common dictionary word
%patch3
%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
%if 0%{!?perl_bootstrap:1} && ! 0%{?rhel}
make test AUTHOR_TESTING=1 RELEASE_TESTING=1
%else
make test
%endif
%files
%if 0%{?_licensedir:1}
@ -103,6 +67,13 @@ make test
%{_mandir}/man3/Package::DeprecationManager.3*
%changelog
* Mon Jun 20 2016 Paul Howarth <paul@city-fan.org> - 0.17-1
- Update to 0.17
- Remove use of namespace::autoclean
- BR: perl-generators
- Simplify find command using -delete
- Author and Release Tests moved to xt/ so don't bother trying to run them
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-3
- Perl 5.24 re-rebuild of bootstrapped packages