]> git.pld-linux.org Git - packages/c-ares.git/blobdiff - c-ares.spec
add static_libs bcond
[packages/c-ares.git] / c-ares.spec
index 1ffd8c23b1be933b6fc8eb1d13e6443d4318fad8..dbf5ab01155b0b8c61ac77642a557f867bbefe24 100644 (file)
@@ -1,13 +1,17 @@
+#
+# 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
-Version:       1.19.0
+Version:       1.22.0
 Release:       1
 License:       MIT
 Group:         Libraries
 #Source0Download: https://c-ares.haxx.se/
 Source0:       https://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
-# Source0-md5: 2668790bc92603e292d0fbcb25ded39c
+# Source0-md5: 0f9e7f16ddb6526e202e5e45b39253c7
 Patch0:                %{name}-resolv.conf-reading-is-not-fatal.patch
 URL:           https://c-ares.haxx.se/
 BuildRequires: autoconf >= 2.60
@@ -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
@@ -108,12 +114,15 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/ares.h
 %{_includedir}/ares_build.h
 %{_includedir}/ares_dns.h
+%{_includedir}/ares_dns_record.h
 %{_includedir}/ares_nameser.h
 %{_includedir}/ares_rules.h
 %{_includedir}/ares_version.h
 %{_mandir}/man3/ares_*.3*
 %{_pkgconfigdir}/libcares.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcares.a
+%endif
This page took 0.188105 seconds and 4 git commands to generate.