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