From 0a5789f41b110210a82c96739ba105153db9d291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 12 Jul 2013 14:15:51 +0200 Subject: [PATCH] Do not run optional tests at boot-strap --- .rpmlint | 2 ++ perl-constant.spec | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 .rpmlint diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..36cc9db --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* pragma"); diff --git a/perl-constant.spec b/perl-constant.spec index 325ea1c..51ed65d 100644 --- a/perl-constant.spec +++ b/perl-constant.spec @@ -1,6 +1,6 @@ Name: perl-constant Version: 1.27 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Perl pragma to declare constants License: GPL+ or Artistic Group: Development/Libraries @@ -8,7 +8,7 @@ URL: http://search.cpan.org/dist/constant/ Source0: http://www.cpan.org/authors/id/S/SA/SAPER/constant-%{version}.tar.gz BuildArch: noarch BuildRequires: perl -BuildRequires: perl(Module::Build) +BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) # Run-time: BuildRequires: perl(Carp) @@ -18,9 +18,11 @@ BuildRequires: perl(warnings::register) BuildRequires: perl(Test::More) BuildRequires: perl(utf8) BuildRequires: perl(warnings) +%if !%{defined perl_bootstrap} # Optional tests: BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Carp) @@ -45,15 +47,16 @@ away if the constant is false. %setup -q -n constant-%{version} %build -perl Build.PL installdirs=vendor -./Build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %install -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check -./Build test +make test %files %doc Changes eg README @@ -61,5 +64,9 @@ perl Build.PL installdirs=vendor %{_mandir}/man3/* %changelog +* Fri Jul 12 2013 Petr Pisar 1.27-2 +- Migrate to ExtUtils::MakeMaker +- Do not run optional tests at boot-strap + * Thu Mar 21 2013 Petr Pisar 1.27-1 - Specfile autogenerated by cpanspec 1.78.