2014-07-26 11:41:43 +02:00
|
|
|
#
|
2014-12-12 14:26:32 +01:00
|
|
|
# spec file for package jsoncpp
|
2014-07-26 11:41:43 +02:00
|
|
|
#
|
2015-02-06 19:24:02 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-07-26 11:41:43 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
|
2014-07-26 11:41:43 +02:00
|
|
|
Name: jsoncpp
|
2015-03-03 22:53:30 +01:00
|
|
|
Version: 1.5.0
|
2014-07-26 11:41:43 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: C++ library that allows manipulating with JSON
|
2014-12-12 14:26:32 +01:00
|
|
|
License: MIT
|
2014-07-26 11:41:43 +02:00
|
|
|
Group: Devel/Libraries/C and C++
|
2014-12-12 14:26:32 +01:00
|
|
|
Url: https://github.com/open-source-parsers/jsoncpp
|
|
|
|
Source0: https://github.com/open-source-parsers/%{name}/archive/%{version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
2014-07-26 11:41:43 +02:00
|
|
|
BuildRequires: doxygen
|
2015-02-06 19:24:02 +01:00
|
|
|
BuildRequires: fdupes
|
2014-07-26 11:41:43 +02:00
|
|
|
BuildRequires: gcc-c++
|
2014-12-12 14:26:32 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-07-26 11:41:43 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
JSON is a lightweight data-interchange format. It can represent numbers,
|
|
|
|
strings, ordered sequences of values, and collections of name/value pairs.
|
|
|
|
|
|
|
|
JsonCpp is a C++ library that allows manipulating JSON values, including
|
|
|
|
serialization and deserialization to and from strings. It can also preserve
|
|
|
|
existing comment in unserialization/serialization steps, making it a convenient
|
|
|
|
format to store user input files.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Languages/C and C++
|
2014-12-12 14:26:32 +01:00
|
|
|
Requires: lib%{name}1 = %{version}
|
2014-07-26 11:41:43 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
JSON is a lightweight data-interchange format. It can represent numbers,
|
|
|
|
strings, ordered sequences of values, and collections of name/value pairs.
|
|
|
|
|
|
|
|
JsonCpp is a C++ library that allows manipulating JSON values, including
|
|
|
|
serialization and deserialization to and from strings. It can also preserve
|
|
|
|
existing comment in unserialization/serialization steps, making it a convenient
|
|
|
|
format to store user input files.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
2014-12-20 18:33:10 +01:00
|
|
|
Group: Documentation
|
2015-02-24 15:21:25 +01:00
|
|
|
BuildArch: noarch
|
2014-07-26 11:41:43 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
JSON is a lightweight data-interchange format. It can represent numbers,
|
|
|
|
strings, ordered sequences of values, and collections of name/value pairs.
|
|
|
|
|
|
|
|
JsonCpp is a C++ library that allows manipulating JSON values, including
|
|
|
|
serialization and deserialization to and from strings. It can also preserve
|
|
|
|
existing comment in unserialization/serialization steps, making it a convenient
|
|
|
|
format to store user input files.
|
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
%package -n lib%{name}1
|
2014-07-26 11:41:43 +02:00
|
|
|
Summary: Shared library for %{name}
|
2014-12-20 18:33:10 +01:00
|
|
|
Group: System/Libraries
|
2014-07-26 11:41:43 +02:00
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
%description -n lib%{name}1
|
2014-07-26 11:41:43 +02:00
|
|
|
JSON is a lightweight data-interchange format. It can represent numbers,
|
|
|
|
strings, ordered sequences of values, and collections of name/value pairs.
|
|
|
|
|
|
|
|
JsonCpp is a C++ library that allows manipulating JSON values, including
|
|
|
|
serialization and deserialization to and from strings. It can also preserve
|
|
|
|
existing comment in unserialization/serialization steps, making it a convenient
|
|
|
|
format to store user input files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2015-02-06 19:24:02 +01:00
|
|
|
python doxybuild.py --doxygen=%{_bindir}/doxygen --open --with-dot
|
2014-07-26 11:41:43 +02:00
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
# path needs to be exported otherwise unit tests will fail
|
2015-02-06 19:24:02 +01:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/lib_json
|
2014-12-12 14:26:32 +01:00
|
|
|
%cmake -DJSONCPP_LIB_BUILD_SHARED=ON
|
2014-07-26 11:41:43 +02:00
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
make %{?_smp_mflags}
|
2014-07-26 11:41:43 +02:00
|
|
|
|
|
|
|
%install
|
2014-12-12 14:26:32 +01:00
|
|
|
%cmake_install
|
2015-02-18 08:22:30 +01:00
|
|
|
%fdupes -s dist/doxygen
|
|
|
|
rm -rf %{buildroot}%{_libdir}/lib%{name}.a
|
2014-07-26 11:41:43 +02:00
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
%post -n lib%{name}1 -p /sbin/ldconfig
|
2014-07-26 11:41:43 +02:00
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
%postun -n lib%{name}1 -p /sbin/ldconfig
|
2014-07-26 11:41:43 +02:00
|
|
|
|
2014-12-12 14:26:32 +01:00
|
|
|
%files -n lib%{name}1
|
2014-07-26 11:41:43 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
2014-12-12 14:26:32 +01:00
|
|
|
%{_libdir}/lib%{name}.so.*
|
2014-07-26 11:41:43 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS LICENSE NEWS.txt README.md
|
2014-12-12 14:26:32 +01:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2014-07-26 11:41:43 +02:00
|
|
|
%{_libdir}/lib%{name}.so
|
2014-12-12 14:26:32 +01:00
|
|
|
%{_includedir}/json/
|
2014-07-26 11:41:43 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc dist/doxygen/jsoncpp*
|
|
|
|
|
|
|
|
%changelog
|