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::MakeMaker
This commit is contained in:
parent
d62da498ad
commit
d9af61a3f6
@ -3,7 +3,7 @@
|
||||
|
||||
Name: perl-DBD-SQLite
|
||||
Version: 1.64
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: SQLite DBI Driver
|
||||
# lib/DBD/SQLite.pm: GPL+ or Artistic
|
||||
# LICENSE: GPL+ or Artistic
|
||||
@ -98,11 +98,11 @@ rm -rf inc
|
||||
sed -i -e '/^inc\// d' MANIFEST
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
||||
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%make_build OPTIMIZE="%{optflags}"
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
%make_install
|
||||
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
@ -117,6 +117,11 @@ make test
|
||||
%{_mandir}/man3/*.3pm*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 1.64-4
|
||||
- Spec file cleanups: Use make_build and make_install macros
|
||||
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMaker
|
||||
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.64-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user