%define major 2 %define libname %mklibname cares %{major} %define libdevelname %mklibname cares -d %define libstaticname %mklibname cares -d -s Summary: A library that performs asynchronous DNS operations Name: c-ares Version: 1.6.0 Release: %mkrel 1 License: MIT Group: System/Libraries URL: http://c-ares.haxx.se/ Source0: http://c-ares.haxx.se/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. %package -n %{libname} Summary: %{summary} Group: %{group} Provides: %{name} = %{version}-%{release} %description -n %{libname} c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. %package -n %{libdevelname} Summary: Development files for c-ares Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} %description -n %{libdevelname} This package contains the header files and developemnt libraries needed to compile applications or shared objects that use c-ares. %package -n %{libstaticname} Summary: Static development library for c-ares Group: Development/C Requires: %{libdevelname} = %{version}-%{release} %description -n %{libstaticname} This package contains the static development library for c-ares needed to compile applications using c-ares. %prep %setup -q %build %configure2_5x \ --enable-shared \ --enable-thread \ --enable-libgcc \ --enable-nonblocking \ --enable-optimize %make %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %files -n %{libname} %{_libdir}/lib*.so.%{major}* %files -n %{libdevelname} %doc README README.cares CHANGES NEWS %{_includedir}/ares.h %{_includedir}/ares_dns.h %{_includedir}/ares_version.h %{_libdir}/lib*.so %{_libdir}/lib*.la %{_libdir}/pkgconfig/libcares.pc %{_mandir}/man3/ares_* %files -n %{libstaticname} %{_libdir}/lib*.a %changelog * Thu Dec 11 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.6.0-1mdv2009.1 + Revision: 313389 - update to new version 1.6.0 - enable non-blocking communication * Fri Nov 28 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.5.3-1mdv2009.1 + Revision: 307483 - fix urls - enable thread-safe functions - use libgcc when linking - spec file clean - update to new version 1.5.3 * Thu Aug 07 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.5.2-2mdv2009.0 + Revision: 266440 - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Sun Jun 01 2008 Funda Wang <fundawang@mandriva.org> 1.5.2-1mdv2009.0 + Revision: 213878 - New version 1.5.2 + Thierry Vignaud <tvignaud@mandriva.com> - fix no-buildroot-tag * Sat Nov 24 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.5.1-1mdv2008.1 + Revision: 111764 - fix group - initial package based on Fedora spec, thx! :) - create c-ares