SHA256
8
0
forked from pool/jsoncpp

Accepting request 773600 from home:Guillaume_G:branches:devel:libraries:c_c++

- Fix build on non-x86 architectures - boo#1163385
  * jsoncpp-f11611c8785082ead760494cba06196f14a06dcb.patch
- From 1.9.1 to 1.9.2, features.h has been renamed json_features.h
  so, add a symlink for compatibility - boo#1163385

OBS-URL: https://build.opensuse.org/request/show/773600
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jsoncpp?expand=0&rev=55
This commit is contained in:
2020-02-12 08:41:15 +00:00
committed by Git OBS Bridge
parent 886ebab7cf
commit 5dd20fae7f
3 changed files with 61 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/open-source-parsers/jsoncpp
Source0: https://github.com/open-source-parsers/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM - https://github.com/open-source-parsers/jsoncpp/commit/f11611c8785082ead760494cba06196f14a06dcb
Patch1: jsoncpp-f11611c8785082ead760494cba06196f14a06dcb.patch
BuildRequires: gcc-c++
BuildRequires: meson >= 0.50.0
BuildRequires: pkgconfig
@@ -68,6 +70,7 @@ format to store user input files.
%prep
%setup -q
%patch1 -p1
%build
%meson \
@@ -75,6 +78,11 @@ format to store user input files.
%install
%meson_install
pushd %{buildroot}%{_includedir}/json/
# From 1.9.1 to 1.9.2, features.h has been renamed json_features.h
# so, create a symlink for compatibility
ln -s json_features.h features.h
popd
%check
%meson_test