Modernize a spec file

epel9
Petr Písař 4 years ago
parent c50e2c1995
commit bbe35289e0

@ -0,0 +1,2 @@
from Config import *
addFilter("spelling-error .* Pluggable");

@ -1,32 +1,31 @@
Name: perl-Class-C3-Componentised Name: perl-Class-C3-Componentised
Version: 1.001002 Version: 1.001002
Release: 9%{?dist} Release: 10%{?dist}
Summary: Load mix-ins or components to your C3-based class Summary: Load mix-ins or components to your C3-based class
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Class-C3-Componentised URL: https://metacpan.org/release/Class-C3-Componentised
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Class-C3-Componentised-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Class-C3-Componentised-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: coreutils
BuildRequires: make
BuildRequires: make BuildRequires: perl-generators
BuildRequires: perl-generators BuildRequires: perl-interpreter
BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict)
BuildRequires: perl(strict) BuildRequires: perl(warnings)
BuildRequires: perl(warnings)
# Run-time # Run-time
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Class::C3) >= 0.20 BuildRequires: perl(Class::C3) >= 0.20
BuildRequires: perl(Class::Inspector) >= 1.32 BuildRequires: perl(Class::Inspector) >= 1.32
BuildRequires: perl(List::Util) BuildRequires: perl(List::Util)
BuildRequires: perl(MRO::Compat) >= 0.09 BuildRequires: perl(MRO::Compat) >= 0.09
# Tests # Tests
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(FindBin) BuildRequires: perl(FindBin)
BuildRequires: perl(lib) BuildRequires: perl(lib)
BuildRequires: perl(Test::Exception) >= 0.31 BuildRequires: perl(Test::Exception) >= 0.31
BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Test::More) >= 0.96
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Class::C3) >= 0.20 Requires: perl(Class::C3) >= 0.20
Requires: perl(Class::Inspector) >= 1.32 Requires: perl(Class::Inspector) >= 1.32
@ -42,14 +41,13 @@ MooseX::Object::Pluggable.
%prep %prep
%setup -q -n Class-C3-Componentised-%{version} %setup -q -n Class-C3-Componentised-%{version}
perl -pi -e 's|^#!perl|#!%{__perl}|' t/*.t
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=%{buildroot} %{make_install}
%{_fixperms} %{buildroot}/* %{_fixperms} %{buildroot}/*
%check %check
@ -61,6 +59,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Fri Aug 21 2020 Petr Pisar <ppisar@redhat.com> - 1.001002-10
- Modernize a spec file
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.001002-9 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.001002-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

Loading…
Cancel
Save