Modernize spec file

This commit is contained in:
Petr Písař 2018-11-19 09:25:21 +01:00
parent 740ecd7861
commit 861eb81b82
2 changed files with 6 additions and 6 deletions

View File

@ -5,15 +5,14 @@ Summary: Simple interface to Template Toolkit
# inc/Text/Diff.pm (not in binary package): GPLv2+ or Artistic
# rest: GPL+ or Artistic
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://metacpan.org/release/Template-Toolkit-Simple
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/Template-Toolkit-Simple-%{version}.tar.gz
# Old TestML API moved to TestML1 name space, bug #1650156
Patch0: Template-Toolkit-Simple-0.31-Old-TestML-API-moved-to-TestML1-name-space.patch
BuildArch: noarch
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
@ -70,15 +69,15 @@ sed -i -e '/^inc\//d' MANIFEST
sed -i -e '1 s,^#!/usr/bin/env perl,#!perl,' bin/tt-render
%build
perl Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
unset RELEASE_TESTING
%if %{defined perl_bootstrap}
# Break dependency cycle: perl-Template-Toolkit-Simple → perl-TestML1
# → perl-Template-Toolkit-Simple
@ -89,7 +88,8 @@ make test
%endif
%files
%doc Changes LICENSE README
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{_bindir}/tt-render