# We need to patch the test suite if we have an old version of Test::More #%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) # Run extra test #%if ! (0%{?rhel}) #%bcond_without perl_Package_Generator_enables_extra_test #%else #%bcond_with perl_Package_Generator_enables_extra_test #%endif Name: perl-Package-Generator Version: 1.106 Release: 1%{?dist} Summary: Generate new packages quickly and easily License: GPL+ or Artistic Group: Development/Libraries Vendor: bww bitwise works GmbH URL: http://search.cpan.org/dist/Package-Generator/ Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Package-Generator-%{version}.tar.gz #Patch1: Package-Generator-1.106-old-Test::More.patch BuildArch: noarch # Module Build BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 # Module BuildRequires: perl(Carp) BuildRequires: perl(Scalar::Util) # Test Suite #BuildRequires: perl(Params::Util) >= 0.11 #BuildRequires: perl(Test::More) >= 0.47 #%if %{with perl_Package_Generator_enables_extra_test} # Extra Tests #BuildRequires: perl(Test::Pod) #%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This module lets you quickly and easily construct new packages. It gives them unused names and sets up their package data, if provided. %prep %setup -q -n Package-Generator-%{version} # We need to patch the test suite if we have an old version of Test::More #%if %{old_test_more} #%patch1 #%endif %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} make manifypods %install rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; %{_fixperms} %{buildroot} %check #make test #%if %{with perl_Package_Generator_enables_extra_test} #make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" #%endif %files %doc Changes LICENSE README %{perl_vendorlib}/Package/ #%{_mandir}/man3/Package::Generator.3pm* #%{_mandir}/man3/Package::Reaper.3pm* %{_mandir}/man3/*.3pm* %changelog * Wed May 16 2018 Elbert Pol - 1.106-1 - initial rpm for OS2