From be36c3e6fbe06568c354168c26f6452741284f64 Mon Sep 17 00:00:00 2001 From: kerongw Date: Sat, 22 Oct 2022 02:28:55 +0000 Subject: [PATCH] disable static library by default Signed-off-by: kerongw (cherry picked from commit 68c42cd64abab4740f57a74e12e083c0cc8cdb92) --- libasyncns.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libasyncns.spec b/libasyncns.spec index b6b7d0f..e80e368 100644 --- a/libasyncns.spec +++ b/libasyncns.spec @@ -1,6 +1,8 @@ +%bcond_without static + Name: libasyncns Version: 0.8 -Release: 17 +Release: 18 Summary: A C library for Linux/Unix for executing name service queries License: LGPLv2+ Url: http://0pointer.de/lennart/projects/libasyncns/ @@ -27,7 +29,10 @@ applications that want to make use of %{name}. %autosetup -n %{name}-%{version} -p1 %build -%configure +%configure \ +%if %{with static} + --disable-static +%endif %make_build %install @@ -46,7 +51,9 @@ applications that want to make use of %{name}. %{_includedir}/asyncns.h %{_libdir}/pkgconfig/libasyncns.pc %{_libdir}/libasyncns.so +%if %{without static} %{_libdir}/*.a +%endif %files help @@ -54,6 +61,9 @@ applications that want to make use of %{name}. %{_docdir}/libasyncns/* %changelog +* Sat Oct 22 2022 wangkerong - 0.8-18 +- disable static library by default + * Sat Oct 19 2019 openEuler Buildteam - 0.8-17 - Type:bugfix - Id:NA