Accepting request 448601 from devel:libraries:c_c++

- Update to version 1.8.0:
  * Build related changes, minimal required cmake is 3.1
- Execute tests in check section

OBS-URL: https://build.opensuse.org/request/show/448601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jsoncpp?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2017-01-09 10:51:03 +00:00 committed by Git OBS Bridge
commit 119fef659b
4 changed files with 21 additions and 10 deletions

View File

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

3
jsoncpp-1.8.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 2 15:42:49 UTC 2017 - mpluskal@suse.com
- Update to version 1.8.0:
* Build related changes, minimal required cmake is 3.1
- Execute tests in check section
-------------------------------------------------------------------
Fri Oct 14 06:59:15 UTC 2016 - olaf@aepfle.de

View File

@ -1,7 +1,7 @@
#
# spec file for package jsoncpp
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -18,14 +18,14 @@
%define sover 11
Name: jsoncpp
Version: 1.7.7
Version: 1.8.0
Release: 0
Summary: C++ library that allows manipulating with JSON
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
BuildRequires: cmake >= 3.0.2
BuildRequires: cmake >= 3.1
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -71,14 +71,18 @@ format to store user input files.
%build
%cmake \
-DJSONCPP_WITH_CMAKE_PACKAGE=ON
# path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/lib_json
-DBUILD_STATIC_LIBS=OFF \
-DJSONCPP_WITH_CMAKE_PACKAGE=ON \
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
%make_jobs
%install
%cmake_install
rm -rf %{buildroot}%{_libdir}/lib%{name}.a
%check
# path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/lib_json
./build/src/test_lib_json/jsoncpp_test
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig