Blame perl-Params-ValidationCompiler.spec

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