Modernize a spec file

f38
Petr Písař 3 years ago
parent 4cd6e3a20e
commit 5c250281b9

@ -1,2 +0,0 @@
from Config import *
addFilter("spelling-error .* (dev|exe|html|http)");

@ -0,0 +1 @@
addFilter('spelling-error .* (dev|exe|html|http)')

@ -1,15 +1,19 @@
# Perform optional tests
%bcond_without perl_Syntax_Keyword_Junction_enables_optional_test
Name: perl-Syntax-Keyword-Junction
Version: 0.003008
Release: 21%{?dist}
Release: 22%{?dist}
Summary: Perl6 style Junction operators in Perl5
License: GPL+ or Artistic
URL: https://metacpan.org/release/Syntax-Keyword-Junction
Source0: https://cpan.metacpan.org/authors/id/F/FR/FREW/Syntax-Keyword-Junction-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: make
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:
@ -20,9 +24,11 @@ BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001006
# Tests:
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Requires) >= 0.07
BuildRequires: perl(syntax)
%if %{with perl_Syntax_Keyword_Junction_enables_optional_test}
# Optional tests:
BuildRequires: perl(Sub::Exporter) >= 0.986
BuildRequires: perl(syntax)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(if)
Requires: perl(overload)
@ -38,25 +44,36 @@ commonly used being any and all. Inspired by the Perl6 design docs,
%prep
%setup -q -n Syntax-Keyword-Junction-%{version}
for F in t/release-pod-syntax.t \
%if %{without perl_Syntax_Keyword_Junction_enables_optional_test}
t/smartmatch.t t/syntax.t \
%endif
; do
rm "$F"
perl -i -ne 'print $_ unless m{^\E'"$F"'\Q}' MANIFEST
done
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes LICENSE README
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Jan 10 2022 Petr Pisar <ppisar@redhat.com> - 0.003008-22
- Modernize a spec file
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.003008-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

Loading…
Cancel
Save