Blame SPECS/perl-Params-ValidationCompiler.spec

04df80
# Run optional test
04df80
%if ! (0%{?rhel})
04df80
%bcond_without perl_Params_ValidationCompiler_enables_optional_test
04df80
%else
04df80
%bcond_with perl_Params_ValidationCompiler_enables_optional_test
04df80
%endif
04df80
04df80
Name:		perl-Params-ValidationCompiler
04df80
Version:	0.30
04df80
Release:	12%{?dist}
04df80
Summary:	Build an optimized subroutine parameter validator once, use it forever
04df80
License:	Artistic 2.0
04df80
URL:		https://metacpan.org/release/Params-ValidationCompiler
04df80
Source0:	https://cpan.metacpan.org/modules/by-module/Params/Params-ValidationCompiler-%{version}.tar.gz
04df80
BuildArch:	noarch
04df80
# Build
04df80
BuildRequires:	coreutils
04df80
BuildRequires:	make
04df80
BuildRequires:	perl-generators
04df80
BuildRequires:	perl-interpreter
04df80
BuildRequires:	perl(ExtUtils::MakeMaker) > 6.75
04df80
# Module
04df80
BuildRequires:	perl(B)
04df80
BuildRequires:	perl(Carp)
04df80
BuildRequires:	perl(Class::XSAccessor)
04df80
BuildRequires:	perl(Eval::Closure)
04df80
BuildRequires:	perl(Exception::Class)
04df80
BuildRequires:	perl(Exporter)
04df80
BuildRequires:	perl(List::Util) >= 1.29
04df80
BuildRequires:	perl(overload)
04df80
BuildRequires:	perl(Scalar::Util)
04df80
BuildRequires:	perl(strict)
04df80
BuildRequires:	perl(warnings)
04df80
# Optional Functionality
04df80
BuildRequires:	perl(Sub::Util) >= 1.40
04df80
# Test Suite
04df80
BuildRequires:	perl(File::Spec)
04df80
BuildRequires:	perl(Specio) >= 0.14
04df80
BuildRequires:	perl(Specio::Declare)
04df80
BuildRequires:	perl(Specio::Library::Builtins)
04df80
BuildRequires:	perl(Test2::Plugin::NoWarnings)
04df80
BuildRequires:	perl(Test2::Require::Module)
04df80
BuildRequires:	perl(Test2::V0)
04df80
BuildRequires:	perl(Test::More) >= 1.302015
04df80
BuildRequires:	perl(Test::Without::Module)
04df80
%if %{with perl_Params_ValidationCompiler_enables_optional_test}
04df80
# Optional Tests
04df80
BuildRequires:	perl(Const::Fast)
04df80
BuildRequires:	perl(CPAN::Meta) >= 2.120900
04df80
BuildRequires:	perl(CPAN::Meta::Prereqs)
04df80
BuildRequires:	perl(Hash::Util)
04df80
%if !%{defined perl_bootstrap}
04df80
# Avoid build dependency cycles via Moose and DateTime
04df80
BuildRequires:	perl(Moose::Util::TypeConstraints)
04df80
BuildRequires:	perl(Types::Standard)
04df80
%endif
04df80
%endif
04df80
# Dependencies
04df80
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
04df80
Recommends:	perl(Class::XSAccessor)
04df80
Recommends:	perl(Sub::Util) >= 1.40
04df80
04df80
%description
04df80
Create a customized, optimized, non-lobotomized, uncompromised, and thoroughly
04df80
specialized parameter checking subroutine.
04df80
04df80
%prep
04df80
%setup -q -n Params-ValidationCompiler-%{version}
04df80
04df80
%build
04df80
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
04df80
make %{?_smp_mflags}
04df80
04df80
%install
04df80
make install DESTDIR=%{buildroot}
04df80
%{_fixperms} -c %{buildroot}
04df80
04df80
%check
04df80
make test
04df80
04df80
%files
04df80
%license LICENSE
04df80
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md eg/ README.md
04df80
%{perl_vendorlib}/Params/
04df80
%{_mandir}/man3/Params::ValidationCompiler.3*
04df80
%{_mandir}/man3/Params::ValidationCompiler::Compiler.3*
04df80
%{_mandir}/man3/Params::ValidationCompiler::Exceptions.3*
04df80
04df80
%changelog
04df80
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.30-12
04df80
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
04df80
  Related: rhbz#1991688
04df80
04df80
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.30-11
04df80
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
04df80
04df80
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-10
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
04df80
04df80
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-9
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
04df80
04df80
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-8
04df80
- Perl 5.32 re-rebuild of bootstrapped packages
04df80
04df80
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-7
04df80
- Perl 5.32 rebuild
04df80
04df80
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-6
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
04df80
04df80
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-5
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
04df80
04df80
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-4
04df80
- Perl 5.30 re-rebuild of bootstrapped packages
04df80
04df80
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-3
04df80
- Perl 5.30 rebuild
04df80
04df80
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-2
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
04df80
04df80
* Wed Aug  1 2018 Paul Howarth <paul@city-fan.org> - 0.30-1
04df80
- Update to 0.30
04df80
  - Added a new option for named params, "return_object", which causes the
04df80
    validation sub to return an object with methods for each param rather than
