forked from pool/perl-JSON-Validator
Accepting request 670500 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/670500 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Validator?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
9d2fd0a389
commit
285cabb957
@@ -17,38 +17,29 @@
|
||||
|
||||
|
||||
Name: perl-JSON-Validator
|
||||
Version: 2.19
|
||||
Version: 3.05
|
||||
Release: 0
|
||||
%define cpan_name JSON-Validator
|
||||
Summary: Validate data against a JSON schema
|
||||
License: Artistic-2.0
|
||||
Group: Development/Libraries/Perl
|
||||
Url: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: JSON-Validator-2.19.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Mojolicious) >= 7.28
|
||||
BuildRequires: perl(YAML::XS)
|
||||
BuildRequires: perl(Cpanel::JSON::XS)
|
||||
BuildRequires: perl(Test::More) >= 1.30
|
||||
BuildRequires: perl(Data::Validate::Domain)
|
||||
BuildRequires: perl(Data::Validate::IP)
|
||||
Requires: perl-base >= 5.28.1
|
||||
Requires: perl(Mojolicious) >= 7.28
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
JSON::Validator is a class for validating data against JSON schemas. You
|
||||
might want to use this instead of JSON::Schema if you need to validate data
|
||||
against at https://github.com/json-schema/json-schema/tree/master/draft-04
|
||||
of the specification.
|
||||
|
||||
This module can be used standalone, but if you want to define a
|
||||
specification for your webserver's API, then have a look at
|
||||
Mojolicious::Plugin::OpenAPI, which will replace
|
||||
Mojolicious::Plugin::Swagger2.
|
||||
JSON::Validator is a data structure validation library based around at
|
||||
https://json-schema.org/. 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 %{cpan_name}-%{version}
|
||||
@@ -58,8 +49,6 @@ perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
# FIXME: Failed test 'http://127.0.0.1:44261/relative-to-the-root.json'
|
||||
rm t/id-keyword-draft4.t
|
||||
make test
|
||||
|
||||
%install
|
||||
@@ -69,6 +58,6 @@ make test
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes run-all-tests.sh
|
||||
%doc Changes README.md
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user