disable static library by default

Signed-off-by: kerongw <wangkerong@h-partners.com>
(cherry picked from commit 68c42cd64abab4740f57a74e12e083c0cc8cdb92)
This commit is contained in:
kerongw 2022-10-22 02:28:55 +00:00 committed by openeuler-sync-bot
parent 1d1441b599
commit be36c3e6fb

View File

@ -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 <wangkerong@h-partners.com> - 0.8-18
- disable static library by default
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8-17
- Type:bugfix
- Id:NA