Projects
home:pandora:RobinOS23
json-c
_service:download_src_package:json-c.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:json-c.spec of Package json-c
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} %define anolis_release 2 %global reldate 20220414 %global so_ver 5 Name: json-c Version: 0.16 Release: %{anolis_release}%{?dist} Summary: JSON implementation in C License: MIT URL: https://github.com/%{name}/%{name} Source0: %{url}/archive/%{name}-%{version}-%{reldate}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: ninja-build %ifarch %{valgrind_arches} BuildRequires: valgrind %endif %description JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. It aims to conform to RFC 7159. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Reference manual for json-c BuildRequires: doxygen BuildRequires: hardlink %description doc This package contains the reference manual for %{name}. %prep %autosetup -n %{name}-%{name}-%{version}-%{reldate} -p 1 # Remove pre-built html documentation. rm -fr doc/html # Update Doxyfile. doxygen -s -u doc/Doxyfile.in %build %cmake \ -DBUILD_STATIC_LIBS:BOOL=OFF \ -DCMAKE_BUILD_TYPE:STRING=RELEASE \ -DCMAKE_C_FLAGS_RELEASE:STRING="" \ -DDISABLE_BSYMBOLIC:BOOL=OFF \ -DDISABLE_WERROR:BOOL=ON \ -DENABLE_RDRAND:BOOL=ON \ -DENABLE_THREADING:BOOL=ON \ -G Ninja %cmake_build --target all doc %install %cmake_install # Documentation mkdir -p %{buildroot}%{_pkgdocdir} cp -a %{__cmake_builddir}/doc/html ChangeLog README README.* \ %{buildroot}%{_pkgdocdir} hardlink -cfv %{buildroot}%{_pkgdocdir} %generate_compatibility_deps %check export USE_VALGRIND=0 %ctest %ifarch %{valgrind_arches} export USE_VALGRIND=1 %ctest %endif unset USE_VALGRIND %ldconfig_scriptlets %files %dir %{abidir} %license AUTHORS %license COPYING %{_libdir}/lib%{name}.so.%{so_ver}* %{abidir}/lib%{name}.dump %files devel %doc %dir %{_pkgdocdir} %doc %{_pkgdocdir}/ChangeLog %doc %{_pkgdocdir}/README* %{_includedir}/%{name} %{_libdir}/cmake/%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %files doc %license %{_datadir}/licenses/%{name}* %doc %{_pkgdocdir} %changelog * Tue Oct 25 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 0.16-2 - optimise spec file * Mon Sep 26 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 0.16-1 - update to 0.16 * Tue Mar 08 2022 Jacob Wang <yungao.jacob@linux.alibaba.com> - 0.15-1 - Initial version from upstream 0.15
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2