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