From 7bae03b46815137b5926017d533be1fc6c869208 Mon Sep 17 00:00:00 2001 From: Lukas Zaoral Date: Sep 30 2020 16:59:07 +0000 Subject: Explicitly disable static libraries on build (rhbz#1883926) --- diff --git a/jsoncpp.spec b/jsoncpp.spec index e920dfb..c499ab5 100644 --- a/jsoncpp.spec +++ b/jsoncpp.spec @@ -11,7 +11,7 @@ Name: jsoncpp Version: 1.9.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: JSON library implemented in C++ License: Public Domain or MIT @@ -63,7 +63,8 @@ sed -i -e 's!^DOT_FONTNAME.*=.*!DOT_FONTNAME =!g' doc/doxyfile.in %build %cmake \ - -DBUILD_SHARED_LIBS:BOOL=ON \ + -DBUILD_STATIC_LIBS:BOOL=OFF \ + -DBUILD_OBJECT_LIBS:BOOL=OFF \ -DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON \ -DJSONCPP_WITH_EXAMPLE:BOOL=OFF \ -DJSONCPP_WITH_PKGCONFIG_SUPPORT:BOOL=ON \ @@ -85,10 +86,6 @@ rm -f version %install %cmake_install -# We do not want to package static archives nor object files. -rm -f %{buildroot}%{_libdir}/*.a -rm -fr %{buildroot}%{_libdir}/objects-*/ - mkdir -p %{buildroot}%{_docdir}/%{name} install -pm 0644 README.md %{buildroot}%{_docdir}/%{name} @@ -136,6 +133,9 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name} %changelog +* Wed Sep 30 18:54:18 CEST 2020 Björn Esser - 1.9.4-2 +- Explicitly disable static libraries on build (rhbz#1883926) + * Sun Sep 27 16:25:23 CEST 2020 Björn Esser - 1.9.4-1 - Update to version 1.9.4 (rhbz#1882874) - Package all files generated by doxygen