b9c7f3
%global cpan_name ExtUtils-MakeMaker
b9c7f3
b9c7f3
Name:           perl-%{cpan_name}
b9c7f3
Version:        7.24
b9c7f3
Release:        4%{?dist}
b9c7f3
Summary:        Create a module Makefile
b9c7f3
License:        GPL+ or Artistic
b9c7f3
Group:          Development/Libraries
b9c7f3
URL:            http://search.cpan.org/dist/%{cpan_name}/
b9c7f3
Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
b9c7f3
# Do not set RPATH to perl shared-library modules by default. Bug #773622.
b9c7f3
# This is copy from `perl' package. This is a distributor extension.
b9c7f3
Patch0:         %{cpan_name}-7.16-USE_MM_LD_RUN_PATH.patch
b9c7f3
# Link to libperl.so explicitly. Bug #960048.
b9c7f3
Patch1:         %{cpan_name}-7.12-Link-to-libperl-explicitly-on-Linux.patch
b9c7f3
# Unbundle version modules
b9c7f3
Patch2:         %{cpan_name}-7.04-Unbundle-version.patch
b9c7f3
# Unbundle Encode::Locale module
b9c7f3
Patch3:         %{cpan_name}-7.22-Unbundle-Encode-Locale.patch
b9c7f3
# Provide maybe_command independently, bug #1129443
b9c7f3
Patch4:         %{cpan_name}-7.11-Provide-ExtUtils-MM-methods-as-standalone-ExtUtils-M.patch
b9c7f3
# Fix t/eu_command.t test, in upstream 2.25_02
b9c7f3
Patch5:         %{cpan_name}-7.25_01-Correct-the-order-of-tests-of-chmod-.-294.patch
b9c7f3
BuildArch:      noarch
b9c7f3
BuildRequires:  coreutils
b9c7f3
BuildRequires:  findutils
b9c7f3
BuildRequires:  make
b9c7f3
BuildRequires:  perl
b9c7f3
BuildRequires:  perl-generators
b9c7f3
# Makefile.Pl uses ExtUtils::MakeMaker from ./lib
b9c7f3
# B needed only for CPAN::Meta::Requirements
b9c7f3
BuildRequires:  perl(Carp)
b9c7f3
BuildRequires:  perl(Config)
b9c7f3
# CPAN::Meta::Requirements has a fallback
b9c7f3
BuildRequires:  perl(Cwd)
b9c7f3
BuildRequires:  perl(Encode)
b9c7f3
BuildRequires:  perl(Exporter)
b9c7f3
BuildRequires:  perl(File::Basename)
b9c7f3
BuildRequires:  perl(File::Copy)
b9c7f3
BuildRequires:  perl(File::Path)
b9c7f3
BuildRequires:  perl(File::Spec) >= 0.8
b9c7f3
BuildRequires:  perl(lib)
b9c7f3
BuildRequires:  perl(strict)
b9c7f3
BuildRequires:  perl(vars)
b9c7f3
BuildRequires:  perl(version)
b9c7f3
BuildRequires:  perl(warnings)
b9c7f3
# If an XS module is compiled, xsubpp(1) is needed
b9c7f3
BuildRequires:  perl-ExtUtils-ParseXS
b9c7f3
BuildRequires:  sed
b9c7f3
# Tests:
b9c7f3
BuildRequires:  perl(AutoSplit)
b9c7f3
BuildRequires:  perl(base)
b9c7f3
BuildRequires:  perl(CPAN::Meta) >= 2.143240
b9c7f3
BuildRequires:  perl(Data::Dumper)
b9c7f3
BuildRequires:  perl(DynaLoader)
b9c7f3
BuildRequires:  perl(ExtUtils::Install) >= 1.52
b9c7f3
# ExtUtils::Installed not used at tests
b9c7f3
BuildRequires:  perl(ExtUtils::Manifest) >= 1.70
b9c7f3
# ExtUtils::Packlist not used at tests
b9c7f3
# ExtUtils::XSSymSet is not needed (VMS only)
b9c7f3
BuildRequires:  perl(File::Find)
b9c7f3
BuildRequires:  perl(File::Temp) >= 0.22
b9c7f3
BuildRequires:  perl(Getopt::Long)
b9c7f3
# IO::File not used at tests
b9c7f3
# IO::Handle not used
b9c7f3
BuildRequires:  perl(less)
b9c7f3
BuildRequires:  perl(overload)
b9c7f3
BuildRequires:  perl(Parse::CPAN::Meta) >= 1.4414
b9c7f3
BuildRequires:  perl(Pod::Man)
b9c7f3
BuildRequires:  perl(POSIX)
b9c7f3
BuildRequires:  perl(subs)
b9c7f3
BuildRequires:  perl(Test::Harness)
b9c7f3
BuildRequires:  perl(Test::More)
b9c7f3
# threads::shared not used
b9c7f3
BuildRequires:  perl(utf8)
b9c7f3
# XSLoader not used
b9c7f3
# Optional tests
b9c7f3
BuildRequires:  perl-devel
b9c7f3
BuildRequires:  perl(B)
b9c7f3
BuildRequires:  perl(ExtUtils::CBuilder)
b9c7f3
BuildRequires:  perl(PerlIO)
b9c7f3
# Keep YAML optional
b9c7f3
# Keep YAML::Tiny optional
b9c7f3
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b9c7f3
Requires:       perl(B)
b9c7f3
Recommends:     perl(CPAN::Meta) >= 2.143240
b9c7f3
Suggests:       perl(CPAN::Meta::Converter) >= 2.141170
b9c7f3
# CPAN::Meta::Requirements to support version ranges
b9c7f3
Recommends:     perl(CPAN::Meta::Requirements) >= 2.130
b9c7f3
Requires:       perl(Data::Dumper)
b9c7f3
Requires:       perl(DynaLoader)
b9c7f3
# Encode is needed for producing POD with =encoding statement correctly
b9c7f3
Requires:       perl(Encode)
b9c7f3
Recommends:     perl(Encode::Locale)
b9c7f3
Requires:       perl(ExtUtils::Command) >= 1.19
b9c7f3
Requires:       perl(ExtUtils::Install) >= 1.54
b9c7f3
Requires:       perl(ExtUtils::Manifest) >= 1.70
b9c7f3
# ExtUtils::XSSymSet is not needed (VMS only)
b9c7f3
Requires:       perl(File::Find)
b9c7f3
Requires:       perl(File::Spec) >= 0.8
b9c7f3
Requires:       perl(Getopt::Long)
b9c7f3
Suggests:       perl(JSON::PP)
b9c7f3
# Optional Pod::Man is needed for generating manual pages from POD
b9c7f3
Requires:       perl(Pod::Man)
b9c7f3
Requires:       perl(POSIX)
b9c7f3
Requires:       perl(Test::Harness)
b9c7f3
Recommends:     perl(Time::HiRes)
b9c7f3
# Text::ParseWords is not needed (Win32 only)
b9c7f3
# VMS::Filespec is not needed (VMS only)
b9c7f3
# Win32 is not needed (Win32 only)
b9c7f3
# If an XS module is compiled, xsubpp(1) is needed
b9c7f3
Requires:       perl-ExtUtils-ParseXS
b9c7f3
# If an XS module is built, code generated from XS will be compiled and it
b9c7f3
# includes Perl header files.
b9c7f3
# TODO: This dependency will be weaken in order to relieve building noarch
b9c7f3
# packages from perl-devel and gcc.
b9c7f3
Requires:       perl-devel
b9c7f3
b9c7f3
# Do not export underspecified dependencies
b9c7f3
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)\s*$
b9c7f3
# Do not export private redefinitions
b9c7f3
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DynaLoader|ExtUtils::MakeMaker::_version\\)
b9c7f3
b9c7f3
%description
b9c7f3
This utility is designed to write a Makefile for an extension module from a
b9c7f3
Makefile.PL. It is based on the Makefile.SH model provided by Andy
b9c7f3
Dougherty and the perl5-porters.
b9c7f3
b9c7f3
%package -n perl-ExtUtils-Command
b9c7f3
Summary:        Perl routines to replace common UNIX commands in Makefiles
b9c7f3
License:        GPL+ or Artistic
b9c7f3
Group:          Development/Libraries
b9c7f3
BuildArch:      noarch
b9c7f3
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b9c7f3
Requires:       perl(Carp)
b9c7f3
Requires:       perl(File::Copy)
b9c7f3
Requires:       perl(File::Find)
b9c7f3
Requires:       perl(File::Path)
b9c7f3
# File::Spec not used
b9c7f3
# VMS::Feature not used
b9c7f3
b9c7f3
%description -n perl-ExtUtils-Command
b9c7f3
This Perl module is used to replace common UNIX commands. In all cases the
b9c7f3
functions work with @ARGV rather than taking arguments. This makes them
b9c7f3
easier to deal with in Makefiles.
b9c7f3
b9c7f3
%package -n perl-ExtUtils-MM-Utils
b9c7f3
Summary:        ExtUtils::MM methods without dependency on ExtUtils::MakeMaker
b9c7f3
License:        GPL+ or Artistic
b9c7f3
Group:          Development/Libraries
b9c7f3
BuildArch:      noarch
b9c7f3
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b9c7f3
b9c7f3
%description -n perl-ExtUtils-MM-Utils
b9c7f3
This is a collection of ExtUtils::MM subroutines that are used by many
b9c7f3
other modules but that do not need full-featured ExtUtils::MakeMaker. The
b9c7f3
issue with ExtUtils::MakeMaker is it pulls in Perl header files and that
b9c7f3
is an overkill for small subroutines.
b9c7f3
b9c7f3
%prep
b9c7f3
%setup -q -n ExtUtils-MakeMaker-%{version}
b9c7f3
%patch0 -p1
b9c7f3
%patch1 -p1
b9c7f3
%patch2 -p1
b9c7f3
%patch3 -p1
b9c7f3
%patch4 -p1
b9c7f3
%patch5 -p1
b9c7f3
# Remove bundled modules
b9c7f3
rm -rf bundled
b9c7f3
sed -i -e '/^bundled\// d' MANIFEST
b9c7f3
rm -rf t/lib/Test
b9c7f3
sed -i -e '/^t\/lib\/Test\// d' MANIFEST
b9c7f3
rm -rf lib/ExtUtils/MakeMaker/version{,.pm}
b9c7f3
sed -i -e '/^lib\/ExtUtils\/MakeMaker\/version[\/\.]/ d' MANIFEST
b9c7f3
rm -rf lib/ExtUtils/MakeMaker/Locale.pm
b9c7f3
sed -i -e '/^lib\/ExtUtils\/MakeMaker\/Locale\.pm/ d' MANIFEST
b9c7f3
b9c7f3
%build
b9c7f3
BUILDING_AS_PACKAGE=1 perl Makefile.PL INSTALLDIRS=vendor
b9c7f3
make %{?_smp_mflags}
b9c7f3
b9c7f3
%install
b9c7f3
make pure_install DESTDIR=$RPM_BUILD_ROOT
b9c7f3
find $RPM_BUILD_ROOT -type f -name .packlist -delete
b9c7f3
%{_fixperms} $RPM_BUILD_ROOT/*
b9c7f3
b9c7f3
%check
b9c7f3
make test
b9c7f3
b9c7f3
%files
b9c7f3
%doc Changes CONTRIBUTING README
b9c7f3
%{_bindir}/*
b9c7f3
%{perl_vendorlib}/*
b9c7f3
%exclude %{perl_vendorlib}/ExtUtils/Command.pm
b9c7f3
%exclude %dir %{perl_vendorlib}/ExtUtils/MM
b9c7f3
%exclude %{perl_vendorlib}/ExtUtils/MM/Utils.pm
b9c7f3
%{_mandir}/man1/*
b9c7f3
%{_mandir}/man3/*
b9c7f3
%exclude %{_mandir}/man3/ExtUtils::Command.*
b9c7f3
%exclude %{_mandir}/man3/ExtUtils::MM::Utils.*
b9c7f3
b9c7f3
%files -n perl-ExtUtils-Command
b9c7f3
%dir %{perl_vendorlib}/ExtUtils
b9c7f3
%{perl_vendorlib}/ExtUtils/Command.pm
b9c7f3
%{_mandir}/man3/ExtUtils::Command.*
b9c7f3
b9c7f3
%files -n perl-ExtUtils-MM-Utils
b9c7f3
%dir %{perl_vendorlib}/ExtUtils
b9c7f3
%dir %{perl_vendorlib}/ExtUtils/MM
b9c7f3
%{perl_vendorlib}/ExtUtils/MM/Utils.pm
b9c7f3
%{_mandir}/man3/ExtUtils::MM::Utils.*
b9c7f3
b9c7f3
%changelog
b9c7f3
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 7.24-4
b9c7f3
- Rebuild with enable hardening (bug #1636329)
b9c7f3
b9c7f3
* Wed Jul 12 2017 Petr Pisar <ppisar@redhat.com> - 7.24-3
b9c7f3
- Fix t/eu_command.t test
b9c7f3
b9c7f3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.24-2
b9c7f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b9c7f3
b9c7f3
* Thu Aug 25 2016 Jitka Plesnikova <jplesnik@redhat.com> - 7.24-1
b9c7f3
- 7.24 bump
b9c7f3
b9c7f3
* Tue Aug 09 2016 Jitka Plesnikova <jplesnik@redhat.com> - 7.22-1
b9c7f3
- 7.22 bump
b9c7f3
b9c7f3
* Tue May 24 2016 Petr Pisar <ppisar@redhat.com> - 7.18-1
b9c7f3
- 7.18 bump
b9c7f3
b9c7f3
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 7.16-2
b9c7f3
- Perl 5.24 rebuild
b9c7f3
b9c7f3
* Mon May 09 2016 Petr Pisar <ppisar@redhat.com> - 7.16-1
b9c7f3
- 7.16 bump
b9c7f3
b9c7f3
* Mon Apr 25 2016 Petr Pisar <ppisar@redhat.com> - 7.14-1
b9c7f3
- 7.14 bump
b9c7f3
b9c7f3
* Wed Apr 20 2016 Petr Pisar <ppisar@redhat.com> - 7.12-1
b9c7f3
- 7.12 bump
b9c7f3
b9c7f3
* Tue Apr 19 2016 Petr Pisar <ppisar@redhat.com> - 7.10-5
b9c7f3
- Own ExtUtils/MM directory by perl-ExtUtils-MM-Utils only
b9c7f3
- Require perl-devel by perl-ExtUtils-MakeMaker
b9c7f3
b9c7f3
* Mon Apr 18 2016 Petr Pisar <ppisar@redhat.com> - 7.10-4
b9c7f3
- Provide maybe_command independently (bug #1129443)
b9c7f3
b9c7f3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7.10-3
b9c7f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b9c7f3
b9c7f3
* Thu Dec 03 2015 Petr Pisar <ppisar@redhat.com> - 7.10-2
b9c7f3
- Declare optional dependencies on Recommends level
b9c7f3
b9c7f3
* Fri Sep 11 2015 Petr Pisar <ppisar@redhat.com> - 7.10-1
b9c7f3
- 7.10 bump
b9c7f3
b9c7f3
* Wed Sep 09 2015 Petr Pisar <ppisar@redhat.com> - 7.08-1
b9c7f3
- 7.08 bump
b9c7f3
b9c7f3
* Tue Sep 01 2015 Jitka Plesnikova <jplesnik@redhat.com> - 7.06-2
b9c7f3
- Remove new line from INC (CPAN RT#106808)
b9c7f3
b9c7f3
* Tue Sep 01 2015 Petr Pisar <ppisar@redhat.com> - 7.06-1
b9c7f3
- 7.06 bump
b9c7f3
- ExtUtils::Command module is distributed by ExtUtils-MakeMaker
b9c7f3
b9c7f3
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.04-346
b9c7f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b9c7f3
b9c7f3
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 7.04-345
b9c7f3
- Increase release to favour standalone package
b9c7f3
b9c7f3
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 7.04-2
b9c7f3
- Perl 5.22 rebuild
b9c7f3
b9c7f3
* Fri Dec 05 2014 Petr Pisar <ppisar@redhat.com> - 7.04-1
b9c7f3
- 7.04 bump
b9c7f3
b9c7f3
* Tue Nov 11 2014 Petr Pisar <ppisar@redhat.com> - 7.02-1
b9c7f3
- 7.02 bump
b9c7f3
- Cope with missing Encode::Locale
b9c7f3
b9c7f3
* Wed Nov 05 2014 Petr Pisar <ppisar@redhat.com> - 7.00-2
b9c7f3
- Fix building with older xsubpp
b9c7f3
b9c7f3
* Mon Oct 27 2014 Petr Pisar <ppisar@redhat.com> - 7.00-1
b9c7f3
- 7.00 bump
b9c7f3
b9c7f3
* Fri Oct 24 2014 Petr Pisar <ppisar@redhat.com> - 6.98-311
b9c7f3
- Require perl-ExtUtils-ParseXS because of xsubpp
b9c7f3
b9c7f3
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.98-310
b9c7f3
- Increase release to favour standalone package
b9c7f3
b9c7f3
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.98-3
b9c7f3
- Perl 5.20 rebuild
b9c7f3
b9c7f3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.98-2
b9c7f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b9c7f3
b9c7f3
* Fri May 02 2014 Petr Pisar <ppisar@redhat.com> - 6.98-1
b9c7f3
- 6.98 bump
b9c7f3
b9c7f3
* Mon Apr 14 2014 Petr Pisar <ppisar@redhat.com> - 6.96-1
b9c7f3
- 6.96 bump
b9c7f3
b9c7f3
* Wed Mar 26 2014 Petr Pisar <ppisar@redhat.com> - 6.94-1
b9c7f3
- 6.94 bump
b9c7f3
b9c7f3
* Fri Mar 14 2014 Petr Pisar <ppisar@redhat.com> - 6.92-1
b9c7f3
- 6.92 bump
b9c7f3
b9c7f3
* Fri Feb 21 2014 Petr Pisar <ppisar@redhat.com> - 6.90-1
b9c7f3
- 6.90 bump
b9c7f3
b9c7f3
* Mon Feb 03 2014 Petr Pisar <ppisar@redhat.com> - 6.88-1
b9c7f3
- 6.88 bump
b9c7f3
b9c7f3
* Mon Jan 06 2014 Petr Pisar <ppisar@redhat.com> - 6.86-1
b9c7f3
- 6.86 bump
b9c7f3
b9c7f3
* Mon Dec 02 2013 Petr Pisar <ppisar@redhat.com> - 6.84-1
b9c7f3
- 6.84 bump
b9c7f3
b9c7f3
* Tue Nov 05 2013 Petr Pisar <ppisar@redhat.com> - 6.82-1
b9c7f3
- 6.82 bump
b9c7f3
b9c7f3
* Wed Oct 16 2013 Petr Pisar <ppisar@redhat.com> - 6.80-1
b9c7f3
- 6.80 bump
b9c7f3
b9c7f3
* Tue Sep 24 2013 Petr Pisar <ppisar@redhat.com> - 6.78-1
b9c7f3
- 6.78 bump
b9c7f3
b9c7f3
* Mon Sep 16 2013 Petr Pisar <ppisar@redhat.com> - 6.76-2
b9c7f3
- Specify all dependencies (bug #1007755)
b9c7f3
b9c7f3
* Tue Sep 10 2013 Petr Pisar <ppisar@redhat.com> - 6.76-1
b9c7f3
- 6.76 bump
b9c7f3
b9c7f3
* Mon Sep 02 2013 Petr Pisar <ppisar@redhat.com> - 6.74-1
b9c7f3
- 6.74 bump
b9c7f3
b9c7f3
* Mon Aug 05 2013 Petr Pisar <ppisar@redhat.com> - 6.72-1
b9c7f3
- 6.72 bump
b9c7f3
b9c7f3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.68-5
b9c7f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b9c7f3
b9c7f3
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 6.68-4
b9c7f3
- Perl 5.18 rebuild
b9c7f3
b9c7f3
* Tue Jul 02 2013 Petr Pisar <ppisar@redhat.com> - 6.68-3
b9c7f3
- Link to libperl.so explicitly (bug #960048)
b9c7f3
b9c7f3
* Thu Jun 27 2013 Jitka Plesnikova <jplesnik@redhat.com> - 6.68-2
b9c7f3
- Update BRs
b9c7f3
b9c7f3
* Mon Jun 17 2013 Petr Pisar <ppisar@redhat.com> - 6.68-1
b9c7f3
- 6.68 bump
b9c7f3
b9c7f3
* Mon Apr 22 2013 Petr Pisar <ppisar@redhat.com> - 6.66-1
b9c7f3
- 6.66 bump
b9c7f3
b9c7f3
* Tue Jan 29 2013 Petr Pisar <ppisar@redhat.com> - 6.64-2
b9c7f3
- Run-require POD convertors to get manual pages when building other packages
b9c7f3
b9c7f3
* Mon Dec 17 2012 Petr Pisar <ppisar@redhat.com> - 6.64-1
b9c7f3
- 6.64 bump
b9c7f3
b9c7f3
* Tue Aug 28 2012 Petr Pisar <ppisar@redhat.com> - 6.63.02-241
b9c7f3
- Compute RPM version
b9c7f3
- Do not build-require itself, the build script runs from ./lib
b9c7f3
b9c7f3
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 6.63.02-240
b9c7f3
- update version to the same as in perl.srpm
b9c7f3
- Bump release to override sub-package from perl.spec
b9c7f3
b9c7f3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.62-4
b9c7f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b9c7f3
b9c7f3
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 6.62-3
b9c7f3
- Perl 5.16 rebuild
b9c7f3
b9c7f3
* Thu Jan 12 2012 Petr Pisar <ppisar@redhat.com> - 6.62-2
b9c7f3
- Do not set RPATH to perl shared-library modules by default (bug #773622)
b9c7f3
b9c7f3
* Fri Nov 25 2011 Petr Pisar <ppisar@redhat.com> 6.62-1
b9c7f3
- Specfile autogenerated by cpanspec 1.78.
b9c7f3
- Remove defattr and BuildRoot from spec.