3 %bcond_without tests # do not perform "make test"
6 %define pnam MakeMaker-CPANfile
7 Summary: CPANfile support for ExtUtils::MakeMaker
8 Name: perl-ExtUtils-MakeMaker-CPANfile
11 License: GPL+ or Artistic
12 Group: Development/Libraries
13 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 8e1a42d67b57ed15e08e25872dd84cac
15 URL: http://search.cpan.org/dist/ExtUtils-MakeMaker-CPANfile/
16 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
17 BuildRequires: perl(version) >= 0.76
18 BuildRequires: perl-Module-CPANfile
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Test::More) >= 0.88
23 Requires: perl(ExtUtils::MakeMaker) >= 6.17
24 Requires: perl(version) >= 0.76
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 ExtUtils::MakeMaker::CPANfile loads cpanfile in your distribution and
30 modifies parameters for WriteMakefile in your Makefile.PL. Just use it
31 instead of ExtUtils::MakeMaker (which should be loaded internally),
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
47 find $RPM_BUILD_ROOT -type f -name .packlist | xargs rm
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc Changes LICENSE README.md
58 %dir %{perl_vendorlib}/ExtUtils/MakeMaker
59 %{perl_vendorlib}/ExtUtils/MakeMaker/CPANfile.pm
60 %{_mandir}/man3/ExtUtils::MakeMaker::CPANfile.3pm*