!4 [sync] PR-3: 【轻量级 PR】:disable static library by default

From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-10-25 03:10:33 +00:00 committed by Gitee
commit ccaf4a054e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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