|
|
be70f0 |
# We need to patch the test suite if we have an old version of Test::More
|
|
|
be70f0 |
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
|
be70f0 |
|
|
|
be70f0 |
# Test::CPAN::Changes isn't available in EPEL-6 either, due to requirement of perl(version) ≥ 0.79
|
|
|
be70f0 |
%global cpan_changes_available %(expr 0%{?fedora} + 0%{?rhel} '>' 6)
|
|
|
be70f0 |
|
|
|
be70f0 |
Name: perl-Package-DeprecationManager
|
|
|
be70f0 |
Version: 0.13
|
|
|
7ed48e |
Release: 7%{?dist}
|
|
|
be70f0 |
Summary: Manage deprecation warnings for your distribution
|
|
|
be70f0 |
Group: Development/Libraries
|
|
|
be70f0 |
License: Artistic 2.0
|
|
|
be70f0 |
URL: http://search.cpan.org/dist/Package-DeprecationManager/
|
|
|
be70f0 |
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz
|
|
|
be70f0 |
Patch1: Package-DeprecationManager-0.12-old-Test::More.patch
|
|
|
be70f0 |
Patch3: Package-DeprecationManager-0.12-stopwords.patch
|
|
|
be70f0 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
be70f0 |
BuildArch: noarch
|
|
|
be70f0 |
BuildRequires: perl(Carp)
|
|
|
be70f0 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
be70f0 |
BuildRequires: perl(List::MoreUtils)
|
|
|
be70f0 |
BuildRequires: perl(Params::Util)
|
|
|
be70f0 |
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
|
be70f0 |
BuildRequires: perl(Sub::Install)
|
|
|
be70f0 |
%if %{cpan_changes_available}
|
|
|
be70f0 |
BuildRequires: perl(Test::CPAN::Changes)
|
|
|
be70f0 |
%endif
|
|
|
be70f0 |
BuildRequires: perl(Test::EOL)
|
|
|
be70f0 |
BuildRequires: perl(Test::Fatal)
|
|
|
be70f0 |
BuildRequires: perl(Test::More)
|
|
|
be70f0 |
BuildRequires: perl(Test::NoTabs)
|
|
|
be70f0 |
BuildRequires: perl(Test::Output)
|
|
|
be70f0 |
BuildRequires: perl(Test::Pod)
|
|
|
be70f0 |
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
be70f0 |
BuildRequires: perl(Test::Requires)
|
|
|
be70f0 |
BuildRequires: perl(Test::Spelling)
|
|
|
be70f0 |
# Can't use aspell-en from EPEL-7 as BR: for RHEL-7 package so skip the spell
|
|
|
be70f0 |
# check test there; test would fail rather than skip without Test::Spelling so
|
|
|
be70f0 |
# we need to keep that as a buildreq
|
|
|
be70f0 |
%if 0%{?rhel} < 7
|
|
|
be70f0 |
BuildRequires: aspell-en
|
|
|
be70f0 |
%endif
|
|
|
be70f0 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
be70f0 |
|
|
|
be70f0 |
%description
|
|
|
be70f0 |
This module allows you to manage a set of deprecations for one or more modules.
|
|
|
be70f0 |
|
|
|
be70f0 |
When you import Package::DeprecationManager, you must provide a set of
|
|
|
be70f0 |
-deprecations as a hash ref. The keys are "feature" names, and the values are
|
|
|
be70f0 |
the version when that feature was deprecated.
|
|
|
be70f0 |
|
|
|
be70f0 |
%prep
|
|
|
be70f0 |
%setup -q -n Package-DeprecationManager-%{version}
|
|
|
be70f0 |
|
|
|
be70f0 |
# Fix tests for Test::More prior to 0.88
|
|
|
be70f0 |
%if %{old_test_more}
|
|
|
be70f0 |
%patch1
|
|
|
be70f0 |
%endif
|
|
|
be70f0 |
|
|
|
be70f0 |
# "deprecations" not a common dictionary word
|
|
|
be70f0 |
%patch3
|
|
|
be70f0 |
|
|
|
be70f0 |
%build
|
|
|
be70f0 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
be70f0 |
make %{?_smp_mflags}
|
|
|
be70f0 |
|
|
|
be70f0 |
%install
|
|
|
be70f0 |
rm -rf %{buildroot}
|
|
|
be70f0 |
make pure_install DESTDIR=%{buildroot}
|
|
|
be70f0 |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
be70f0 |
%{_fixperms} %{buildroot}
|
|
|
be70f0 |
|
|
|
be70f0 |
%check
|
|
|
be70f0 |
make test RELEASE_TESTING=1
|
|
|
be70f0 |
|
|
|
be70f0 |
%clean
|
|
|
be70f0 |
rm -rf %{buildroot}
|
|
|
be70f0 |
|
|
|
be70f0 |
%files
|
|
|
be70f0 |
%doc Changes LICENSE README
|
|
|
be70f0 |
%{perl_vendorlib}/Package/
|
|
|
be70f0 |
%{_mandir}/man3/Package::DeprecationManager.3pm*
|
|
|
be70f0 |
|
|
|
be70f0 |
%changelog
|
|
|
7ed48e |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.13-7
|
|
|
7ed48e |
- Mass rebuild 2013-12-27
|
|
|
7ed48e |
|
|
|
be70f0 |
* Wed Aug 15 2012 Daniel Mach <dmach@redhat.com> - 0.13-6.1
|
|
|
be70f0 |
- Rebuild for perl 5.16
|
|
|
be70f0 |
|
|
|
be70f0 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-6
|
|
|
be70f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
be70f0 |
|
|
|
be70f0 |
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.13-5
|
|
|
be70f0 |
- Perl 5.16 rebuild
|
|
|
be70f0 |
|
|
|
be70f0 |
* Thu Jun 7 2012 Paul Howarth <paul@city-fan.org> - 0.13-4
|
|
|
be70f0 |
- Add commentary regarding conditionalized buildreqs
|
|
|
be70f0 |
|
|
|
be70f0 |
* Thu Jun 7 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.13-3
|
|
|
be70f0 |
- Conditionalize aspell-en
|
|
|
be70f0 |
|
|
|
be70f0 |
* Mon Apr 23 2012 Paul Howarth <paul@city-fan.org> - 0.13-2
|
|
|
be70f0 |
- Upstream has dropped Kwalitee test, so drop BR: perl(Test::Kwalitee)
|
|
|
be70f0 |
|
|
|
be70f0 |
* Fri Mar 9 2012 Paul Howarth <paul@city-fan.org> - 0.13-1
|
|
|
be70f0 |
- Update to 0.13:
|
|
|
be70f0 |
- Fix dist.ini to not add Test::Spelling as a requirement
|
|
|
be70f0 |
- Drop %%defattr, redundant since rpm 4.4
|
|
|
be70f0 |
- Test::Requires available on all supported distributions
|
|
|
be70f0 |
|
|
|
be70f0 |
* Mon Mar 5 2012 Paul Howarth <paul@city-fan.org> - 0.12-1
|
|
|
be70f0 |
- Update to 0.12:
|
|
|
be70f0 |
- Fix tests to pass with Carp 1.25 (CPAN RT#75520)
|
|
|
be70f0 |
- BR: perl(Test::Spelling), aspell-en
|
|
|
be70f0 |
- Add patch to accept "deprecations" as a valid dictionary word
|
|
|
be70f0 |
- Update patches to apply cleanly
|
|
|
be70f0 |
- Don't need to remove empty directories from buildroot
|
|
|
be70f0 |
- Don't use macros for commands
|
|
|
be70f0 |
- Drop EPEL-4 support:
|
|
|
be70f0 |
- Drop patch supporting build with ExtUtils::MakeMaker < 6.30
|
|
|
be70f0 |
|
|
|
be70f0 |
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 0.11-3
|
|
|
be70f0 |
- Fedora 17 mass rebuild
|
|
|
be70f0 |
|
|
|
be70f0 |
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.11-2
|
|
|
be70f0 |
- Perl mass rebuild
|
|
|
be70f0 |
|
|
|
be70f0 |
* Mon Jun 20 2011 Paul Howarth <paul@city-fan.org> - 0.11-1
|
|
|
be70f0 |
- Update to 0.11:
|
|
|
be70f0 |
- Allow an empty hash for the -deprecations parameter
|
|
|
be70f0 |
- BR: perl(ExtUtils::MakeMaker)
|
|
|
be70f0 |
- BR: perl(Test::CPAN::Changes)
|
|
|
be70f0 |
- BR: perl(Pod::Coverage::TrustPod) unconditionally
|
|
|
be70f0 |
- Update patches for old ExtUtils::MakeMaker and Test::More compatibility
|
|
|
be70f0 |
|
|
|
be70f0 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
|
|
|
be70f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
be70f0 |
|
|
|
be70f0 |
* Sat Jan 08 2011 Paul Howarth <paul@city-fan.org> - 0.10-2
|
|
|
be70f0 |
- Update patches for old Test::More and no Test::Requires
|
|
|
be70f0 |
- perl(Pod::Coverage::TrustPod) now available everywhere except EPEL-4
|
|
|
be70f0 |
|
|
|
be70f0 |
* Sat Jan 08 2011 Iain Arnell <iarnell@gmail.com> - 0.10-1
|
|
|
be70f0 |
- Update to 0.10:
|
|
|
be70f0 |
- Test suite uses Test::Fatal instead of Test::Exception
|
|
|
be70f0 |
|
|
|
be70f0 |
* Mon Oct 18 2010 Paul Howarth <paul@city-fan.org> - 0.09-1
|
|
|
be70f0 |
- Update to 0.09:
|
|
|
be70f0 |
- Added a compilation test
|
|
|
be70f0 |
|
|
|
be70f0 |
* Fri Oct 15 2010 Paul Howarth <paul@city-fan.org> - 0.08-1
|
|
|
be70f0 |
- Update to 0.08:
|
|
|
be70f0 |
- The use of regular expressions in ignores didn't really work in 0.06
|
|
|
be70f0 |
- Added missing deps on List::MoreUtils and Test::Requires
|
|
|
be70f0 |
- Replaced Test::Warn with Test::Output in the tests
|
|
|
be70f0 |
- Made the tests actually test what they should be testing
|
|
|
be70f0 |
- BR: Test::Output rather than Test::Warn
|
|
|
be70f0 |
- Update patches
|
|
|
be70f0 |
|
|
|
be70f0 |
* Fri Oct 15 2010 Paul Howarth <paul@city-fan.org> - 0.06-1
|
|
|
be70f0 |
- Update to 0.06:
|
|
|
be70f0 |
- Removed hard dep on Test::Warn for the benefit of Moose
|
|
|
be70f0 |
- Fixed what looked like a bug in -ignore handling
|
|
|
be70f0 |
- The -ignore parameter now accepts regexes as well as package names
|
|
|
be70f0 |
- Update compatibility patches
|
|
|
be70f0 |
- BR: List::MoreUtils
|
|
|
be70f0 |
- BR: Test::Requires where possible, patch it out elsewhere
|
|
|
be70f0 |
|
|
|
be70f0 |
* Tue Jul 27 2010 Paul Howarth <paul@city-fan.org> - 0.04-2
|
|
|
be70f0 |
- Clean up for Fedora submission
|
|
|
be70f0 |
|
|
|
be70f0 |
* Mon Jul 26 2010 Paul Howarth <paul@city-fan.org> - 0.04-1
|
|
|
be70f0 |
- Initial RPM version
|