SHA256
8
0
forked from pool/jsoncpp

Accepting request 284239 from home:pluskalm:branches:devel:libraries:c_c++

- Patch jsoncpp-1.0.0-lib_suffix.patch is longer necessary
- Update to version 1.4:
  * Updated the type system's behavior, in order to better support 
    backwards compatibility with code that was written before 
    64-bit integer support was introduced.

OBS-URL: https://build.opensuse.org/request/show/284239
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jsoncpp?expand=0&rev=6
This commit is contained in:
2015-02-06 18:24:02 +00:00
committed by Git OBS Bridge
parent e9ca618d0e
commit 327ec9a73b
5 changed files with 17 additions and 70 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package jsoncpp
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -17,22 +17,20 @@
Name: jsoncpp
Version: 1.0.0
Version: 1.4.0
Release: 0
Summary: C++ library that allows manipulating with JSON
License: MIT
Group: Devel/Libraries/C and C++
Url: https://github.com/open-source-parsers/jsoncpp
Source0: https://github.com/open-source-parsers/%{name}/archive/%{version}.tar.gz
Patch0: jsoncpp-1.0.0-lib_suffix.patch
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# On i386, jsoncpp fails it's own unittests
ExcludeArch: i586
%description
JSON is a lightweight data-interchange format. It can represent numbers,
@@ -85,19 +83,19 @@ format to store user input files.
%prep
%setup -q
%patch0 -p1
%build
python doxybuild.py --doxygen=%{_bindir}/doxygen
python doxybuild.py --doxygen=%{_bindir}/doxygen --open --with-dot
# path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/lib_json
%cmake -DJSONCPP_LIB_BUILD_SHARED=ON
make %{?_smp_mflags}
%install
%cmake_install
%fdupes -s %{buildroot}
%post -n lib%{name}1 -p /sbin/ldconfig