|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
# We don't really need ExtUtils::MakeMaker > 6.31
|
|
|
|
|
%global old_eumm %(%{__perl} -MExtUtils::MakeMaker -e 'printf "%d\\n", $ExtUtils::MakeMaker::VERSION < 6.31 ? 1 : 0;' 2>/dev/null || echo 0)
|
|
|
|
|
# We don't really need ExtUtils::MakeMaker ≥ 6.30
|
|
|
|
|
%global old_eumm %(%{__perl} -MExtUtils::MakeMaker -e 'printf "%d\\n", $ExtUtils::MakeMaker::VERSION < 6.30 ? 1 : 0;' 2>/dev/null || echo 0)
|
|
|
|
|
|
|
|
|
|
# We need to patch the test suite if we have an old version of Test::More
|
|
|
|
|
%global old_test_more %(%{__perl} -MTest::More -e 'printf "%d\\n", $Test::More::VERSION < 0.88 ? 1 : 0;' 2>/dev/null || echo 0)
|
|
|
|
@ -24,6 +24,7 @@ Patch2: Package-DeprecationManager-0.10-no-Test::Requires.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(List::MoreUtils)
|
|
|
|
|
BuildRequires: perl(Params::Util)
|
|
|
|
|
BuildRequires: perl(Sub::Install)
|
|
|
|
@ -54,7 +55,7 @@ the version when that feature was deprecated.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Package-DeprecationManager-%{version}
|
|
|
|
|
|
|
|
|
|
# We don't really need ExtUtils::MakeMaker > 6.31
|
|
|
|
|
# We don't really need ExtUtils::MakeMaker ≥ 6.30
|
|
|
|
|
%if %{old_eumm}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%endif
|
|
|
|
@ -96,6 +97,7 @@ rm -rf %{buildroot}
|
|
|
|
|
* Mon Jun 20 2011 Paul Howarth <paul@city-fan.org> - 0.11-1
|
|
|
|
|
- Update to 0.11:
|
|
|
|
|
- Allow an empty hash for the -deprecations parameter
|
|
|
|
|
- BR: perl(ExtUtils::MakeMaker)
|
|
|
|
|
- BR: perl(Test::CPAN::Changes)
|
|
|
|
|
- BR: perl(Pod::Coverage::TrustPod) unconditionally
|
|
|
|
|
- Update patches for old ExtUtils::MakeMaker and Test::More compatibility
|
|
|
|
|