From 0717886139c7d183fa96e561d8a4ef649e67c5d7 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 6 Feb 2020 05:31:22 +0000 Subject: [PATCH] Spec file cleanups: Use make_build and make_install macros, use NO_PACKLIST=1 https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMaker --- perl-Socket6.spec | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/perl-Socket6.spec b/perl-Socket6.spec index ee07714..f8a9837 100644 --- a/perl-Socket6.spec +++ b/perl-Socket6.spec @@ -1,6 +1,6 @@ Name: perl-Socket6 Version: 0.29 -Release: 5%{?dist} +Release: 6%{?dist} Summary: IPv6 related part of the C socket.h defines and structure manipulators License: BSD URL: https://metacpan.org/release/Socket6 @@ -14,7 +14,7 @@ BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Module: BuildRequires: perl(base) BuildRequires: perl(Carp) @@ -40,12 +40,11 @@ related defines such as AF_INET6 are included. %setup -q -n Socket6-%{version} %build -perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}" +%{make_build} %install -make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -delete +%{make_install} find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} %{buildroot} @@ -59,6 +58,11 @@ make test %{_mandir}/man3/Socket6.3* %changelog +* Thu Feb 06 2020 Tom Stellard - 0.29-6 +- Spec file cleanups: Use make_build and make_install macros, use NO_PACKLIST=1 + - https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make + - https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMaker + * Thu Jan 30 2020 Fedora Release Engineering - 0.29-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild