commit 2d7a8faeb9f767d3c9751d5add750524cc45ea06 Author: Elan Ruusamäe <g...@delfi.ee> Date: Mon Sep 28 10:48:06 2015 +0300
new, version 0.06 based on fedora package 08ff7c5 perl-ExtUtils-MakeMaker-CPANfile.spec | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) --- diff --git a/perl-ExtUtils-MakeMaker-CPANfile.spec b/perl-ExtUtils-MakeMaker-CPANfile.spec new file mode 100644 index 0000000..77812cb --- /dev/null +++ b/perl-ExtUtils-MakeMaker-CPANfile.spec @@ -0,0 +1,60 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" + +%define pdir ExtUtils +%define pnam MakeMaker-CPANfile +%include /usr/lib/rpm/macros.perl +Summary: CPANfile support for ExtUtils::MakeMaker +Name: perl-ExtUtils-MakeMaker-CPANfile +Version: 0.06 +Release: 1 +License: GPL+ or Artistic +Group: Development/Libraries +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 8e1a42d67b57ed15e08e25872dd84cac +URL: http://search.cpan.org/dist/ExtUtils-MakeMaker-CPANfile/ +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 +BuildRequires: perl(version) >= 0.76 +BuildRequires: perl-Module-CPANfile +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(Test::More) >= 0.88 +%endif +Requires: perl(ExtUtils::MakeMaker) >= 6.17 +Requires: perl(version) >= 0.76 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +ExtUtils::MakeMaker::CPANfile loads cpanfile in your distribution and +modifies parameters for WriteMakefile in your Makefile.PL. Just use it +instead of ExtUtils::MakeMaker (which should be loaded internally), +and prepare cpanfile. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist | xargs rm + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes LICENSE README.md +%{perl_vendorlib}/* +%{_mandir}/man3/* ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/perl-ExtUtils-MakeMaker-CPANfile.git/commitdiff/2d7a8faeb9f767d3c9751d5add750524cc45ea06 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit