From 9d2fd0a3899e49b4ef8c03f89ac280a1b8baa54347b4d177b45574ebe4cdb8a7 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 31 Jan 2019 15:12:26 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + JSON-Validator-2.19.tar.gz | 3 ++ perl-JSON-Validator.changes | 5 +++ perl-JSON-Validator.spec | 74 +++++++++++++++++++++++++++++++++++++ 5 files changed, 106 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 JSON-Validator-2.19.tar.gz create mode 100644 perl-JSON-Validator.changes create mode 100644 perl-JSON-Validator.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/JSON-Validator-2.19.tar.gz b/JSON-Validator-2.19.tar.gz new file mode 100644 index 0000000..80be6fc --- /dev/null +++ b/JSON-Validator-2.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e36be90389fa3ea1428871a53728119b13d6a5af0d0b316844c15c3d091b4258 +size 61829 diff --git a/perl-JSON-Validator.changes b/perl-JSON-Validator.changes new file mode 100644 index 0000000..152ed19 --- /dev/null +++ b/perl-JSON-Validator.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Jan 30 17:25:40 UTC 2019 - Christian Dywan + +- Add missing BuildRequires for tests +- Skip failing id-keyword-draft4.t diff --git a/perl-JSON-Validator.spec b/perl-JSON-Validator.spec new file mode 100644 index 0000000..54eea92 --- /dev/null +++ b/perl-JSON-Validator.spec @@ -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