Modernize spec.

This commit is contained in:
Ralf Corsépius 2016-01-31 06:51:45 +01:00
parent 2479dbdd61
commit af4610e533

View File

@ -3,7 +3,7 @@
Name: perl-gettext
Version: 1.07
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Interface to gettext family of functions
Group: Development/Libraries
@ -49,14 +49,12 @@ internationalize software.
%setup -q -n %{tarname}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} $RPM_BUILD_ROOT/*
@ -72,6 +70,9 @@ make test
%changelog
* Sun Jan 31 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.07-2
- Modernize spec.
* Thu Nov 26 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.07-1
- Upstream update.
- Reflect upstream having changed tarball name to Locale-gettext.