source: projects/specs/trunk/p/perl-Package-DeprecationManager/perl-Package-DeprecationManager-vl.spec @ 5844

Revision 5844, 4.4 KB checked in by shaolin, 12 years ago (diff)
  • new packages
Line 
1# Test::Kwalitee and Test::Requires not available in EPEL < 6
2%global extra_tests_available %(expr 0%{?fedora} + 0%{?rhel} '>' 5)
3
4Name:           perl-Package-DeprecationManager
5Version:        0.11
6Release:        3%{?dist}
7Summary:        Manage deprecation warnings for your distribution
8Group:          Development/Libraries
9License:        Artistic 2.0
10URL:            http://search.cpan.org/dist/Package-DeprecationManager/
11Source0:        http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz
12Patch0:         Package-DeprecationManager-0.11-old-EU::MM.patch
13Patch1:         Package-DeprecationManager-0.11-old-Test::More.patch
14Patch2:         Package-DeprecationManager-0.10-no-Test::Requires.patch
15BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
16BuildArch:      noarch
17BuildRequires:  perl(Carp)
18BuildRequires:  perl(ExtUtils::MakeMaker)
19BuildRequires:  perl(List::MoreUtils)
20BuildRequires:  perl(Params::Util)
21BuildRequires:  perl(Sub::Install)
22BuildRequires:  perl(Test::EOL)
23BuildRequires:  perl(Test::Fatal)
24BuildRequires:  perl(Test::More)
25BuildRequires:  perl(Test::NoTabs)
26BuildRequires:  perl(Test::Output)
27BuildRequires:  perl(Test::Pod)
28BuildRequires:  perl(Test::Pod::Coverage)
29BuildRequires:  perl(Pod::Coverage::TrustPod)
30BuildRequires:  perl(Test::CPAN::Changes)
31%if %{extra_tests_available}
32BuildRequires:  perl(Test::Kwalitee)
33BuildRequires:  perl(Test::Requires)
34%endif
35Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
36
37%description
38This module allows you to manage a set of deprecations for one or more modules.
39
40When 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
42the 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
53perl Makefile.PL INSTALLDIRS=vendor
54make %{?_smp_mflags}
55
56%install
57rm -rf %{buildroot}
58make pure_install DESTDIR=%{buildroot}
59find %{buildroot} -type f -name .packlist -exec rm -f {} \;
60find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
61%{_fixperms} %{buildroot}
62
63%check
64make test RELEASE_TESTING=1
65
66%clean
67rm -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
Note: See TracBrowser for help on using the repository browser.