Name: perl-JSON-Validator Version: 5.11 Release: 1%{?dist} Summary: Validate data against a JSON schema License: Artistic 2.0 URL: https://metacpan.org/release/JSON-Validator Source0: https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/JSON-Validator-%{version}.tar.gz BuildArch: noarch # build dependencies BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.16.0 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(utf8) BuildRequires: perl(warnings) # runtime deps BuildRequires: perl(B) BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(List::Util) >= 1.45 BuildRequires: perl(Mojo::Base) BuildRequires: perl(Mojo::Collection) BuildRequires: perl(Mojo::File) BuildRequires: perl(Mojo::JSON) BuildRequires: perl(Mojo::JSON::Pointer) BuildRequires: perl(Mojo::Loader) BuildRequires: perl(Mojo::URL) BuildRequires: perl(Mojo::UserAgent) BuildRequires: perl(Mojo::Util) # Mojo::Base is not versioned BuildRequires: perl(Mojolicious) >= 7.28 BuildRequires: perl(Scalar::Util) BuildRequires: perl(Storable) BuildRequires: perl(Tie::Hash) BuildRequires: perl(Tie::StdHash) BuildRequires: perl(Time::Local) # YAML::XS || YAML::PP BuildRequires: perl(YAML::XS) >= 0.67 BuildRequires: perl(base) BuildRequires: perl(constant) BuildRequires: perl(overload) # optional runtime BuildRequires: perl(Config) BuildRequires: perl(Data::Validate::Domain) BuildRequires: perl(Data::Validate::IP) BuildRequires: perl(Net::IDN::Encode) # If Sereal::Encoder is available, YAML::XS is not helpful, but still needed # because of a suboptimal BEGIN section. # Sereal::Encoder 4.00 skip to exhibit YAML::XS fallback # test deps BuildRequires: perl(File::Find) BuildRequires: perl(Mojolicious::Lite) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Mojo) BuildRequires: perl(Test::More) >= 1.30 BuildRequires: perl(lib) # Optional test deps # Test::JSON::Schema::Acceptance not yet packaged BuildRequires: perl(boolean) Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version)) Recommends: perl(Config) Suggests: perl(Data::Validate::Domain) Suggests: perl(Data::Validate::IP) Requires: perl(List::Util) >= 1.45 Requires: perl(Mojo::UserAgent) # No other perl-Mojolicious module is versioned Requires: perl(Mojolicious) >= 7.28 Suggests: perl(Net::IDN::Encode) Suggests: perl(Sereal::Encoder) >= 4.00 # YAML::XS || YAML::PP Requires: perl(YAML::XS) >= 0.67 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(List::Util\\)$ %description JSON::Validator is a data structure validation library based around JSON Schema. This module can be used directly with a JSON schema or you can use the elegant DSL schema-builder JSON::Validator::joi to define the schema programmatically. %prep %setup -q -n JSON-Validator-%{version} %build /usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check unset JSON_VALIDATOR_CACHE_ANYWAYS JSON_VALIDATOR_CACHE_PATH \ JSON_VALIDATOR_DEBUG JSON_VALIDATOR_NO_SEREAL \ JSON_VALIDATOR_RECURSION_LIMIT JSON_VALIDATOR_WARN \ TEST_ONLINE TEST_RANDOM_ITERATIONS %{make_build} test %files %doc Changes CONTRIBUTING.md %{perl_vendorlib}/JSON* %{_mandir}/man3/JSON* %changelog * Sun Sep 04 2022 Emmanuel Seyman - 5.11-1 - Update to 5.11 * Sun Aug 21 2022 Emmanuel Seyman - 5.10-1 - Update to 5.10 * Fri Jul 22 2022 Fedora Release Engineering - 5.08-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 5.08-2 - Perl 5.36 rebuild * Sun Mar 27 2022 Emmanuel Seyman - 5.08-1 - Update to 5.08 * Fri Jan 21 2022 Fedora Release Engineering - 5.05-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 16 2022 Emmanuel Seyman - 5.05-1 - Update to 5.05 * Sun Dec 12 2021 Emmanuel Seyman - 5.04-1 - Update to 5.04 * Sun Nov 21 2021 Emmanuel Seyman - 5.03-1 - Update to 5.03 * Sun Oct 10 2021 Emmanuel Seyman - 5.02-1 - Update to 5.02 * Sun Oct 03 2021 Emmanuel Seyman - 5.00-1 - Update to 5.00 * Sun Sep 26 2021 Emmanuel Seyman - 4.25-1 - Update to 4.25 * Sun Sep 19 2021 Emmanuel Seyman - 4.24-1 - Update to 4.24 * Sun Aug 29 2021 Emmanuel Seyman - 4.23-1 - Update to 4.23 * Thu Jul 22 2021 Fedora Release Engineering - 4.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jul 11 2021 Emmanuel Seyman - 4.21-1 - Update to 4.21 * Sat Jun 19 2021 Emmanuel Seyman - 4.20-1 - Update to 4.20 * Fri May 21 2021 Jitka Plesnikova - 4.17-2 - Perl 5.34 rebuild * Sat May 01 2021 Emmanuel Seyman - 4.17-1 - Update to 4.17 * Sun Mar 28 2021 Emmanuel Seyman - 4.16-1 - Update to 4.16 * Sun Feb 28 2021 Emmanuel Seyman - 4.14-1 - Update to 4.14 * Sun Jan 31 2021 Emmanuel Seyman - 4.13-1 - Update to 4.13 * Wed Jan 27 2021 Fedora Release Engineering - 4.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Oct 18 2020 Emmanuel Seyman - 4.10-1 - Update to 4.10 * Tue Oct 13 2020 Petr Pisar - 4.07-2 - Correct dependencies (bug #1887724) * Sun Oct 11 2020 Emmanuel Seyman - 4.07-1 - Update to 4.07 * Sun Oct 04 2020 Emmanuel Seyman - 4.04-1 - Update to 4.04 * Sun Sep 20 2020 Emmanuel Seyman - 4.03-1 - Update to 4.03 * Sun Aug 16 2020 Emmanuel Seyman - 4.02-1 - Update to 4.02 * Tue Jul 28 2020 Fedora Release Engineering - 4.01-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Jul 12 2020 Emmanuel Seyman - 4.01-1 - Update to 4.01 * Tue Jun 23 2020 Jitka Plesnikova - 4.00-2 - Perl 5.32 rebuild * Sun Jun 14 2020 Emmanuel Seyman - 4.00-1 - Update to 4.00 * Sun Mar 29 2020 Emmanuel Seyman - 3.25-1 - Update to 3.25 * Sun Mar 08 2020 Emmanuel Seyman - 3.24-1 - Update to 3.24 * Thu Feb 20 2020 Emmanuel Seyman - 3.23-1 - Update to 3.23 * Sun Feb 16 2020 Emmanuel Seyman - 3.22-1 - Update to 3.22 * Sun Feb 09 2020 Emmanuel Seyman - 3.19-1 - Update to 3.19 * Sun Feb 02 2020 Emmanuel Seyman - 3.18-1 - Update to 3.18 * Thu Jan 30 2020 Fedora Release Engineering - 3.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Dec 29 2019 Emmanuel Seyman - 3.17-1 - Update to 3.17 * Fri Nov 01 2019 Emmanuel Seyman - 3.16-1 - Update to 3.16 * Sun Sep 29 2019 Emmanuel Seyman - 3.15-1 - Update to 3.15 * Sun Aug 11 2019 Emmanuel Seyman - 3.14-1 - Update to 3.14 - Replace calls to "make pure_install" to %%{make_install} - Replace calls to "make" to %%{make_build} - Pass NO_PERLLOCAL to Makefile.PL * Fri Jul 26 2019 Fedora Release Engineering - 3.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 3.11-2 - Perl 5.30 rebuild * Sun May 12 2019 Emmanuel Seyman - 3.11-1 - Update to 3.11 * Sun May 05 2019 Emmanuel Seyman - 3.10-1 - Update to 3.10 * Sun Apr 07 2019 Emmanuel Seyman - 3.08-1 - Update to 3.08 * Thu Mar 07 2019 Emmanuel Seyman - 3.06-2 - Take into account review comments (#1686210) * Wed Mar 06 2019 Emmanuel Seyman - 3.06-1 - Initial specfile, based on the one autogenerated by cpanspec 1.78.