a463624
%global cpan_name ExtUtils-MakeMaker
5485ea1
%global cpan_version 6.68
02e350e
a463624
Name:           perl-%{cpan_name}
7ca116b
Version:        %(echo '%{cpan_version}' | tr _ .)
dceaa23
Release:        5%{?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}/
e7e6a87
Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{cpan_version}.tar.gz
bc5690e
# Do not set RPATH to perl shared-library modules by default. Bug #773622.
bc5690e
# This is copy from `perl' package. This is distributor extension.
5485ea1
Patch0:         %{cpan_name}-6.68-USE_MM_LD_RUN_PATH.patch
999ae19
# Link to libperl.so explicitly. Bug #960048.
999ae19
Patch1:         %{cpan_name}-6.68-Link-to-libperl-explicitly-on-Linux.patch
91a3cd7
BuildArch:      noarch
5485ea1
BuildRequires:  perl
7ca116b
# Makefile.Pl uses ExtUtils::MakeMaker from ./lib
7ca116b
BuildRequires:  perl(Carp)
5485ea1
BuildRequires:  perl(Config)
7ca116b
BuildRequires:  perl(Cwd)
7ca116b
BuildRequires:  perl(Exporter)
5485ea1
BuildRequires:  perl(File::Basename)
7ca116b
BuildRequires:  perl(File::Path)
91a3cd7
BuildRequires:  perl(File::Spec) >= 0.8
7ca116b
BuildRequires:  perl(lib)
5485ea1
BuildRequires:  perl(strict)
5485ea1
BuildRequires:  perl(vars)
5485ea1
BuildRequires:  perl(warnings)
91a3cd7
# Unbundled
91a3cd7
BuildRequires:  perl(File::Copy::Recursive)
91a3cd7
# Tests:
91a3cd7
BuildRequires:  perl(AutoSplit)
91a3cd7
BuildRequires:  perl(CPAN::Meta)
91a3cd7
BuildRequires:  perl(Data::Dumper)
91a3cd7
BuildRequires:  perl(ExtUtils::Command)
91a3cd7
BuildRequires:  perl(ExtUtils::Install)
91a3cd7
BuildRequires:  perl(ExtUtils::Installed)
91a3cd7
BuildRequires:  perl(ExtUtils::Manifest)
7ca116b
BuildRequires:  perl(File::Find)
7ca116b
BuildRequires:  perl(File::Temp)
91a3cd7
BuildRequires:  perl(Getopt::Long)
91a3cd7
BuildRequires:  perl(IO::File)
3fc144d
BuildRequires:  perl(less)
91a3cd7
BuildRequires:  perl(Parse::CPAN::Meta)
91a3cd7
BuildRequires:  perl(Pod::Man)
91a3cd7
BuildRequires:  perl(Test::Harness)
91a3cd7
BuildRequires:  perl(Test::More)
91a3cd7
# Optional tests
91a3cd7
BuildRequires:  perl(ExtUtils::CBuilder)
57ddcd4
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
91a3cd7
Requires:       perl(ExtUtils::Command)
91a3cd7
Requires:       perl(ExtUtils::Install)
91a3cd7
Requires:       perl(ExtUtils::Manifest)
91a3cd7
Requires:       perl(File::Find)
91a3cd7
Requires:       perl(File::Spec) >= 0.8
91a3cd7
Requires:       perl(Getopt::Long)
91a3cd7
Requires:       perl(Test::Harness)
57ddcd4
# Optional run-time needed for generating documentation from POD:
57ddcd4
Requires:       perl(Pod::Man)
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
91a3cd7
%prep
7ca116b
%setup -q -n ExtUtils-MakeMaker-%{cpan_version}
bc5690e
%patch0 -p1
999ae19
%patch1 -p1
91a3cd7
# Remove bundled modules
91a3cd7
rm -rf bundled/* ||:
91a3cd7
sed -i -e '/^bundled\// d' MANIFEST
91a3cd7
91a3cd7
%build
57ddcd4
perl Makefile.PL INSTALLDIRS=vendor
91a3cd7
make %{?_smp_mflags}
91a3cd7
91a3cd7
%install
a463624
make pure_install DESTDIR=$RPM_BUILD_ROOT
91a3cd7
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
91a3cd7
%{_fixperms} $RPM_BUILD_ROOT/*
91a3cd7
91a3cd7
%check
91a3cd7
make test
91a3cd7
91a3cd7
%files
91a3cd7
%doc Changes NOTES PATCHING README TODO
91a3cd7
%{_bindir}/*
91a3cd7
%{perl_vendorlib}/*
91a3cd7
%{_mandir}/man1/*
91a3cd7
%{_mandir}/man3/*
91a3cd7
91a3cd7
%changelog
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.