From 6d6eb12da6c7cbc16c934fc3eefd7b18880e17c0 Mon Sep 17 00:00:00 2001 From: kerongw Date: Sat, 22 Oct 2022 02:50:47 +0000 Subject: [PATCH] disable static library by default Signed-off-by: kerongw (cherry picked from commit b27980dffbbdaa21b07f4eb6c60d42e591103caa) --- libXfixes.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libXfixes.spec b/libXfixes.spec index 46468a3..39c46b8 100644 --- a/libXfixes.spec +++ b/libXfixes.spec @@ -1,6 +1,8 @@ +%bcond_without static + Name: libXfixes Version: 6.0.0 -Release: 1 +Release: 2 Summary: X11 miscellaneous "fixes" extension library License: MIT URL: https://xorg.freedesktop.org/ @@ -27,7 +29,10 @@ developing applications that use %{name}. %autosetup -n %{name}-%{version} -p1 %build -%configure +%configure \ +%if %{with static} + --disable-static +%endif %make_build %install @@ -46,7 +51,9 @@ developing applications that use %{name}. %defattr(-,root,root) %{_includedir}/X11/extensions/Xfixes.h %{_libdir}/pkgconfig/*.pc +%if %{without static} %{_libdir}/*.a +%endif %{_libdir}/libXfixes.so %files help @@ -54,6 +61,9 @@ developing applications that use %{name}. %{_mandir}/man3/Xfixes.3.gz %changelog +* Sat Oct 22 2022 wangkerong - 6.0.0-2 +- disable static library by default + * Wed Dec 1 2021 dongyuzhen - 6.0.0-1 - update to 6.0.0