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
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e36be90389fa3ea1428871a53728119b13d6a5af0d0b316844c15c3d091b4258
|
|
||||||
size 61829
|
|
||||||
3
JSON-Validator-3.05.tar.gz
Normal file
3
JSON-Validator-3.05.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:aca3bdabad1df74b5b18c9772d530835dda645050fe6619a0b41b925c7951222
|
||||||
|
size 60008
|
||||||
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#description: |-
|
||||||
|
# override description from CPAN
|
||||||
|
#summary: override summary from CPAN
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_build: |-
|
||||||
|
# rm unused.files
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 1 06:09:45 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- updated to 3.05
|
||||||
|
see /usr/share/doc/packages/perl-JSON-Validator/Changes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 30 17:25:40 UTC 2019 - Christian Dywan <cdywan@suse.de>
|
Wed Jan 30 17:25:40 UTC 2019 - Christian Dywan <cdywan@suse.de>
|
||||||
|
|
||||||
|
|||||||
@@ -17,38 +17,29 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-JSON-Validator
|
Name: perl-JSON-Validator
|
||||||
Version: 2.19
|
Version: 3.05
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name JSON-Validator
|
%define cpan_name JSON-Validator
|
||||||
Summary: Validate data against a JSON schema
|
Summary: Validate data against a JSON schema
|
||||||
License: Artistic-2.0
|
License: Artistic-2.0
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: https://metacpan.org/release/%{cpan_name}
|
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
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Mojolicious) >= 7.28
|
BuildRequires: perl(Mojolicious) >= 7.28
|
||||||
BuildRequires: perl(YAML::XS)
|
|
||||||
BuildRequires: perl(Cpanel::JSON::XS)
|
|
||||||
BuildRequires: perl(Test::More) >= 1.30
|
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
|
Requires: perl(Mojolicious) >= 7.28
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JSON::Validator is a class for validating data against JSON schemas. You
|
JSON::Validator is a data structure validation library based around at
|
||||||
might want to use this instead of JSON::Schema if you need to validate data
|
https://json-schema.org/. This module can be used directly with a JSON
|
||||||
against at https://github.com/json-schema/json-schema/tree/master/draft-04
|
schema or you can use the elegant DSL schema-builder JSON::Validator::joi
|
||||||
of the specification.
|
to define the schema programmatically.
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
@@ -58,8 +49,6 @@ perl Makefile.PL INSTALLDIRS=vendor
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# FIXME: Failed test 'http://127.0.0.1:44261/relative-to-the-root.json'
|
|
||||||
rm t/id-keyword-draft4.t
|
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -69,6 +58,6 @@ make test
|
|||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes run-all-tests.sh
|
%doc Changes README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user