# HG changeset patch # User Michael Schloh von Bennewitz # Date 1256676253 -3600 # Node ID c59522753b781273a52c2c21838a8b63afe68337 # Parent dae77b684675458e4e9a4593621b8031d509c52e Work around defective inet_ntop and inet_pton logic and add needed libs. diff -r dae77b684675 -r c59522753b78 udns/udns.spec --- a/udns/udns.spec Tue Oct 27 21:42:51 2009 +0100 +++ b/udns/udns.spec Tue Oct 27 21:44:13 2009 +0100 @@ -32,7 +32,7 @@ Group: DNS License: LGPL Version: 0.0.9 -Release: 20080523 +Release: 20091026 # list of sources Source0: http://www.corpit.ru/mjt/udns/udns_%{version}.tar.gz @@ -58,10 +58,27 @@ %prep %setup -q + %{l_shtool} subst \ + -e 's;\(^LIBFL[\ \t]*=.*\);\1 @LDFLAGS@;' \ + Makefile.in + %{l_shtool} subst \ + -e 's;dns_ntop;inet_ntop;g' \ + -e 's;dns_pton;inet_pton;g' \ + udns_resolver.c \ + rblcheck.c \ + ex-rdns.c \ + dnsget.c %build + loclibs='' + case "%{l_platform -t}" in + *-sunos* ) + loclibs='-lsocket -lnsl' + ;; + esac CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ + LDFLAGS="%{l_ldflags} $loclibs" \ ./configure %{l_make} %{l_mflags}