04df80
    a hashref; this is a great way to avoid typos in hash keys (idea
04df80
    shamelessly stolen from Toby Inkster's Type::Params module)
04df80
  - Tweaked the POD formatting so that the table of contents generated by
04df80
    MetaCPAN is more useful
04df80
  - Optionally use Class::XSAccessor
04df80
04df80
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-4
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
04df80
04df80
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-3
04df80
- Perl 5.28 re-rebuild of bootstrapped packages
04df80
04df80
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-2
04df80
- Perl 5.28 rebuild
04df80
04df80
* Mon Feb 12 2018 Paul Howarth <paul@city-fan.org> - 0.27-1
04df80
- Update to 0.27
04df80
  - Fixed a bug with inlining Moose types: if a type's parent needed
04df80
    environment variables, those would not get closed over (GH#22)
04df80
  - Added a debug option to dump the source of the subroutine before it is
04df80
    eval'd
04df80
04df80
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-2
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
04df80
04df80
* Tue Nov 28 2017 Paul Howarth <paul@city-fan.org> - 0.26-1
04df80
- Update to 0.26
04df80
  - The exceptions.t test would fail if Sub::Util was not installed (GH#19)
04df80
  - Fix test failures on Windows (GH#20)
04df80
04df80
* Fri Nov 24 2017 Paul Howarth <paul@city-fan.org> - 0.25-1
04df80
- Update to 0.25
04df80
  - All exceptions now include a stack trace by default when treated as a
04df80
    string; this makes finding where validation failed a lot easier (GH#18)
04df80
  - The name for a subroutine is now used in some exception messages, even if
04df80
    Sub::Util cannot be installed
04df80
04df80
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-4
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
04df80
04df80
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-3
04df80
- Perl 5.26 re-rebuild of bootstrapped packages
04df80
04df80
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-2
04df80
- Perl 5.26 rebuild
04df80
04df80
* Sun Apr  9 2017 Paul Howarth <paul@city-fan.org> - 0.24-1
04df80
- Update to 0.24
04df80
  - The source_for() exported by Params::ValidationCompiler did not work at all
04df80
    (GH#16)
04df80
04df80
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-2
04df80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
04df80
04df80
* Mon Jan 23 2017 Paul Howarth <paul@city-fan.org> - 0.23-1
04df80
- Update to 0.23
04df80
  - Trying to create a validator for positional parameters where a required
04df80
    param came after one with a default did not throw an exception
04df80
  - A positional params validator with a slurpy type that had coercions did not
04df80
    return the coerced values; it returned the original values instead
04df80
04df80
* Sat Dec 31 2016 Paul Howarth <paul@city-fan.org> - 0.22-1
04df80
- Update to 0.22
04df80
  - Explicitly load the B module; previously, the code relied on this already
04df80
    being loaded by something else (GH#11)
04df80
  - Removed the alpha warning from the docs
04df80
04df80
* Wed Dec  7 2016 Paul Howarth <paul@city-fan.org> - 0.21-1
04df80
- Update to 0.21
04df80
  - Switched to using GitHub issues
04df80
04df80
* Tue Dec  6 2016 Paul Howarth <paul@city-fan.org> - 0.20-1
04df80
- Update to 0.20
04df80
  - The keys for parameter specifications are now validated, and if an unknown
04df80
    key is seen then an exception will be thrown; this will help you catch
04df80
    typos in your parameter specification (GH#8)
04df80
04df80
* Tue Nov 22 2016 Paul Howarth <paul@city-fan.org> - 0.19-1
04df80
- Update to 0.19
04df80
  - Non-inlinable Specio types caused a syntax error when used with positional
04df80
    params
04df80
  - Positional params with coercions and defaults did not work properly; the
04df80
    coerced value and the default would simply not be returned in any case
04df80
04df80
* Mon Nov 14 2016 Paul Howarth <paul@city-fan.org> - 0.18-1
04df80
- Update to 0.18
04df80
  - Using coercions with positional parameters could cause a "Modification of a
04df80
    read-only value attempted" exception when the generated code tried to
04df80
    assign to elements of @_; this is now fixed by making a copy if any of the
04df80
    types have a coercion
04df80
  - Using Moose types with coercions in a positional params check would cause
04df80
    invalid code to be generated; this could also happen with Type::Tiny if
04df80
    either the type or a coercion could not be inlined
04df80
04df80
* Mon Nov  7 2016 Paul Howarth <paul@city-fan.org> - 0.17-1
04df80
- Update to 0.17
04df80
  - When using positional parameters, parameters with a default are now
04df80
    optional; for named parameters, this was already the case
04df80
04df80
* Fri Nov  4 2016 Paul Howarth <paul@city-fan.org> - 0.16-1
04df80
- Update to 0.16
04df80
  - Previously, using a default with a positional parameter would result in an
04df80
    error when compiling the validator subroutine; defaults now work with
04df80
    positional parameters (GH#5)
04df80
  - Moose and Specio types (and coercions) that provide variables to close over
04df80
    when being inlined did not always compile properly; most notably, this was
04df80
    not being handled at all for Moose types, and not completely handled for
04df80
    Specio coercions
04df80
04df80
* Thu Nov  3 2016 Paul Howarth <paul@city-fan.org> - 0.14-1
04df80
- Update to 0.14
04df80
  - Added a "named_to_list" option to support returning only the parameter
04df80
    values from a named parameter validator rather than the key-value pairs
04df80
    (GH#4)
04df80
  - Errors from calls to validation_for() now use croak so as to show up at the
04df80
    call site, rather than in the internals
04df80
04df80
* Wed Oct 26 2016 Petr Pisar <ppisar@redhat.com> - 0.13-4
04df80
- Break build cycle: perl-Moose → perl-DateTime → perl-Params-ValidationCompiler
04df80
04df80
* Mon Sep 19 2016 Paul Howarth <paul@city-fan.org> - 0.13-3
04df80
- Drop unused BR: findutils (#1377252)
04df80
04df80
* Mon Sep 19 2016 Paul Howarth <paul@city-fan.org> - 0.13-2
04df80
- Sanitize for Fedora submission
04df80
04df80
* Sun Sep 18 2016 Paul Howarth <paul@city-fan.org> - 0.13-1
04df80
- Initial RPM version