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
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user