Wed, 08 Aug 2012 20:34:03 +0200
Blind commit, as it seems this is needed to correct building on SVR5.
udns/udns.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/udns/udns.spec Wed Aug 08 20:32:08 2012 +0200 1.2 +++ b/udns/udns.spec Wed Aug 08 20:34:03 2012 +0200 1.3 @@ -1,6 +1,6 @@ 1.4 ## 1.5 ## udns.spec -- OpenPKG RPM Package Specification 1.6 -## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/> 1.7 +## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/> 1.8 ## 1.9 ## Permission to use, copy, modify, and distribute this software for 1.10 ## any purpose with or without fee is hereby granted, provided that 1.11 @@ -31,11 +31,11 @@ 1.12 Class: EVAL 1.13 Group: DNS 1.14 License: LGPL 1.15 -Version: 0.0.9 1.16 -Release: 20091026 1.17 +Version: 0.2 1.18 +Release: 20120208 1.19 1.20 # list of sources 1.21 -Source0: http://www.corpit.ru/mjt/udns/udns_%{version}.tar.gz 1.22 +Source0: http://www.corpit.ru/mjt/udns/udns-%{version}.tar.gz 1.23 1.24 # build information 1.25 Prefix: %{l_prefix} 1.26 @@ -58,27 +58,21 @@ 1.27 1.28 %prep 1.29 %setup -q 1.30 - %{l_shtool} subst \ 1.31 - -e 's;\(^LIBFL[\ \t]*=.*\);\1 @LDFLAGS@;' \ 1.32 - Makefile.in 1.33 - %{l_shtool} subst \ 1.34 - -e 's;dns_ntop;inet_ntop;g' \ 1.35 - -e 's;dns_pton;inet_pton;g' \ 1.36 - udns_resolver.c \ 1.37 - rblcheck.c \ 1.38 - ex-rdns.c \ 1.39 - dnsget.c 1.40 + case "%{l_platform -t}" in 1.41 + *-sunos* ) 1.42 + %{l_shtool} subst \ 1.43 + -e 's;\(\$(LIBFL)\);\1 -lsocket -lnsl;g' \ 1.44 + Makefile.in 1.45 + ;; 1.46 + esac 1.47 1.48 %build 1.49 - loclibs='' 1.50 case "%{l_platform -t}" in 1.51 - *-sunos* ) 1.52 - loclibs='-lsocket -lnsl' 1.53 - ;; 1.54 + *-sunos* ) loclibs='-lsocket -lnsl' ;; 1.55 esac 1.56 CC="%{l_cc}" \ 1.57 CFLAGS="%{l_cflags -O}" \ 1.58 - LDFLAGS="%{l_ldflags} $loclibs" \ 1.59 + LIBS="$loclibs" \ 1.60 ./configure 1.61 %{l_make} %{l_mflags} 1.62