From 0507ae604bcf6b9202cc4e6533c0023ec0f5a32c Mon Sep 17 00:00:00 2001 From: kerongw Date: Sat, 22 Oct 2022 03:22:02 +0000 Subject: [PATCH] disable static library by default Signed-off-by: kerongw (cherry picked from commit 76d39eff7a501ca248bbaf90dc82c9794365c413) --- libXv.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libXv.spec b/libXv.spec index d919073..c32f4ce 100644 --- a/libXv.spec +++ b/libXv.spec @@ -1,6 +1,8 @@ +%bcond_without static + Name: libXv Version: 1.0.11 -Release: 11 +Release: 12 Summary: library for the X Video extension to the X Window System License: MIT URL: https://www.x.org @@ -27,7 +29,10 @@ The development package for libXv. %build autoreconf -v --install --force -%configure +%configure \ +%if %{with static} + --disable-static +%endif %make_build %install @@ -45,7 +50,9 @@ autoreconf -v --install --force %files devel %defattr(-,root,root) %{_libdir}/libXv.so +%if %{without static} %{_libdir}/libXv.a +%endif %{_libdir}/pkgconfig/xv.pc %{_includedir}/X11/extensions/Xvlib.h @@ -55,6 +62,9 @@ autoreconf -v --install --force %doc man/xv-library-v2.2.txt %changelog +* Sat Oct 22 2022 wangkerong - 1.0.11-12 +- disable static library by default + * Sat Oct 19 2019 openEuler Buildteam - 1.0.11-11 - Type:bugfix - Id:NA