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::MakeMaker
This commit is contained in:
Tom Stellard 2020-02-06 06:09:36 +00:00 committed by Paul Howarth
parent 292d640ea9
commit 5106e27477

View File

@ -3,7 +3,7 @@
Name: perl-Unix-Syslog Name: perl-Unix-Syslog
Version: 1.1 Version: 1.1
Release: 35%{?dist} Release: 36%{?dist}
Summary: Perl interface to the UNIX syslog(3) calls Summary: Perl interface to the UNIX syslog(3) calls
License: Artistic 2.0 License: Artistic 2.0
URL: https://metacpan.org/release/Unix-Syslog URL: https://metacpan.org/release/Unix-Syslog
@ -16,7 +16,7 @@ BuildRequires: make
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Module Runtime # Module Runtime
BuildRequires: perl(DynaLoader) BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
@ -43,12 +43,11 @@ syslog.h should be able to use this module right away.
%setup -q -n Unix-Syslog-%{version} %setup -q -n Unix-Syslog-%{version}
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=%{buildroot} %{make_install}
find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -type f -name '*.bs' -a -empty -delete find %{buildroot} -type f -name '*.bs' -a -empty -delete
%{_fixperms} %{buildroot} %{_fixperms} %{buildroot}
@ -69,6 +68,11 @@ make test
%{_mandir}/man3/Unix::Syslog.3* %{_mandir}/man3/Unix::Syslog.3*
%changelog %changelog
* Thu Feb 06 2020 Tom Stellard <tstellar@redhat.com> - 1.1-36
- 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::MakeMaker
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-35 * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild