From 37a9ee0f51849e6331a0664b58183a80738c54ff Mon Sep 17 00:00:00 2001 From: kerongw Date: Sat, 22 Oct 2022 02:54:29 +0000 Subject: [PATCH] disable static library by default Signed-off-by: kerongw (cherry picked from commit 6ef311fab9b9780e9fd1b0061792e584500e3e0b) --- libXinerama.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libXinerama.spec b/libXinerama.spec index 2e29a9b..39aef7d 100644 --- a/libXinerama.spec +++ b/libXinerama.spec @@ -1,6 +1,8 @@ +%bcond_without static + Name: libXinerama Version: 1.1.4 -Release: 5 +Release: 6 Summary: Xinerama extension to the X11 Protocol License: MIT URL: https://xorg.freedesktop.org/ @@ -30,7 +32,10 @@ developing applications that use %{name}. %build autoreconf -ivf -%configure +%configure \ +%if %{with static} + --disable-static +%endif %make_build %install @@ -47,7 +52,9 @@ autoreconf -ivf %defattr(-,root,root) %{_includedir}/X11/extensions/*.h %{_libdir}/pkgconfig/xinerama.pc +%if %{without static} %{_libdir}/*.a +%endif %{_libdir}/libXinerama.so %exclude %{_libdir}/*.la @@ -56,6 +63,9 @@ autoreconf -ivf %{_mandir}/man3/* %changelog +* Sat Oct 22 2022 wangkerong - 1.1.4-6 +- disable static library by default + * Sat Oct 19 2019 openEuler Buildteam - 1.1.4-5 - Type:bugfix - Id:NA