- Add test suite patch to support building with Test::More < 0.88 so that we can build for EPEL-5, only applying the patch when necessary - BR: at least version 0.09 of perl(MRO::Compat) - BR: perl(Pod::Coverage::TrustPod), perl(Test::Pod) and perl(Test::Pod::Coverage) for full test coverage - Run the release tests too - Drop redundant explicit versioned dependency on perl(Sub::Exporter) - Don't need to remove empty directories from buildroot - Don't use macros for commands - Use DESTDIR rather than PERL_INSTALL_ROOT - Drop %defattr, redundant since rpm 4.4 - Make %files list more explicit
120 lines
4.3 KiB
RPMSpec
120 lines
4.3 KiB
RPMSpec
# 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)
|
|
|
|
Name: perl-Data-Section
|
|
Version: 0.101621
|
|
Release: 2%{?dist}
|
|
Summary: Read multiple hunks of data out of your DATA section
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Data-Section/
|
|
Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Data-Section-%{version}.tar.gz
|
|
Patch1: Data-Section-0.101620-old-Test::More.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(MRO::Compat) >= 0.09
|
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
BuildRequires: perl(Sub::Exporter) >= 0.979
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%description
|
|
Data::Section provides an easy way to access multiple named chunks of
|
|
line-oriented data in your module's DATA section. It was written to allow
|
|
modules to store their own templates, but probably has other uses.
|
|
|
|
%prep
|
|
%setup -q -n Data-Section-%{version}
|
|
|
|
# Hack for old Test::More versions
|
|
%if %{old_test_more}
|
|
%patch1 -p1
|
|
%endif
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
%{_fixperms} $RPM_BUILD_ROOT
|
|
|
|
%check
|
|
make test RELEASE_TESTING=1
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%doc Changes LICENSE README
|
|
%{perl_vendorlib}/Data/
|
|
%{_mandir}/man3/Data::Section.3pm*
|
|
|
|
%changelog
|
|
* Wed Mar 7 2012 Paul Howarth <paul@city-fan.org> - 0.101621-2
|
|
- Add test suite patch to support building with Test::More < 0.88 so that we
|
|
can build for EPEL-5, only applying the patch when necessary
|
|
- BR: at least version 0.09 of perl(MRO::Compat)
|
|
- BR: perl(Pod::Coverage::TrustPod), perl(Test::Pod) and
|
|
perl(Test::Pod::Coverage) for full test coverage
|
|
- Run the release tests too
|
|
- Drop redundant explicit versioned dependency on perl(Sub::Exporter)
|
|
- Don't need to remove empty directories from buildroot
|
|
- Don't use macros for commands
|
|
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
- Drop %%defattr, redundant since rpm 4.4
|
|
- Make %%files list more explicit
|
|
|
|
* Mon Jan 30 2012 Daniel P. Berrange <berrange@redhat.com> - 0.101621-1
|
|
- Update to 0.101621 release (rhbz #785362)
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101620-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.101620-5
|
|
- Perl mass rebuild
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101620-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.101620-3
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
* Wed Jun 30 2010 Mark Chappell <tremble@fedoraproject.org> - 0.101620-2
|
|
- Add in missing BuildRequires MRO::Compat
|
|
|
|
* Wed Jun 30 2010 Mark Chappell <tremble@fedoraproject.org> - 0.101620-1
|
|
- Update for release 0.101620
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.093410-3
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Tue Jan 12 2010 Daniel P. Berrange <berrange@redhat.com> - 0.093410-2
|
|
- Fix source URL
|
|
|
|
* Thu Jan 7 2010 Daniel P. Berrange <berrange@redhat.com> - 0.093410-1
|
|
- Update to 0.093410 release
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.091820-3
|
|
- rebuild against perl 5.10.1
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.091820-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Jul 22 2009 Daniel P. Berrange <berrange@redhat.com> - 0.091820-1
|
|
- Update to 0.091820 release
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.005-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sat Sep 06 2008 Daniel P. Berrange <berrange@redhat.com> 0.005-2
|
|
- Add Test::More BR
|
|
|
|
* Fri Sep 05 2008 Daniel P. Berrange <berrange@redhat.com> 0.005-1
|
|
- Specfile autogenerated by cpanspec 1.77.
|