diff -r e66ba21516b4 -r 8a7a53c3985c udns/udns.spec
--- a/udns/udns.spec Wed Aug 08 20:32:08 2012 +0200
+++ b/udns/udns.spec Wed Aug 08 20:34:03 2012 +0200
@@ -1,6 +1,6 @@
##
## udns.spec -- OpenPKG RPM Package Specification
-## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
+## Copyright (c) 2000-2011 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
@@ -31,11 +31,11 @@
Class: EVAL
Group: DNS
License: LGPL
-Version: 0.0.9
-Release: 20091026
+Version: 0.2
+Release: 20120208
# list of sources
-Source0: http://www.corpit.ru/mjt/udns/udns_%{version}.tar.gz
+Source0: http://www.corpit.ru/mjt/udns/udns-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
@@ -58,27 +58,21 @@
%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
+ case "%{l_platform -t}" in
+ *-sunos* )
+ %{l_shtool} subst \
+ -e 's;\(\$(LIBFL)\);\1 -lsocket -lnsl;g' \
+ Makefile.in
+ ;;
+ esac
%build
- loclibs=''
case "%{l_platform -t}" in
- *-sunos* )
- loclibs='-lsocket -lnsl'
- ;;
+ *-sunos* ) loclibs='-lsocket -lnsl' ;;
esac
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
- LDFLAGS="%{l_ldflags} $loclibs" \
+ LIBS="$loclibs" \
./configure
%{l_make} %{l_mflags}