111 lines
3.8 KiB
RPMSpec
111 lines
3.8 KiB
RPMSpec
Name: perl-Params-ValidationCompiler
|
|
Version: 0.17
|
|
Release: 1%{?dist}
|
|
Summary: Build an optimized subroutine parameter validator once, use it forever
|
|
License: Artistic 2.0
|
|
URL: http://search.cpan.org/dist/Params-ValidationCompiler/
|
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
# Build
|
|
BuildRequires: coreutils
|
|
BuildRequires: make
|
|
BuildRequires: perl
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
|
|
# Module
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Eval::Closure)
|
|
BuildRequires: perl(Exception::Class)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(List::Util) >= 1.29
|
|
BuildRequires: perl(overload)
|
|
BuildRequires: perl(Scalar::Util)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
# Optional Functionality
|
|
BuildRequires: perl(Sub::Util) >= 1.40
|
|
# Test Suite
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(Specio) >= 0.14
|
|
BuildRequires: perl(Specio::Declare)
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
BuildRequires: perl(Test2::Bundle::Extended)
|
|
BuildRequires: perl(Test2::Plugin::NoWarnings)
|
|
BuildRequires: perl(Test2::Require::Module)
|
|
BuildRequires: perl(Test::More) >= 1.302015
|
|
BuildRequires: perl(Test::Without::Module)
|
|
# Optional Tests (avoid build dependency cycles via Moose and DateTime)
|
|
BuildRequires: perl(Const::Fast)
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
BuildRequires: perl(CPAN::Meta::Prereqs)
|
|
BuildRequires: perl(Hash::Util)
|
|
%if !%{defined perl_bootstrap}
|
|
BuildRequires: perl(Moose::Util::TypeConstraints)
|
|
BuildRequires: perl(Types::Standard)
|
|
%endif
|
|
# Dependencies
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(Sub::Util) >= 1.40
|
|
|
|
%description
|
|
Create a customized, optimized, non-lobotomized, uncompromised, and thoroughly
|
|
specialized parameter checking subroutine.
|
|
|
|
%prep
|
|
%setup -q -n Params-ValidationCompiler-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc Changes eg/ README.md
|
|
%{perl_vendorlib}/Params/
|
|
%{_mandir}/man3/Params::ValidationCompiler.3*
|
|
%{_mandir}/man3/Params::ValidationCompiler::Compiler.3*
|
|
%{_mandir}/man3/Params::ValidationCompiler::Exceptions.3*
|
|
|
|
%changelog
|
|
* Mon Nov 7 2016 Paul Howarth <paul@city-fan.org> - 0.17-1
|
|
- Update to 0.17
|
|
- When using positional parameters, parameters with a default are now
|
|
optional; for named parameters, this was already the case
|
|
|
|
* Fri Nov 4 2016 Paul Howarth <paul@city-fan.org> - 0.16-1
|
|
- Update to 0.16
|
|
- Previously, using a default with a positional parameter would result in an
|
|
error when compiling the validator subroutine; defaults now work with
|
|
positional parameters (GH#5)
|
|
- Moose and Specio types (and coercions) that provide variables to close over
|
|
when being inlined did not always compile properly; most notably, this was
|
|
not being handled at all for Moose types, and not completely handled for
|
|
Specio coercions
|
|
|
|
* Thu Nov 3 2016 Paul Howarth <paul@city-fan.org> - 0.14-1
|
|
- Update to 0.14
|
|
- Added a "named_to_list" option to support returning only the parameter
|
|
values from a named parameter validator rather than the key-value pairs
|
|
(GH#4)
|
|
- Errors from calls to validation_for() now use croak so as to show up at the
|
|
call site, rather than in the internals
|
|
|
|
* Wed Oct 26 2016 Petr Pisar <ppisar@redhat.com> - 0.13-4
|
|
- Break build cycle: perl-Moose → perl-DateTime → perl-Params-ValidationCompiler
|
|
|
|
* Mon Sep 19 2016 Paul Howarth <paul@city-fan.org> - 0.13-3
|
|
- Drop unused BR: findutils (#1377252)
|
|
|
|
* Mon Sep 19 2016 Paul Howarth <paul@city-fan.org> - 0.13-2
|
|
- Sanitize for Fedora submission
|
|
|
|
* Sun Sep 18 2016 Paul Howarth <paul@city-fan.org> - 0.13-1
|
|
- Initial RPM version
|