diff options
author | Jan Palus | 2023-11-14 22:18:56 (GMT) |
---|---|---|
committer | Jan Palus | 2023-11-14 22:18:56 (GMT) |
commit | b5a72a95b8874a8672a3ab924e45e3f2c81d900c (patch) | |
tree | 0a8830b524b423df5c6d3524855d06fe0f58bc6d | |
parent | 8ffc06988de8b60335312bbc2afbcc97f6617662 (diff) | |
download | c-ares-b5a72a95b8874a8672a3ab924e45e3f2c81d900c.zip c-ares-b5a72a95b8874a8672a3ab924e45e3f2c81d900c.tar.gz |
add static_libs bcondauto/th/c-ares-1.22.0-1
-rw-r--r-- | c-ares.spec | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c-ares.spec b/c-ares.spec index be4ea57..dbf5ab0 100644 --- a/c-ares.spec +++ b/c-ares.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_without static_libs # static library + Summary: A library that performs asynchronous DNS operations Summary(pl.UTF-8): Biblioteka do wykonywania asynchronicznych zapytaĆ DNS Name: c-ares @@ -15,6 +19,7 @@ BuildRequires: automake >= 1:1.9.6 # for tests #BuildRequires: libstdc++-devel >= 6:4.7 BuildRequires: libtool >= 2:2 +BuildRequires: rpmbuild(macros) >= 1.527 BuildRequires: sed >= 4.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -75,6 +80,7 @@ cd test cd .. %configure \ --disable-silent-rules \ + %{__enable_disable static_libs static} \ --disable-tests \ --enable-optimize="%{rpmcflags}" \ --enable-shared @@ -115,6 +121,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/ares_*.3* %{_pkgconfigdir}/libcares.pc +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libcares.a +%endif |