Use ExtUtils::MakeMaker for building
This commit is contained in:
parent
cdd903bc52
commit
afc5afaa70
6
Makefile.PL
Normal file
6
Makefile.PL
Normal file
@ -0,0 +1,6 @@
|
||||
use ExtUtils::MakeMaker;
|
||||
WriteMakefile (
|
||||
'NAME' => 'experimental',
|
||||
'VERSION_FROM' => 'lib/experimental.pm',
|
||||
);
|
||||
|
||||
@ -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@redhat.com> - 0.013-2
|
||||
- Use ExtUtils::MakeMaker for building
|
||||
|
||||
* Mon Oct 27 2014 Petr Pisar <ppisar@redhat.com> - 0.013-1
|
||||
- 0.013 bump
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user