76 lines
2.1 KiB
RPMSpec
76 lines
2.1 KiB
RPMSpec
# Test suite needs patching if we have Test::More < 0.88
|
|
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION) < 0.88 ? 1 : 0);' 2>/dev/null || echo 0)
|
|
|
|
Name: perl-ExtUtils-Config
|
|
Version: 0.007
|
|
Release: 3%{?dist}
|
|
Summary: A wrapper for perl's configuration
|
|
Group: Development/Libraries
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/ExtUtils-Config
|
|
Source0: http://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Config-%{version}.tar.gz
|
|
Patch1: ExtUtils-Config-0.007-old-Test::More.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
BuildArch: noarch
|
|
# Build
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
# Module
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(Data::Dumper)
|
|
# Test Suite
|
|
BuildRequires: perl(File::Find)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl(Test::More)
|
|
# Release Tests
|
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
# Test::Kwalitee builds using Module::Build::Tiny, which requires ExtUtils::Config
|
|
%if 0%{!?perl_bootstrap:1}
|
|
BuildRequires: perl(Test::Kwalitee)
|
|
%endif
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
# Runtime
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%description
|
|
ExtUtils::Config is an abstraction around the %%Config hash.
|
|
|
|
%prep
|
|
%setup -q -n ExtUtils-Config-%{version}
|
|
|
|
# Test suite needs patching if we have Test::More < 0.88
|
|
%if %{old_test_more}
|
|
%patch1
|
|
%endif
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make pure_install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%check
|
|
make test RELEASE_TESTING=1
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%doc Changes LICENSE README
|
|
%{perl_vendorlib}/ExtUtils/
|
|
%{_mandir}/man3/ExtUtils::Config.3pm*
|
|
|
|
%changelog
|
|
* Fri Jul 5 2013 Paul Howarth <paul@city-fan.org> - 0.007-3
|
|
- Don't BR: perl(Test::Kwalitee) when bootstrapping
|
|
|
|
* Mon Apr 1 2013 Paul Howarth <paul@city-fan.org> - 0.007-2
|
|
- Sanitize for Fedora submission
|
|
|
|
* Sun Mar 31 2013 Paul Howarth <paul@city-fan.org> - 0.007-1
|
|
- Initial RPM version
|