91a3cd7
Name:           perl-ExtUtils-MakeMaker
91a3cd7
Version:        6.62
bc5690e
Release:        2%{?dist}
91a3cd7
Summary:        Create a module Makefile
91a3cd7
License:        GPL+ or Artistic
91a3cd7
Group:          Development/Libraries
91a3cd7
URL:            http://search.cpan.org/dist/ExtUtils-MakeMaker/
91a3cd7
Source0:        http://www.cpan.org/authors/id/M/MS/MSCHWERN/ExtUtils-MakeMaker-%{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.
bc5690e
Patch0:         %{name}-6.62-USE_MM_LD_RUN_PATH.patch
91a3cd7
BuildArch:      noarch
91a3cd7
BuildRequires:  perl(ExtUtils::MakeMaker)
91a3cd7
BuildRequires:  perl(File::Spec) >= 0.8
91a3cd7
# Unbundled
91a3cd7
BuildRequires:  perl(File::Copy::Recursive)
91a3cd7
# Tests:
91a3cd7
BuildRequires:  perl(AutoSplit)
91a3cd7
BuildRequires:  perl(Carp)
91a3cd7
BuildRequires:  perl(CPAN::Meta)
91a3cd7
BuildRequires:  perl(Cwd)
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)
91a3cd7
BuildRequires:  perl(Exporter)
91a3cd7
BuildRequires:  perl(Getopt::Long)
91a3cd7
BuildRequires:  perl(IO::File)
91a3cd7
BuildRequires:  perl(lib)
91a3cd7
BuildRequires:  perl(Parse::CPAN::Meta)
91a3cd7
BuildRequires:  perl(Pod::Man)
91a3cd7
BuildRequires:  perl(File::Find)
91a3cd7
BuildRequires:  perl(File::Path)
91a3cd7
BuildRequires:  perl(File::Temp)
91a3cd7
BuildRequires:  perl(Test::Harness)
91a3cd7
BuildRequires:  perl(Test::More)
91a3cd7
# Optional tests
91a3cd7
BuildRequires:  perl(ExtUtils::CBuilder)
91a3cd7
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)
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
91a3cd7
%setup -q -n ExtUtils-MakeMaker-%{version}
bc5690e
%patch0 -p1
91a3cd7
# Remove bundled modules
91a3cd7
rm -rf bundled/* ||:
91a3cd7
sed -i -e '/^bundled\// d' MANIFEST
91a3cd7
91a3cd7
%build
91a3cd7
%{__perl} Makefile.PL INSTALLDIRS=vendor
91a3cd7
make %{?_smp_mflags}
91a3cd7
91a3cd7
%install
91a3cd7
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
91a3cd7
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
91a3cd7
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
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
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.