8
0

Accepting request 670329 from home:cdywan:branches:devel:languages:perl:CPAN-J

- Add missing BuildRequires for tests
- Skip failing id-keyword-draft4.t

OBS-URL: https://build.opensuse.org/request/show/670329
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Validator?expand=0&rev=1
This commit is contained in:
Stephan Kulow
2019-01-31 15:12:26 +00:00
committed by Git OBS Bridge
commit 9d2fd0a389
5 changed files with 106 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e36be90389fa3ea1428871a53728119b13d6a5af0d0b316844c15c3d091b4258
size 61829

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed Jan 30 17:25:40 UTC 2019 - Christian Dywan <cdywan@suse.de>
- Add missing BuildRequires for tests
- Skip failing id-keyword-draft4.t

74
perl-JSON-Validator.spec Normal file
View File

@@ -0,0 +1,74 @@
#
# spec file for package perl-JSON-Validator
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-JSON-Validator
Version: 2.19
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
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.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
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
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes run-all-tests.sh
%changelog