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 Name: perl-Module-CoreList
Version: 2.11 Version: 2.13
Release: 2%{?dist} Release: 1%{?dist}
Summary: Perl core modules indexed by perl versions Summary: Perl core modules indexed by perl versions
Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Module-CoreList/ URL: http://search.cpan.org/dist/Module-CoreList/
Source0: http://www.cpan.org/authors/id/R/RG/RGARCIA/Module-CoreList-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/R/RG/RGARCIA/Module-CoreList-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(version) BuildRequires: perl(version)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(version) Requires: perl(version)
%description %description
Module::CoreList contains the hash of hashes %Module::CoreList::version, Module::CoreList contains the hash of hashes %Module::CoreList::version,
this is keyed on perl version as indicated in $]. The second level hash that is keyed on perl version as indicated in $]. The second level hash is
is module => version pairs. module => version pairs.
%prep %prep
%setup -q -n Module-CoreList-%{version} %setup -q -n Module-CoreList-%{version}
%{__perl} -pi -e 's{^#!/usr/local/perl5.6.1/bin/perl\b}{#!%{__perl}}' \ %{__perl} -pi -e 's{^#!/usr/local/perl5.6.1/bin/perl\b}{#!%{__perl}}' \
identify-dependencies identify-dependencies
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT 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 %check
make test make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes README identify-dependencies %doc Changes README identify-dependencies
%{_bindir}/* %{_bindir}/*
%{perl_vendorlib}/Module/ %{perl_vendorlib}/*
%{_mandir}/man1/*.1* %{_mandir}/man1/*
%{_mandir}/man3/*.3pm* %{_mandir}/man3/*
%changelog %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 * Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.11-2
- license fix - license fix

View File

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