From 6e38126284a6b47cd8b23ab5bf1b3e9a21d8298d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Tue, 28 Jun 2011 13:56:33 +0200 Subject: [PATCH] use perl_bootstrap macro --- perl-Perl-MinimumVersion.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/perl-Perl-MinimumVersion.spec b/perl-Perl-MinimumVersion.spec index df4777c..2ab93af 100644 --- a/perl-Perl-MinimumVersion.spec +++ b/perl-Perl-MinimumVersion.spec @@ -1,6 +1,6 @@ Name: perl-Perl-MinimumVersion Version: 1.28 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find a minimum required version of perl for Perl code License: GPL+ or Artistic Group: Development/Libraries @@ -12,14 +12,16 @@ BuildArch: noarch BuildRequires: perl(List::Util) >= 1.20 BuildRequires: perl(PPI) >= 1.215 -BuildRequires: perl(Test::Script) >= 1.03 BuildRequires: perl(version) >= 0.76 +BuildRequires: perl(Perl::Critic::Utils) >= 1.104 +BuildRequires: perl(Params::Util) >= 0.25 +%if !%{defined perl_bootstrap} +BuildRequires: perl(Test::Script) >= 1.03 BuildRequires: perl(File::Find::Rule) >= 0.32 BuildRequires: perl(File::Find::Rule::Perl) >= 1.04 BuildRequires: perl(File::Spec) >= 0.80 BuildRequires: perl(Test::More) >= 0.47 -BuildRequires: perl(Perl::Critic::Utils) >= 1.104 -BuildRequires: perl(Params::Util) >= 0.25 +%endif %description Find a minimum required version of perl for Perl code @@ -38,7 +40,9 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check +%if !%{defined perl_bootstrap} make test +%endif %files %defattr(-,root,root,-) @@ -49,6 +53,9 @@ make test %{_mandir}/man3/* %changelog +* Tue Jun 28 2011 Marcela Mašláňová - 1.28-2 +- use perl_bootstrap macro + * Fri Jun 17 2011 Ralf Corsépius - 1.28-1 - Upstream update. - Remove maintainer test (Upstream doesn't want us to find his bugs).