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
ef7e9e5309
commit
72b731c8ec
@ -9,7 +9,7 @@ Name: perl-version
|
||||
Epoch: 7
|
||||
Version: 0.99.24
|
||||
%global module_version 0.9924
|
||||
Release: 442%{?dist}
|
||||
Release: 443%{?dist}
|
||||
Summary: Perl extension for Version Objects
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/version
|
||||
@ -79,11 +79,11 @@ strongly urged to set 0.77 as a minimum in your code.
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
%{make_install}
|
||||
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
@ -104,6 +104,11 @@ make test
|
||||
%{_mandir}/man3/version::Internals.3pm*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 06 2020 Tom Stellard <tstellar@redhat.com> - 7:0.99.24-443
|
||||
- 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> - 7:0.99.24-442
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user