]> git.pld-linux.org Git - packages/c-ares.git/blobdiff - c-ares.spec
up to 1.18.0
[packages/c-ares.git] / c-ares.spec
index b9764ba1f47b565115e0fb80075aa75a1a4768e9..2d5ea02fa580193fb4fcff010e2e063d29eaca28 100644 (file)
@@ -1,17 +1,20 @@
 Summary:       A library that performs asynchronous DNS operations
 Summary(pl.UTF-8):     Biblioteka do wykonywania asynchronicznych zapytaƄ DNS
 Name:          c-ares
-Version:       1.10.0
+Version:       1.18.0
 Release:       1
 License:       MIT
 Group:         Libraries
-Source0:       http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
-# Source0-md5: 1196067641411a75d3cbebe074fd36d8
+#Source0Download: https://c-ares.haxx.se/
+Source0:       https://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
+# Source0-md5: 9973e8f6f51d9ec7788af10b07a38403
 Patch0:                %{name}-resolv.conf-reading-is-not-fatal.patch
-URL:           http://c-ares.haxx.se/
+URL:           https://c-ares.haxx.se/
 BuildRequires: autoconf >= 2.57
-BuildRequires: automake
-BuildRequires: libtool
+BuildRequires: automake >= 1:1.9.6
+# for tests
+#BuildRequires:        libstdc++-devel >= 6:4.7
+BuildRequires: libtool >= 2:2
 BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -54,16 +57,25 @@ Statyczna biblioteka c-ares.
 %patch0 -p1
 
 # we want our own debug flags, if any
-sed -i -e 's/flags_dbg_off=".*"/flags_dbg_off="%{rpmcflags}"/' m4/cares-compilers.m4
-sed -i -e 's/flags_opt_yes=".*"/flags_opt_yes="%{rpmcflags}"/' m4/cares-compilers.m4
+%{__sed} -i -e 's/flags_dbg_off=".*"/flags_dbg_off="%{rpmcflags}"/' m4/cares-compilers.m4
+%{__sed} -i -e 's/flags_opt_yes=".*"/flags_opt_yes="%{rpmcflags}"/' m4/cares-compilers.m4
 
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
+%{__autoconf}
 %{__autoheader}
+%{__automake}
+cd test
+%{__libtoolize}
+%{__aclocal} -I ../m4
 %{__autoconf}
+%{__autoheader}
 %{__automake}
+cd ..
 %configure \
+       --disable-silent-rules \
+       --disable-tests \
        --enable-optimize="%{rpmcflags}" \
        --enable-shared
 
@@ -71,9 +83,13 @@ sed -i -e 's/flags_opt_yes=".*"/flags_opt_yes="%{rpmcflags}"/' m4/cares-compiler
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# no external dependencies + obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcares.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -82,17 +98,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README README.cares CHANGES NEWS
+%doc AUTHORS CHANGES LICENSE.md NEWS README.cares README.md RELEASE-NOTES TODO
 %attr(755,root,root) %{_libdir}/libcares.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libcares.so.2
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libcares.so
-%{_libdir}/libcares.la
 %{_includedir}/ares.h
 %{_includedir}/ares_build.h
 %{_includedir}/ares_dns.h
+%{_includedir}/ares_nameser.h
 %{_includedir}/ares_rules.h
 %{_includedir}/ares_version.h
 %{_mandir}/man3/ares_*.3*
This page took 0.032276 seconds and 4 git commands to generate.