Modernize spec file
This commit is contained in:
parent
e2b5b90a65
commit
30f8dff96b
@ -1,3 +1,5 @@
|
|||||||
|
# Perform optional tests
|
||||||
|
%{bcond_without perl_Module_Install_ReadmeFromPod_enablas_optional_test}
|
||||||
# Support output to PDF
|
# Support output to PDF
|
||||||
%{bcond_without perl_Module_Install_ReadmeFromPod_enables_pdf}
|
%{bcond_without perl_Module_Install_ReadmeFromPod_enables_pdf}
|
||||||
|
|
||||||
@ -14,10 +16,9 @@ Patch0: Module-Install-ReadmeFromPod-0.26-Regenerate-README-in-UTF-8.pat
|
|||||||
Patch1: Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch
|
Patch1: Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: findutils
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-interpreter
|
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: perl(Config)
|
BuildRequires: perl(Config)
|
||||||
BuildRequires: perl(inc::Module::Install)
|
BuildRequires: perl(inc::Module::Install)
|
||||||
BuildRequires: perl(lib)
|
BuildRequires: perl(lib)
|
||||||
@ -49,9 +50,11 @@ BuildRequires: perl(File::Path)
|
|||||||
BuildRequires: perl(File::Temp)
|
BuildRequires: perl(File::Temp)
|
||||||
BuildRequires: perl(Test::InDistDir)
|
BuildRequires: perl(Test::InDistDir)
|
||||||
BuildRequires: perl(Test::More) >= 0.47
|
BuildRequires: perl(Test::More) >= 0.47
|
||||||
|
%if %{with perl_Module_Install_ReadmeFromPod_enablas_optional_test}
|
||||||
# Optional tests:
|
# Optional tests:
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
||||||
|
%endif
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
%if %{with perl_Module_Install_ReadmeFromPod_enables_pdf}
|
%if %{with perl_Module_Install_ReadmeFromPod_enables_pdf}
|
||||||
Suggests: perl(App::pod2pdf)
|
Suggests: perl(App::pod2pdf)
|
||||||
@ -85,12 +88,11 @@ sed -i -e '/^inc\// d' MANIFEST
|
|||||||
chmod -x tools/git-log.pl
|
chmod -x tools/git-log.pl
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
make %{?_smp_mflags}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
%{make_install}
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user