From 6eec1d039fd2af57616514a1bdccd39953b43fd2 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 8 Apr 2013 16:19:58 +0100 Subject: [PATCH] Initial import (perl-ExtUtils-Config-0.007-2) ExtUtils::Config is an abstraction around the %Config hash. --- .gitignore | 1 + ExtUtils-Config-0.007-old-Test::More.patch | 16 +++++ perl-ExtUtils-Config.spec | 69 ++++++++++++++++++++++ sources | 1 + 4 files changed, 87 insertions(+) create mode 100644 ExtUtils-Config-0.007-old-Test::More.patch create mode 100644 perl-ExtUtils-Config.spec diff --git a/.gitignore b/.gitignore index e69de29..fba6a10 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ExtUtils-Config-[0-9.]*.tar.gz diff --git a/ExtUtils-Config-0.007-old-Test::More.patch b/ExtUtils-Config-0.007-old-Test::More.patch new file mode 100644 index 0000000..38552e1 --- /dev/null +++ b/ExtUtils-Config-0.007-old-Test::More.patch @@ -0,0 +1,16 @@ +--- t/basics.t ++++ t/basics.t +@@ -2,7 +2,7 @@ + + use strict; + use warnings FATAL => 'all'; +-use Test::More 0.88; ++use Test::More tests=> 11; + + use Config; + +@@ -44,4 +44,3 @@ + + is_deeply($config2->values_set, { more => 'more3' }, "\$config2 has 'more' set to 'more3'"); + +-done_testing; diff --git a/perl-ExtUtils-Config.spec b/perl-ExtUtils-Config.spec new file mode 100644 index 0000000..bee59af --- /dev/null +++ b/perl-ExtUtils-Config.spec @@ -0,0 +1,69 @@ +# 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: 2%{?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) +BuildRequires: perl(Test::Kwalitee) +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 +* Mon Apr 1 2013 Paul Howarth - 0.007-2 +- Sanitize for Fedora submission + +* Sun Mar 31 2013 Paul Howarth - 0.007-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..79e5a3e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2829c0dfa8a7e51b3f582efbee4bb128 ExtUtils-Config-0.007.tar.gz