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