commit afc5afaa708e58d0c37e0bae7695010fc2f82da9 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Thu Dec 11 11:02:44 2014 +0100 Use ExtUtils::MakeMaker for building Makefile.PL | 6 ++++++ perl-experimental.spec | 20 ++++++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) --- diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..d24dc1a --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,6 @@ +use ExtUtils::MakeMaker; +WriteMakefile ( + 'NAME' => 'experimental', + 'VERSION_FROM' => 'lib/experimental.pm', +); + diff --git a/perl-experimental.spec b/perl-experimental.spec index 275e820..13f0a35 100644 --- a/perl-experimental.spec +++ b/perl-experimental.spec @@ -1,14 +1,17 @@ Name: perl-experimental Version: 0.013 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Experimental features made easy License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/experimental/ Source0: http://www.cpan.org/authors/id/L/LE/LEONT/experimental-%{version}.tar.gz +# Replace Build.PL to not require Module::Build::Tiny because experimental is +# a core dual-lived module and Module::Build::Tiny is not. +Source1: Makefile.PL BuildArch: noarch BuildRequires: perl -BuildRequires: perl(Module::Build::Tiny) >= 0.039 +BuildRequires: perl(ExtUtils::MakeMaker) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(feature) @@ -28,17 +31,19 @@ experimental features. %prep %setup -q -n experimental-%{version} +cp %{SOURCE1} . %build -perl Build.PL --installdirs=vendor -./Build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %install -./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check -./Build test +make test %files %doc Changes LICENSE README @@ -46,6 +51,9 @@ perl Build.PL --installdirs=vendor %{_mandir}/man3/* %changelog +* Thu Dec 11 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 0.013-2 +- Use ExtUtils::MakeMaker for building + * Mon Oct 27 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 0.013-1 - 0.013 bump -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel