Update to 0.13

- New upstream release 0.13:
  - Fix dist.ini to not add Test::Spelling as a requirement
- Drop %defattr, redundant since rpm 4.4
- Test::Requires available on all supported distributions
epel9
Paul Howarth 13 years ago
parent da2d63dc23
commit 20a967eefa

@ -1,16 +0,0 @@
--- t/basic.t
+++ t/basic.t
@@ -4,9 +4,10 @@ use warnings;
use Test::Fatal;
use Test::More;
-use Test::Requires {
- 'Test::Output' => '0.16',
-};
+BEGIN {
+ eval "use Test::Output 0.16;";
+ plan skip_all => "Test::Output 0.16 is required for this test" if $@;
+}
plan tests => 25;

@ -1,14 +1,14 @@
# We need to patch the test suite if we have an old version of Test::More # We need to patch the test suite if we have an old version of Test::More
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
# Test::Kwalitee and Test::Requires not available in EPEL < 6 # Test::Kwalitee not yet available in EPEL < 6
%global extra_tests_available %(expr 0%{?fedora} + 0%{?rhel} '>' 5) %global extra_tests_available %(expr 0%{?fedora} + 0%{?rhel} '>' 5)
# Test::CPAN::Changes isn't available in EPEL-6 either, due to requirement of perl(version) ≥ 0.79 # Test::CPAN::Changes isn't available in EPEL-6 either, due to requirement of perl(version) ≥ 0.79
%global cpan_changes_available %(expr 0%{?fedora} + 0%{?rhel} '>' 6) %global cpan_changes_available %(expr 0%{?fedora} + 0%{?rhel} '>' 6)
Name: perl-Package-DeprecationManager Name: perl-Package-DeprecationManager
Version: 0.12 Version: 0.13
Release: 1%{?dist} Release: 1%{?dist}
Summary: Manage deprecation warnings for your distribution Summary: Manage deprecation warnings for your distribution
Group: Development/Libraries Group: Development/Libraries
@ -16,7 +16,6 @@ License: Artistic 2.0
URL: http://search.cpan.org/dist/Package-DeprecationManager/ URL: http://search.cpan.org/dist/Package-DeprecationManager/
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz
Patch1: Package-DeprecationManager-0.12-old-Test::More.patch Patch1: Package-DeprecationManager-0.12-old-Test::More.patch
Patch2: Package-DeprecationManager-0.12-no-Test::Requires.patch
Patch3: Package-DeprecationManager-0.12-stopwords.patch Patch3: Package-DeprecationManager-0.12-stopwords.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
@ -36,10 +35,10 @@ BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Output) BuildRequires: perl(Test::Output)
BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Spelling), aspell-en BuildRequires: perl(Test::Spelling), aspell-en
%if %{extra_tests_available} %if %{extra_tests_available}
BuildRequires: perl(Test::Kwalitee) BuildRequires: perl(Test::Kwalitee)
BuildRequires: perl(Test::Requires)
%endif %endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -58,11 +57,6 @@ the version when that feature was deprecated.
%patch1 %patch1
%endif %endif
# If we don't have Test::Requires, we need to patch it out of the test suite
%if ! %{extra_tests_available}
%patch2
%endif
# "deprecations" not a common dictionary word # "deprecations" not a common dictionary word
%patch3 %patch3
@ -83,12 +77,17 @@ make test RELEASE_TESTING=1
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-)
%doc Changes LICENSE README %doc Changes LICENSE README
%{perl_vendorlib}/Package/ %{perl_vendorlib}/Package/
%{_mandir}/man3/Package::DeprecationManager.3pm* %{_mandir}/man3/Package::DeprecationManager.3pm*
%changelog %changelog
* Fri Mar 9 2012 Paul Howarth <paul@city-fan.org> - 0.13-1
- Update to 0.13:
- Fix dist.ini to not add Test::Spelling as a requirement
- Drop %%defattr, redundant since rpm 4.4
- Test::Requires available on all supported distributions
* Mon Mar 5 2012 Paul Howarth <paul@city-fan.org> - 0.12-1 * Mon Mar 5 2012 Paul Howarth <paul@city-fan.org> - 0.12-1
- Update to 0.12: - Update to 0.12:
- Fix tests to pass with Carp 1.25 (CPAN RT#75520) - Fix tests to pass with Carp 1.25 (CPAN RT#75520)

@ -1 +1 @@
5f7f21db151fa7f19c10cb6009a735d4 Package-DeprecationManager-0.12.tar.gz f81ae3c0f9bcac048eb4bff348b79f67 Package-DeprecationManager-0.13.tar.gz

Loading…
Cancel
Save