Spec file cleanups: Use make_build and make_install macros
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake
This commit is contained in:
parent
efa16930d7
commit
98e2e4f6ef
@ -2,7 +2,7 @@
|
||||
Name: perl-threads
|
||||
Epoch: 1
|
||||
Version: 2.22
|
||||
Release: 440%{?dist}
|
||||
Release: 441%{?dist}
|
||||
Summary: Perl interpreter-based threads
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/threads
|
||||
@ -57,11 +57,11 @@ This threading model has been deprecated, and was removed as of Perl 5.10.0.)
|
||||
chmod -x examples/*
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 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
|
||||
%{make_install}
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
@ -75,6 +75,11 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 06 2020 Tom Stellard <tstellar@redhat.com> - 1:2.22-441
|
||||
- Spec file cleanups: Use make_build and make_install macros
|
||||
- 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> - 1:2.22-440
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user