perl-Config-ZOMG/perl-Config-ZOMG.spec

65 lines
1.8 KiB
RPMSpec
Raw Normal View History

2024-02-20 16:05:00 +08:00
Name: perl-Config-ZOMG
Version: 1.000000
Release: 1
Summary: Catalyst::Plugin::ConfigLoader-style layer over Config::Any
License: GPL+ or Artistic
URL: https://metacpan.org/release/Config-ZOMG
Source0: https://cpan.metacpan.org/authors/id/F/FR/FREW/Config-ZOMG-%{version}.tar.gz
BuildArch: noarch
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
# Clone not used at tests
BuildRequires: perl(Config::Any)
BuildRequires: perl(Hash::Merge::Simple)
BuildRequires: perl(List::Util)
BuildRequires: perl(Moo)
BuildRequires: perl(Sub::Quote)
# Tests:
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
# Test::Pod 1.41 not used
BuildRequires: perl(Test::Warn)
# Optional tests:
BuildRequires: perl(Config::General)
Requires: perl(Clone)
%description
Config::ZOMG is a fork of Config::JFDI. It removes a couple of unusual
features and passes the same tests three times faster than Config::JFDI.
Config::ZOMG is an implementation of Catalyst::Plugin::ConfigLoader. It will
scan a directory for files matching a certain name. If such a file is found
which also matches an extension that Config::Any can read, then the
configuration from that file will be loaded.
%prep
%setup -q -n Config-ZOMG-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Feb 20 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.000000-1
- Initial package