SHA256
1
0
forked from pool/valijson

Accepting request 1176662 from home:ojkastl_buildservice:Branch_devel_tools

new package valijson: Header-only C++ library for JSON Schema validation, with support for many popular parsers (required by Falco and Sysdig)

OBS-URL: https://build.opensuse.org/request/show/1176662
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/valijson?expand=0&rev=1
This commit is contained in:
Jan Engelhardt 2024-05-24 15:01:37 +00:00 committed by Git OBS Bridge
commit 9efd00d5d0
8 changed files with 136 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

18
_service Normal file
View File

@ -0,0 +1,18 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/tristanpenman/valijson/</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v1.0.2</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/tristanpenman/valijson/</param>
<param name="changesrevision">0b4771e273a065d437814baf426bcfcafec0f434</param></service></servicedata>

3
valijson-1.0.2.obscpio Normal file
View File

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

18
valijson.changes Normal file
View File

@ -0,0 +1,18 @@
-------------------------------------------------------------------
Thu May 23 19:58:49 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.0.2:
* Change isString to IsString
* Fix isString() method in yaml_cpp_adapter
* Bump minimum cmake version to 3.5.1
* Use string instead string_view
* Process each invalid example separately in picojson_format_test
* Make subschema constraint validation clearer
* Improve PicoJSON format test example
* Add picojson example
* Tweak behaviour of format constraint validation
-------------------------------------------------------------------
Thu May 23 19:57:14 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package valijson: Header-only C++ library for JSON Schema validation, with support for many popular parsers

4
valijson.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: valijson
version: 1.0.2
mtime: 1702598110
commit: 0b4771e273a065d437814baf426bcfcafec0f434

65
valijson.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package valijson
#
# Copyright (c) 2024 SUSE LLC
#
# 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: valijson
Version: 1.0.2
Release: 0
Summary: Header-only C++ library for JSON Schema validation
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://github.com/tristanpenman/valijson
Source: https://github.com/tristanpenman/valijson/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
%description
Valijson is a header-only JSON Schema validation library for C++11.
Valijson provides a simple validation API that allows you to load JSON Schemas,
and validate documents loaded by one of several supported parser libraries.
%package devel
Summary: Development headers for valijson
Group: Development/Libraries/C and C++
%description devel
This package provides development headers for valijson, a JSON Schema
validation library for C++11.
%prep
%autosetup -p1
%build
%cmake
%install
%cmake_install
%files devel
%dir %{_includedir}/valijson/
%{_includedir}/valijson/*
%dir %{_includedir}/compat/
%{_includedir}/compat/optional.hpp
%dir %{_libdir}/cmake/valijson/
%{_libdir}/cmake/valijson/valijsonConfig.cmake
%license LICENSE
%doc README.md
%changelog