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
bcf122f55e
commit
38be670071
@ -1,7 +1,7 @@
|
|||||||
Summary: Internationalization library for Perl, compatible with gettext
|
Summary: Internationalization library for Perl, compatible with gettext
|
||||||
Name: perl-libintl-perl
|
Name: perl-libintl-perl
|
||||||
Version: 1.31
|
Version: 1.31
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
# gettext_xs/gettext_xs.pm: GPLv3+
|
# gettext_xs/gettext_xs.pm: GPLv3+
|
||||||
# gettext_xs/Makefile.PL: LGPLv2+
|
# gettext_xs/Makefile.PL: LGPLv2+
|
||||||
# lib/Locale/gettext_xs.pod: LGPLv2+
|
# lib/Locale/gettext_xs.pod: LGPLv2+
|
||||||
@ -85,11 +85,11 @@ rm .gitignore MANIFEST
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PERLLOCAL=1
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=%{buildroot}
|
%make_install
|
||||||
find %{buildroot} -type f \( -name .packlist -o \
|
find %{buildroot} -type f \( -name .packlist -o \
|
||||||
-name '*.bs' -size 0 \) -delete
|
-name '*.bs' -size 0 \) -delete
|
||||||
%{_fixperms} %{buildroot}
|
%{_fixperms} %{buildroot}
|
||||||
@ -106,6 +106,11 @@ make test
|
|||||||
%{_mandir}/man?/*
|
%{_mandir}/man?/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 1.31-6
|
||||||
|
- 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.31-5
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user