Do not run optional tests at boot-strap
This commit is contained in:
parent
53921cc7a0
commit
0a5789f41b
2
.rpmlint
Normal file
2
.rpmlint
Normal file
@ -0,0 +1,2 @@
|
||||
from Config import *
|
||||
addFilter("spelling-error .* pragma");
|
||||
@ -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 <ppisar@redhat.com> 1.27-2
|
||||
- Migrate to ExtUtils::MakeMaker
|
||||
- Do not run optional tests at boot-strap
|
||||
|
||||
* Thu Mar 21 2013 Petr Pisar <ppisar@redhat.com> 1.27-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user