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:
parent
e5d2a9e52a
commit
6f74f47ebb
@ -1 +1 @@
|
||||
Module-CoreList-2.11.tar.gz
|
||||
Module-CoreList-2.13.tar.gz
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user