commit cb20467ae8130389edf1fa18b661a8808d5d2a08 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Wed Feb 8 13:44:49 2012 +0000 Reinstate compatibility with old distributions like EL-5 - Reinstate compatibility with old distributions like EL-5 - Add back buildroot definition and cleaning - Make %files list more explicit - Don't use macros for commands perl-Params-Classify.spec | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) --- diff --git a/perl-Params-Classify.spec b/perl-Params-Classify.spec index 8a68c0a..23186e7 100644 --- a/perl-Params-Classify.spec +++ b/perl-Params-Classify.spec @@ -1,21 +1,22 @@ Name: perl-Params-Classify Version: 0.013 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Argument type classification License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Params-Classify/ Source0: http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/Params-Classify-%{version}.tar.gz -BuildRequires: perl(ExtUtils::ParseXS) >= 2.2006 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildRequires: perl(ExtUtils::ParseXS) BuildRequires: perl(Module::Build) BuildRequires: perl(parent) BuildRequires: perl(Scalar::Util) >= 1.01 BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Exporter) Requires: perl(Scalar::Util) >= 1.01 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} @@ -30,27 +31,36 @@ functions in C++). %setup -q -n Params-Classify-%{version} %build -%{__perl} Build.PL installdirs=vendor optimize="%{optflags}" +perl Build.PL installdirs=vendor optimize="%{optflags}" ./Build %install +rm -rf %{buildroot} ./Build install destdir=%{buildroot} create_packlist=0 find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; - -%{_fixperms} %{buildroot}/* +find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null +%{_fixperms} %{buildroot} %check ./Build test +%clean +rm -rf %{buildroot} + %files %defattr(-,root,root,-) %doc Changes README -%{perl_vendorarch}/auto/* -%{perl_vendorarch}/Params* -%{_mandir}/man3/* +%{perl_vendorarch}/auto/Params/ +%{perl_vendorarch}/Params/ +%{_mandir}/man3/Params::Classify.3pm* %changelog +* Tue Feb 7 2012 Paul Howarth <paul@xxxxxxxxxxxx> - 0.013-5 +- Reinstate compatibility with old distributions like EL-5 + - Add back buildroot definition and cleaning +- Make %%files list more explicit +- Don't use macros for commands + * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.013-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel