!17 [sync] PR-15: move json-c

From: @openeuler-sync-bot 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
This commit is contained in:
openeuler-ci-bot 2022-04-07 07:10:17 +00:00 committed by Gitee
commit 98a59c7231
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -6,14 +6,14 @@
Name: json-c
Version: 0.15
Release: 1
Release: 2
Summary: JSON implementation in C
License: MIT
URL: https://github.com/%{name}/%{name}
Source0: %{url}/archive/%{name}-%{version}-%{reldate}.tar.gz
BuildRequires: cmake gcc ninja-build json-c
BuildRequires: cmake gcc ninja-build
%description
JSON-C implements a reference counting object model that allows you
@ -73,8 +73,6 @@ doxygen -s -u doc/Doxyfile.in
#%cmake_install
DESTDIR="%{buildroot}" %__cmake --install "%{_vpath_builddir}"
cp -a %{_libdir}/libjson-c.so.4 $RPM_BUILD_ROOT%{_libdir}
cp -a %{_libdir}/libjson-c.so.4.0.0 $RPM_BUILD_ROOT%{_libdir}
mkdir -p %{buildroot}%{_pkgdocdir}
hardlink -cfv %{buildroot}%{_pkgdocdir}
@ -84,7 +82,6 @@ hardlink -cfv %{buildroot}%{_pkgdocdir}
%files
%license AUTHORS COPYING
%{_libdir}/lib%{name}.so.%{so_ver}*
%{_libdir}/libjson-c.so.4*
%files devel
%{_includedir}/%{name}/
@ -96,6 +93,9 @@ hardlink -cfv %{buildroot}%{_pkgdocdir}
%doc %{_pkgdocdir}
%changelog
* Fri Mar 25 2022 wuchaochao <cyanrose@yeah.net> - 0.15-2
- move json-c
* Tue Sep 14 2021 hanhui <hanhui15@huawei.com> - 0.15-1
- update to 0.15