!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:
commit
ccaf4a054e
@ -1,6 +1,8 @@
|
|||||||
|
%bcond_without static
|
||||||
|
|
||||||
Name: libasyncns
|
Name: libasyncns
|
||||||
Version: 0.8
|
Version: 0.8
|
||||||
Release: 17
|
Release: 18
|
||||||
Summary: A C library for Linux/Unix for executing name service queries
|
Summary: A C library for Linux/Unix for executing name service queries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Url: http://0pointer.de/lennart/projects/libasyncns/
|
Url: http://0pointer.de/lennart/projects/libasyncns/
|
||||||
@ -27,7 +29,10 @@ applications that want to make use of %{name}.
|
|||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure \
|
||||||
|
%if %{with static}
|
||||||
|
--disable-static
|
||||||
|
%endif
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -46,7 +51,9 @@ applications that want to make use of %{name}.
|
|||||||
%{_includedir}/asyncns.h
|
%{_includedir}/asyncns.h
|
||||||
%{_libdir}/pkgconfig/libasyncns.pc
|
%{_libdir}/pkgconfig/libasyncns.pc
|
||||||
%{_libdir}/libasyncns.so
|
%{_libdir}/libasyncns.so
|
||||||
|
%if %{without static}
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
@ -54,6 +61,9 @@ applications that want to make use of %{name}.
|
|||||||
%{_docdir}/libasyncns/*
|
%{_docdir}/libasyncns/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8-17
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user