1 |
%define upstream_name ExtUtils-MakeMaker |
2 |
%define upstream_version 6.59 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 4 |
7 |
|
8 |
Summary: Writes Makefiles for extensions |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
Patch0: ExtUtils-MakeMaker-6.59-prevent-bundled-copies.patch |
14 |
|
15 |
BuildRequires: perl(CPAN::Meta) |
16 |
BuildRequires: perl(CPAN::Meta::YAML) |
17 |
BuildRequires: perl(Data::Dumper) |
18 |
BuildRequires: perl(DirHandle) |
19 |
BuildRequires: perl(ExtUtils::Command) |
20 |
BuildRequires: perl(ExtUtils::Install) |
21 |
BuildRequires: perl(ExtUtils::Manifest) |
22 |
BuildRequires: perl(File::Basename) |
23 |
BuildRequires: perl(File::Copy::Recursive) |
24 |
BuildRequires: perl(File::Spec) >= 0.800.0 |
25 |
BuildRequires: perl(File::Temp) |
26 |
BuildRequires: perl(JSON::PP) |
27 |
BuildRequires: perl(JSON::PP::Compat5006) |
28 |
BuildRequires: perl(List::Util) |
29 |
BuildRequires: perl(Parse::CPAN::Meta) |
30 |
BuildRequires: perl(Pod::Man) |
31 |
BuildRequires: perl(Scalar::Util) |
32 |
BuildRequires: perl(version) |
33 |
BuildRequires: perl(Version::Requirements) |
34 |
BuildRequires: perl-devel |
35 |
BuildArch: noarch |
36 |
|
37 |
%description |
38 |
Include all the modules bundled with MakeMaker in @INC so |
39 |
ExtUtils::MakeMaker will load. |
40 |
|
41 |
This is for bootstrapping the process of deciding how much of the bundles |
42 |
we need. |
43 |
|
44 |
copy_bundles() copies the contents of each bundle, if necessary, into inc/ |
45 |
as a flattened module directory that MakeMaker can install. |
46 |
|
47 |
%prep |
48 |
%setup -q -n %{upstream_name}-%{upstream_version} |
49 |
%patch0 -b .nobundled |
50 |
|
51 |
%build |
52 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
53 |
%make |
54 |
|
55 |
%check |
56 |
%make test |
57 |
|
58 |
%install |
59 |
rm -rf %buildroot |
60 |
%makeinstall_std |
61 |
mv %{buildroot}/%{_bindir}/instmodsh %{buildroot}/%{_bindir}/instmodsh.%{upstream_version} |
62 |
mv %{buildroot}/%{_mandir}/man1/instmodsh.1 %{buildroot}/%{_mandir}/man1/instmodsh.%{upstream_version}.1 |
63 |
|
64 |
%files |
65 |
%doc Changes INSTALL META.json META.yml NOTES PATCHING README TODO |
66 |
%{_mandir}/man3/* |
67 |
%perl_vendorlib/* |
68 |
%{_bindir}/* |
69 |
%{_mandir}/man1/* |