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
This commit is contained in:
Tom Stellard 2020-02-06 05:31:22 +00:00 committed by Paul Howarth
parent 6ebd860638
commit 0717886139

View File

@ -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 <tstellar@redhat.com> - 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 <releng@fedoraproject.org> - 0.29-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild