efc3342
# We don't really need Text::ParseWords ≥ 3.24
efc3342
%global old_tpw %(perl -MText::ParseWords -e 'print (($Text::ParseWords::VERSION) < 3.24 ? 1 : 0);' 2>/dev/null || echo 0)
efc3342
efc3342
# Test suite needs patching if we have Test::More < 0.88
efc3342
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION) < 0.88 ? 1 : 0);' 2>/dev/null || echo 0)
efc3342
efc3342
Name:		perl-ExtUtils-Helpers
b96c0e3
Version:	0.020
ea02e0a
Release:	1%{?dist}
efc3342
Summary:	Various portability utilities for module builders
efc3342
Group:		Development/Libraries
efc3342
License:	GPL+ or Artistic
efc3342
URL:		https://metacpan.org/release/ExtUtils-Helpers
efc3342
Source0:	http://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-%{version}.tar.gz
ea02e0a
Patch2:		ExtUtils-Helpers-0.016-old-Text::ParseWords.patch
b96c0e3
Patch3:		ExtUtils-Helpers-0.020-old-Test::More.patch
efc3342
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
efc3342
BuildArch:	noarch
efc3342
# Build
efc3342
BuildRequires:	perl(ExtUtils::MakeMaker)
efc3342
# Module
ea02e0a
BuildRequires:	perl(Carp)
efc3342
BuildRequires:	perl(Config)
efc3342
BuildRequires:	perl(Exporter) >= 5.57
efc3342
BuildRequires:	perl(File::Basename)
efc3342
BuildRequires:	perl(File::Copy)
efc3342
BuildRequires:	perl(File::Spec::Functions)
ea02e0a
BuildRequires:	perl(Module::Load)
efc3342
BuildRequires:	perl(Text::ParseWords) >= 3.22
efc3342
# Test Suite
efc3342
BuildRequires:	perl(Cwd)
efc3342
BuildRequires:	perl(File::Find)
efc3342
BuildRequires:	perl(File::Temp)
efc3342
BuildRequires:	perl(Test::More)
efc3342
# Release Tests
efc3342
BuildRequires:	perl(Pod::Coverage::TrustPod)
efc3342
BuildRequires:	perl(Test::Pod)
efc3342
BuildRequires:	perl(Test::Pod::Coverage)
efc3342
# Runtime
efc3342
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
efc3342
efc3342
%description
efc3342
This module provides various portable helper functions for module building
efc3342
modules.
efc3342
efc3342
%prep
efc3342
%setup -q -n ExtUtils-Helpers-%{version}
efc3342
efc3342
# We don't really need Text::ParseWords ≥ 3.24
efc3342
%if %{old_tpw}
efc3342
%patch2
efc3342
%endif
efc3342
efc3342
# Test suite needs patching if we have Test::More < 0.88
efc3342
%if %{old_test_more}
efc3342
%patch3
efc3342
%endif
efc3342
efc3342
%build
efc3342
perl Makefile.PL INSTALLDIRS=vendor
efc3342
make %{?_smp_mflags}
efc3342
efc3342
%install
efc3342
rm -rf %{buildroot}
efc3342
make pure_install DESTDIR=%{buildroot}
efc3342
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
efc3342
%{_fixperms} %{buildroot}
efc3342
efc3342
%check
efc3342
make test AUTHOR_TESTING=1 RELEASE_TESTING=1
efc3342
efc3342
%clean
efc3342
rm -rf %{buildroot}
efc3342
efc3342
%files
efc3342
%doc Changes LICENSE README
efc3342
%{perl_vendorlib}/ExtUtils/
efc3342
%{_mandir}/man3/ExtUtils::Helpers.3pm*
efc3342
%{_mandir}/man3/ExtUtils::Helpers::Unix.3pm*
efc3342
%{_mandir}/man3/ExtUtils::Helpers::VMS.3pm*
efc3342
%{_mandir}/man3/ExtUtils::Helpers::Windows.3pm*
efc3342
efc3342
%changelog
b96c0e3
* Mon Apr 29 2013 Paul Howarth <paul@city-fan.org> - 0.020-1
b96c0e3
- Update to 0.020
b96c0e3
  - Fix man3_pagename for top level domains
b96c0e3
- Update patch for building with Test::More < 0.88
b96c0e3
55b6b3d
* Wed Apr 24 2013 Paul Howarth <paul@city-fan.org> - 0.019-1
55b6b3d
- Update to 0.019
55b6b3d
  - Fix make_executable for '#!/usr/bin/perl'
55b6b3d
789c0e9
* Tue Apr 16 2013 Paul Howarth <paul@city-fan.org> - 0.018-1
789c0e9
- Update to 0.018
789c0e9
  - Don't need Pod::Man
789c0e9
- Drop BR: perl(Pod::Man), no longer used
789c0e9
2ba2d49
* Mon Apr 15 2013 Paul Howarth <paul@city-fan.org> - 0.017-1
2ba2d49
- Update to 0.017
2ba2d49
  - Fix man3_pagename to properly split dirs
2ba2d49
- Update patch for building with Test::More < 0.88
2ba2d49
ea02e0a
* Sat Apr 13 2013 Paul Howarth <paul@city-fan.org> - 0.016-1
ea02e0a
- Update to 0.016
ea02e0a
  - Made man3_pagename more flexible with paths
ea02e0a
  - Reverted pl2bat to a more original state
ea02e0a
  - Rewrote fixin code
ea02e0a
  - Re-added detildefy
ea02e0a
  - Add some fixes to batch file generation
ea02e0a
- BR: perl(Carp) and perl(Module::Load), now required by the module
ea02e0a
- Drop BR: perl(Test::Kwalitee), no longer used
ea02e0a
- Update patch for using Test::ParseWords 3.22
ea02e0a
- Drop now-redundant POD encoding patch
ea02e0a
efc3342
* Mon Apr  1 2013 Paul Howarth <paul@city-fan.org> - 0.014-2
efc3342
- Sanitize for Fedora submission
efc3342
efc3342
* Sun Mar 31 2013 Paul Howarth <paul@city-fan.org> - 0.014-1
efc3342
- Initial RPM version