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:
parent
292d640ea9
commit
5106e27477
@ -3,7 +3,7 @@
|
||||
|
||||
Name: perl-Unix-Syslog
|
||||
Version: 1.1
|
||||
Release: 35%{?dist}
|
||||
Release: 36%{?dist}
|
||||
Summary: Perl interface to the UNIX syslog(3) calls
|
||||
License: Artistic 2.0
|
||||
URL: https://metacpan.org/release/Unix-Syslog
|
||||
@ -16,7 +16,7 @@ BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
# Module Runtime
|
||||
BuildRequires: perl(DynaLoader)
|
||||
BuildRequires: perl(Exporter)
|
||||
@ -43,12 +43,11 @@ syslog.h should be able to use this module right away.
|
||||
%setup -q -n Unix-Syslog-%{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' -a -empty -delete
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
@ -69,6 +68,11 @@ make test
|
||||
%{_mandir}/man3/Unix::Syslog.3*
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user