commit 45a8037b82ef810b3846ae3f261143b5a08d8ffd Author: Jitka Plesnikova <jplesnik@xxxxxxxxxx> Date: Fri Jul 12 13:49:52 2013 +0200 Specify all dependencies; Use DESTDIR; Remove buildroot cleaning perl-Switch.spec | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) --- diff --git a/perl-Switch.spec b/perl-Switch.spec index 16fc96a..83bda7d 100644 --- a/perl-Switch.spec +++ b/perl-Switch.spec @@ -1,6 +1,6 @@ Name: perl-Switch Version: 2.16 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A switch statement for Perl Group: Development/Libraries License: GPL+ or Artistic @@ -8,8 +8,19 @@ URL: http://search.cpan.org/dist/Switch/ Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Switch-%{version}.tar.gz # From OpenSUSE, fix test failures with perl 5.14 Patch0: Switch-2.16-perl514.patch +BuildRequires: perl +%if 0%(perl -e 'print $] > 5.011') +BuildRequires: perl(deprecate) +%endif BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Filter::Util::Call) +BuildRequires: perl(if) +BuildRequires: perl(overload) +BuildRequires: perl(Text::Balanced) +BuildRequires: perl(vars) +BuildRequires: perl(strict) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(overload) BuildArch: noarch %description @@ -29,10 +40,9 @@ various cases. make %{?_smp_mflags} %install -make pure_install PERL_INSTALL_ROOT=%{buildroot} +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %check @@ -44,6 +54,11 @@ make test %{_mandir}/man3/*.3* %changelog +* Fri Jul 12 2013 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 2.16-6 +- Specify all dependencies +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Remove buildroot cleaning + * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 2.16-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_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