Spec tidy-up

- Use author-independent source URL
- Classify buildreqs by usage
- Cpanel::JSON::XS is now upstream's preferred JSON backend
- Drop redundant use of %{?perl_default_filter}
- Use %{make_build} and %{make_install}
- Fix permissions verbosely
- Make %files list more explicit
epel9 imports/e9/perl-Config-Any-0.32-10.el9
Paul Howarth 5 years ago
parent 545027da35
commit 57570715bf

@ -0,0 +1,4 @@
from Config import *
# This file is intentionally empty
addFilter("zero-length /usr/share/doc/perl-Config-Any/conf/conf.unsupported")

@ -1,39 +1,49 @@
Name: perl-Config-Any Name: perl-Config-Any
Summary: Load configuration from different file formats, transparently Summary: Load configuration from different file formats, transparently
Version: 0.32 Version: 0.32
Release: 9%{?dist} Release: 10%{?dist}
License: GPL+ or Artistic License: GPL+ or Artistic
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Config-Any-%{version}.tar.gz
URL: https://metacpan.org/release/Config-Any URL: https://metacpan.org/release/Config-Any
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Source0: https://cpan.metacpan.org/modules/by-module/Config/Config-Any-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Config::General) BuildRequires: perl-interpreter
BuildRequires: perl(Config::Tiny)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(JSON::XS) # Module
BuildRequires: perl(Module::Build) BuildRequires: perl(base)
BuildRequires: perl(Module::Pluggable) >= 3.01 BuildRequires: perl(Carp)
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Cwd)
BuildRequires: perl(Test::More) BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Pod) BuildRequires: perl(Module::Pluggable::Object) >= 3.6
BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(strict)
BuildRequires: perl(version) BuildRequires: perl(warnings)
BuildRequires: perl(XML::LibXML) # Optional Functionality
BuildRequires: perl(Config::General) >= 2.47
BuildRequires: perl(Config::Tiny)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(XML::NamespaceSupport)
BuildRequires: perl(XML::Simple) BuildRequires: perl(XML::Simple)
BuildRequires: perl(YAML::XS) BuildRequires: perl(YAML::XS)
BuildRequires: perl(YAML)
Requires: perl(Config::General) # Test Suite
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(lib)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
# Optional Tests
BuildRequires: perl(XML::LibXML) >= 1.59
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Config::General) >= 2.47
Requires: perl(Config::Tiny) Requires: perl(Config::Tiny)
Requires: perl(JSON::XS) Requires: perl(Cpanel::JSON::XS)
Requires: perl(Module::Pluggable) >= 3.01 Requires: perl(XML::NamespaceSupport)
Requires: perl(XML::Simple) Requires: perl(XML::Simple)
Requires: perl(YAML::XS) Requires: perl(YAML::XS)
Requires: perl(YAML)
%{?perl_default_filter}
%description %description
Config::Any provides a facility for Perl applications and libraries to Config::Any provides a facility for Perl applications and libraries to
@ -45,23 +55,40 @@ Perl code.
%setup -q -n Config-Any-%{version} %setup -q -n Config-Any-%{version}
%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} -c %{buildroot}
%check %check
make test make test
%files %files
# conf/ for examples of different config types # conf/ for examples of different config types
%doc Changes README %doc Changes README t/conf/
%{perl_vendorlib}/Config* %{perl_vendorlib}/Config/
%{_mandir}/man3/Config* %{_mandir}/man3/Config::Any.3*
%{_mandir}/man3/Config::Any::Base.3*
%{_mandir}/man3/Config::Any::General.3*
%{_mandir}/man3/Config::Any::INI.3*
%{_mandir}/man3/Config::Any::JSON.3*
%{_mandir}/man3/Config::Any::Perl.3*
%{_mandir}/man3/Config::Any::XML.3*
%{_mandir}/man3/Config::Any::YAML.3*
%changelog %changelog
* Wed Oct 30 2019 Paul Howarth <paul@city-fan.org> - 0.32-10
- Spec tidy-up
- Use author-independent source URL
- Classify buildreqs by usage
- Cpanel::JSON::XS is now upstream's preferred JSON backend
- Drop redundant use of %%{?perl_default_filter}
- Use %%{make_build} and %%{make_install}
- Fix permissions verbosely
- Make %%files list more explicit
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-9 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save