Summary: Asynchronous-capable resolver library Name: adns Version: 1.1 Release: 1.n0i.1 License: GPL Group: System Environment/Libraries URL: http://www.chiark.greenend.org.uk/~ian/adns/ Source: http://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description adns is a resolver library for C (and C++) programs, and a collection of useful DNS resolver utilities. %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup ### FIXME: Adapt buildtools to autotool directories. (Please fix upstream) %{__perl} -pi.orig -e 's|\$\(lib_dir\)|\$(libdir)|g' Makefile* */Makefile* ### FIXME: Fix conflicting types. (Please fix upstream) %{__perl} -pi.orig -e 's|adns_queryflags flags,|parsedomain_flags flags,|g' src/parse.c %build %configure %{__make} %{?_smp_mflags} \ XCFLAGS="-fPIC -fomit-frame-pointer -DPIC" %install %{__rm} -rf $RPM_BUILD_ROOT %{__install} -d -m0755 $RPM_BUILD_ROOT%{_libdir} \ $RPM_BUILD_ROOT%{_bindir} \ $RPM_BUILD_ROOT%{_includedir} %makeinstall %post /sbin/ldconfig 2>/dev/null %postun /sbin/ldconfig 2>/dev/null %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, 0755) %doc README TODO %{_bindir}/* %{_libdir}/*.so.* %files devel %defattr(-, root, root, 0755) %{_includedir}/* %{_libdir}/*.a %changelog * Thu Jan 27 2005 Marius FERARU 1.1-1.n0i.1 - adapted Dag's spec to reb00t * Tue Nov 10 2004 Dag Wieers - 1.1-1 - Updated to release 1.1. * Wed Jan 08 2003 Dag Wieers - 1.0-1 - Initial package. (using DAR)