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
This commit is contained in:
Tom Stellard 2020-02-06 05:45:37 +00:00
parent 741fdaa500
commit fbd52d753f

View File

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