Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37510223
en ru br
ALT Linux repos
S:1.9.4-alt2

Group :: System/Libraries
RPM: jsoncpp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 


Name: jsoncpp
Version: 1.9.4
Release: alt1
%define rname jsoncpp
%define sover 24
%define libname lib%rname%sover

Group: System/Libraries
Summary: JSON library implemented in C++
Url: https://github.com/open-source-parsers/jsoncpp/
License: MIT

Source: %rname-%version.tar

# Automatically added by buildreq on Thu Jun 11 2015 (-bi)

# optimized out: cmake-modules elfutils fontconfig fonts-bitmap-misc libstdc++-devel libwayland-client libwayland-server pkg-config python-base python-modules python3 python3-base ruby ruby-stdlibs
#BuildRequires: cmake doxygen fonts-bitmap-terminus fonts-otf-stix fonts-ttf-dejavu fonts-ttf-google-droid-kufi fonts-ttf-google-droid-sans fonts-ttf-google-droid-serif fonts-type1-urw gcc-c++ graphviz libdb4-devel python-module-google python-modules-compiler rpm-build-python3 rpm-build-ruby
BuildRequires: cmake doxygen gcc-c++ graphviz kde-common-devel
BuildRequires: rpm-build-python3

%description
%name is an implementation of a JSON (http://json.org) reader and writer in
C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It is easy for humans to read and write. It is easy for machines to parse and
generate.

%package -n %libname
Summary: JSON library implemented in C++
Group: System/Libraries
%description -n %libname
%name is an implementation of a JSON (http://json.org) reader and writer in
C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It is easy for humans to read and write. It is easy for machines to parse and
generate.

%package devel
Summary: Development headers and library for %name
Group: Development/C++
Conflicts: libjson-devel < 0.12
%description devel
This package contains the development headers and library for %name.

%package doc
Summary: Documentation for %name
Group: Documentation
BuildArch: noarch
%description doc
This package contains the documentation for %name

%prep
%setup -n %rname-%version

%build
%Kbuild \
 -DJSONCPP_VERSION="%version" \
 -DJSONCPP_WITH_CMAKE_PACKAGE=ON \
 -DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \
 -DJSONCPP_WITH_TESTS=OFF \
 -DBUILD_STATIC_LIBS=OFF \
 -DBUILD_SHARED_LIBS=ON \
 #
echo "%version" >version
# build docs
%__python3 doxybuild.py --with-dot --doxygen %_bindir/doxygen

%install
%Kinstall

%files -n %libname
%doc AUTHORS LICENSE
%_libdir/lib%rname.so.%sover
%_libdir/lib%rname.so.*

%files devel
%doc dist/doxygen/jsoncpp-api-html-*
%_libdir/lib%rname.so
%_includedir/json/
%_libdir/pkgconfig/%rname.pc
%_libdir/cmake/%rname/

#%files doc

#%_docdir/%name/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin