From fbd52d753f8e0b82499762a54a1f7ae5d1d6d875 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 6 Feb 2020 05:45:37 +0000 Subject: [PATCH] Spec file cleanups: Use make_build, make_install macros, and use NO_PACKLIST=1 https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake --- perl-Sys-Syslog.spec | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/perl-Sys-Syslog.spec b/perl-Sys-Syslog.spec index 734a120..39d1cd8 100644 --- a/perl-Sys-Syslog.spec +++ b/perl-Sys-Syslog.spec @@ -6,7 +6,7 @@ %endif Name: perl-Sys-Syslog Version: 0.36 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Perl interface to the UNIX syslog(3) calls # README: GPL+ or Artistic # ppport.h: GPL+ or Artistic @@ -26,7 +26,7 @@ BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::Constant) -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(File::Copy) BuildRequires: perl(File::Spec) BuildRequires: perl(strict) @@ -84,12 +84,11 @@ for F in Changes; do done %build -perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -delete +%{make_install} find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT/* @@ -103,6 +102,11 @@ make test %{_mandir}/man3/* %changelog +* Thu Feb 06 2020 Tom Stellard - 0.36-3 +- Spec file cleanups: Use make_build, make_install macros, and use NO_PACKLIST=1 +- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make +- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake + * Thu Jan 30 2020 Fedora Release Engineering - 0.36-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild