1 | # Test::Kwalitee and Test::Requires not available in EPEL < 6 |
---|
2 | %global extra_tests_available %(expr 0%{?fedora} + 0%{?rhel} '>' 5) |
---|
3 | |
---|
4 | Name: perl-Package-DeprecationManager |
---|
5 | Version: 0.11 |
---|
6 | Release: 3%{?dist} |
---|
7 | Summary: Manage deprecation warnings for your distribution |
---|
8 | Group: Development/Libraries |
---|
9 | License: Artistic 2.0 |
---|
10 | URL: http://search.cpan.org/dist/Package-DeprecationManager/ |
---|
11 | Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz |
---|
12 | Patch0: Package-DeprecationManager-0.11-old-EU::MM.patch |
---|
13 | Patch1: Package-DeprecationManager-0.11-old-Test::More.patch |
---|
14 | Patch2: Package-DeprecationManager-0.10-no-Test::Requires.patch |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) |
---|
16 | BuildArch: noarch |
---|
17 | BuildRequires: perl(Carp) |
---|
18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
19 | BuildRequires: perl(List::MoreUtils) |
---|
20 | BuildRequires: perl(Params::Util) |
---|
21 | BuildRequires: perl(Sub::Install) |
---|
22 | BuildRequires: perl(Test::EOL) |
---|
23 | BuildRequires: perl(Test::Fatal) |
---|
24 | BuildRequires: perl(Test::More) |
---|
25 | BuildRequires: perl(Test::NoTabs) |
---|
26 | BuildRequires: perl(Test::Output) |
---|
27 | BuildRequires: perl(Test::Pod) |
---|
28 | BuildRequires: perl(Test::Pod::Coverage) |
---|
29 | BuildRequires: perl(Pod::Coverage::TrustPod) |
---|
30 | BuildRequires: perl(Test::CPAN::Changes) |
---|
31 | %if %{extra_tests_available} |
---|
32 | BuildRequires: perl(Test::Kwalitee) |
---|
33 | BuildRequires: perl(Test::Requires) |
---|
34 | %endif |
---|
35 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
36 | |
---|
37 | %description |
---|
38 | This module allows you to manage a set of deprecations for one or more modules. |
---|
39 | |
---|
40 | When you import Package::DeprecationManager, you must provide a set of |
---|
41 | -deprecations as a hash ref. The keys are "feature" names, and the values are |
---|
42 | the version when that feature was deprecated. |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q -n Package-DeprecationManager-%{version} |
---|
46 | |
---|
47 | # If we don't have Test::Requires, we need to patch it out of the test suite |
---|
48 | %if ! %{extra_tests_available} |
---|
49 | %patch2 -p1 |
---|
50 | %endif |
---|
51 | |
---|
52 | %build |
---|
53 | perl Makefile.PL INSTALLDIRS=vendor |
---|
54 | make %{?_smp_mflags} |
---|
55 | |
---|
56 | %install |
---|
57 | rm -rf %{buildroot} |
---|
58 | make pure_install DESTDIR=%{buildroot} |
---|
59 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
60 | find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null |
---|
61 | %{_fixperms} %{buildroot} |
---|
62 | |
---|
63 | %check |
---|
64 | make test RELEASE_TESTING=1 |
---|
65 | |
---|
66 | %clean |
---|
67 | rm -rf %{buildroot} |
---|
68 | |
---|
69 | %files |
---|
70 | %defattr(-,root,root,-) |
---|
71 | %doc Changes LICENSE README |
---|
72 | %{perl_vendorlib}/Package/ |
---|
73 | %{_mandir}/man3/Package::DeprecationManager.3pm* |
---|
74 | |
---|
75 | %changelog |
---|
76 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.11-1 |
---|
77 | - initial build for Vine Linux |
---|
78 | |
---|
79 | * Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 0.11-3 |
---|
80 | - Fedora 17 mass rebuild |
---|
81 | |
---|
82 | * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.11-2 |
---|
83 | - Perl mass rebuild |
---|
84 | |
---|
85 | * Mon Jun 20 2011 Paul Howarth <paul@city-fan.org> - 0.11-1 |
---|
86 | - Update to 0.11: |
---|
87 | - Allow an empty hash for the -deprecations parameter |
---|
88 | - BR: perl(ExtUtils::MakeMaker) |
---|
89 | - BR: perl(Test::CPAN::Changes) |
---|
90 | - BR: perl(Pod::Coverage::TrustPod) unconditionally |
---|
91 | - Update patches for old ExtUtils::MakeMaker and Test::More compatibility |
---|
92 | |
---|
93 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3 |
---|
94 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
95 | |
---|
96 | * Sat Jan 08 2011 Paul Howarth <paul@city-fan.org> - 0.10-2 |
---|
97 | - Update patches for old Test::More and no Test::Requires |
---|
98 | - perl(Pod::Coverage::TrustPod) now available everywhere except EPEL-4 |
---|
99 | |
---|
100 | * Sat Jan 08 2011 Iain Arnell <iarnell@gmail.com> - 0.10-1 |
---|
101 | - Update to 0.10: |
---|
102 | - Test suite uses Test::Fatal instead of Test::Exception |
---|
103 | |
---|
104 | * Mon Oct 18 2010 Paul Howarth <paul@city-fan.org> - 0.09-1 |
---|
105 | - Update to 0.09: |
---|
106 | - Added a compilation test |
---|
107 | |
---|
108 | * Fri Oct 15 2010 Paul Howarth <paul@city-fan.org> - 0.08-1 |
---|
109 | - Update to 0.08: |
---|
110 | - The use of regular expressions in ignores didn't really work in 0.06 |
---|
111 | - Added missing deps on List::MoreUtils and Test::Requires |
---|
112 | - Replaced Test::Warn with Test::Output in the tests |
---|
113 | - Made the tests actually test what they should be testing |
---|
114 | - BR: Test::Output rather than Test::Warn |
---|
115 | - Update patches |
---|
116 | |
---|
117 | * Fri Oct 15 2010 Paul Howarth <paul@city-fan.org> - 0.06-1 |
---|
118 | - Update to 0.06: |
---|
119 | - Removed hard dep on Test::Warn for the benefit of Moose |
---|
120 | - Fixed what looked like a bug in -ignore handling |
---|
121 | - The -ignore parameter now accepts regexes as well as package names |
---|
122 | - Update compatibility patches |
---|
123 | - BR: List::MoreUtils |
---|
124 | - BR: Test::Requires where possible, patch it out elsewhere |
---|
125 | |
---|
126 | * Tue Jul 27 2010 Paul Howarth <paul@city-fan.org> - 0.04-2 |
---|
127 | - Clean up for Fedora submission |
---|
128 | |
---|
129 | * Mon Jul 26 2010 Paul Howarth <paul@city-fan.org> - 0.04-1 |
---|
130 | - Initial RPM version |
---|