Modernize spec file

This commit is contained in:
Petr Písař 2018-03-07 12:12:40 +01:00
parent 42f9b785a3
commit 32d9c8b12d

View File

@ -1,35 +1,30 @@
Name: perl-Text-Soundex
Version: 3.05
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Implementation of the soundex algorithm
# The original license was (Copyright only). Since 3.05 somebody (RJBS?)
# added Perl license but kept the original license text.
License: (Copyright only) and (GPL+ or Artistic)
Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-Soundex/
Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Text-Soundex-%{version}.tar.gz
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
# Run-time:
# Carp not needed for tests
%if 0%(perl -e 'print $] > 5.016')
BuildRequires: perl(deprecate)
%endif
BuildRequires: perl(Exporter)
BuildRequires: perl(if)
# Text::Unidecode not needed for tests
BuildRequires: perl(XSLoader)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
%if 0%(perl -e 'print $] > 5.016')
Requires: perl(deprecate)
%endif
Requires: perl(Text::Unidecode)
%{?perl_default_filter}
@ -44,13 +39,12 @@ Soundex".
%setup -q -n Text-Soundex-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
@ -64,6 +58,9 @@ make test
%{_mandir}/man3/*
%changelog
* Wed Mar 07 2018 Petr Pisar <ppisar@redhat.com> - 3.05-9
- Modernize spec file
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.05-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild