File project.diff of Package json-c
--- json-c.spec 2020-10-25 10:40:23.494320598 +0100
+++ json-c.spec 2020-10-25 10:43:26.391717374 +0100
@@ -67,6 +67,22 @@
This package includes header files and scripts needed for developers
using the json-c library
+%package -n %{libname}-devel-static
+Summary: Development headers and libraries for json-c
+Group: Development/Libraries/C and C++
+Requires: %{libname}-devel = %{version}
+Provides: %{oldlibname}-devel-static = %{version}
+Obsoletes: %{oldlibname}-devel-static < %{version}
+
+%description -n %{libname}-devel-static
+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.
+
+This package includes the static library needed for developers
+using the json-c library
+
%package -n %{libname}-doc
Summary: Documentation files
Group: Documentation/Other
@@ -97,6 +113,7 @@
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DENABLE_THREADING=ON \
+ -DBUILD_STATIC_LIBS=on \
-DENABLE_RDRAND=ON
%check
@@ -128,6 +145,9 @@
%{_libdir}/cmake/json-c/json-c-targets-none.cmake
%{_libdir}/cmake/json-c/json-c-targets.cmake
+%files -n %{libname}-devel-static
+%{_libdir}/%{libname}.a
+
%files -n %{libname}-doc
%license COPYING
%doc AUTHORS ChangeLog README README.html