Update to 2.13. Use fixperms macro instead of our own chmod incantation.

Reformat to match cpanspec output. BR ExtUtils::MakeMaker.
This commit is contained in:
Steven Pritchard 2008-01-28 20:58:05 +00:00
parent e5d2a9e52a
commit 6f74f47ebb
3 changed files with 23 additions and 22 deletions

View File

@ -1 +1 @@
Module-CoreList-2.11.tar.gz
Module-CoreList-2.13.tar.gz

View File

@ -1,63 +1,64 @@
Name: perl-Module-CoreList
Version: 2.11
Release: 2%{?dist}
Version: 2.13
Release: 1%{?dist}
Summary: Perl core modules indexed by perl versions
Group: Development/Libraries
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Module-CoreList/
Source0: http://www.cpan.org/authors/id/R/RG/RGARCIA/Module-CoreList-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(version)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Pod)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(version)
%description
Module::CoreList contains the hash of hashes %Module::CoreList::version,
this is keyed on perl version as indicated in $]. The second level hash
is module => version pairs.
that is keyed on perl version as indicated in $]. The second level hash is
module => version pairs.
%prep
%setup -q -n Module-CoreList-%{version}
%{__perl} -pi -e 's{^#!/usr/local/perl5.6.1/bin/perl\b}{#!%{__perl}}' \
identify-dependencies
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README identify-dependencies
%{_bindir}/*
%{perl_vendorlib}/Module/
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3pm*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
* Mon Jan 28 2008 Steven Pritchard <steve@kspei.com> 2.13-1
- Update to 2.13.
- Use fixperms macro instead of our own chmod incantation.
- Reformat to match cpanspec output.
- BR ExtUtils::MakeMaker.
* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.11-2
- license fix

View File

@ -1 +1 @@
58d2d31cce9bc7aef7adf0ac26ed8a7f Module-CoreList-2.11.tar.gz
03638d8f941fd0f4b33c9827c084c5f3 Module-CoreList-2.13.tar.gz