|
|
|
@ -1,11 +1,10 @@
|
|
|
|
|
Name: perl-Params-Coerce
|
|
|
|
|
Version: 0.14
|
|
|
|
|
Release: 37%{?dist}
|
|
|
|
|
Version: 0.15
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Allows your classes to do coercion of parameters
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/Params-Coerce
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Params/Params-Coerce-%{version}.tar.gz
|
|
|
|
|
Patch0: https://rt.cpan.org/Ticket/Attachment/1727800/928987/Params-Coerce-0.14-Fix-building-on-Perl-without-.-in-INC.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Module Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
@ -13,26 +12,17 @@ BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
# Dependencies of bundled Module::Install
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(YAML)
|
|
|
|
|
# Module Runtime
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Params::Util) >= 0.05
|
|
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.11
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
# Optional Tests
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Dependencies
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
@ -45,9 +35,6 @@ negligible additional complexity to your code.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Params-Coerce-%{version}
|
|
|
|
|
|
|
|
|
|
# Fix building on Perl without "." in @INC (CPAN RT#121730)
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
@ -58,19 +45,20 @@ find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test AUTOMATED_TESTING=1
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%if 0%{?_licensedir:1}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%else
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%endif
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
|
%{perl_vendorlib}/Params/
|
|
|
|
|
%{_mandir}/man3/Params::Coerce.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Jan 10 2021 Paul Howarth <paul@city-fan.org> - 0.15-1
|
|
|
|
|
- Update to 0.15
|
|
|
|
|
- Distribution tooling updates
|
|
|
|
|
- Use %%license unconditionally
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-37
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|