# Run optional test #%if ! (0%{?rhel}) #%bcond_without perl_Sub_Install_enables_optional_test #%else #%bcond_with perl_Sub_Install_enables_optional_test #%endif Name: perl-Sub-Install Version: 0.928 Release: 1%{?dist} Summary: Install subroutines into packages easily License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Sub-Install/ Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-%{version}.tar.gz BuildArch: noarch # ================= Module Build ============================ #BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 BuildRequires: perl(strict) BuildRequires: perl(warnings) # ================= Run-time ================================ BuildRequires: perl(B) BuildRequires: perl(Carp) BuildRequires: perl(Scalar::Util) # ================= Test Suite ============================== #BuildRequires: perl(Test::More) >= 0.88 #%if %{with perl_Sub_Install_enables_optional_test} && !%{defined perl_bootstrap} # ================= Optional Tests ========================== # Test::Output -> Sub::Exporter -> Sub::Install #BuildRequires: perl(Test::Output) #%endif # ================= Run-time ================================ Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(B) %description This module makes it easy to install subroutines into packages without the unsightly mess of no strict or typeglobs lying about where just anyone can see them. %prep %setup -q -n Sub-Install-%{version} %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 %files %doc Changes LICENSE README %{perl_vendorlib}/Sub/ %{_mandir}/man3/*.3pm* %changelog * Wed May 16 2018 Elbert Pol - 0.928-1 - initial rpm for OS2