Explicitly disable static libraries on build (rhbz#1883926)

This commit is contained in:
Lukas Zaoral 2020-09-30 15:25:22 +02:00 committed by Björn Esser
parent d67d9ffd04
commit 7bae03b468
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -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 <besser82@fedoraproject.org> - 1.9.4-2
- Explicitly disable static libraries on build (rhbz#1883926)
* Sun Sep 27 16:25:23 CEST 2020 Björn Esser <besser82@fedoraproject.org> - 1.9.4-1
- Update to version 1.9.4 (rhbz#1882874)
- Package all files generated by doxygen