Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37766845
en ru br
ALT Linux repos
S:1.8.4-alt6

Group :: System/Libraries
RPM: jsoncpp19

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 


%define sover 19
Name: jsoncpp%sover
Version: 1.8.4
Release: alt6
%define rname jsoncpp
%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_WITH_CMAKE_PACKAGE=ON \
 -DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \
 -DJSONCPP_WITH_TESTS=OFF \
 -DBUILD_STATIC_LIBS=OFF \
 -DBUILD_SHARED_LIBS=ON \
 #

%install
%Kinstall
# cleanup
rm -rf %buildroot/%_includedir
rm -rf %buildroot/%_libdir/cmake
rm -rf %buildroot/%_pkgconfigdir
rm -rf %buildroot/%_libdir/lib*.so

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

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

#%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