udns/udns.spec

changeset 222
c59522753b78
parent 221
dae77b684675
child 493
8a7a53c3985c
     1.1 --- a/udns/udns.spec	Tue Oct 27 21:42:51 2009 +0100
     1.2 +++ b/udns/udns.spec	Tue Oct 27 21:44:13 2009 +0100
     1.3 @@ -32,7 +32,7 @@
     1.4  Group:        DNS
     1.5  License:      LGPL
     1.6  Version:      0.0.9
     1.7 -Release:      20080523
     1.8 +Release:      20091026
     1.9  
    1.10  #   list of sources
    1.11  Source0:      http://www.corpit.ru/mjt/udns/udns_%{version}.tar.gz
    1.12 @@ -58,10 +58,27 @@
    1.13  
    1.14  %prep
    1.15      %setup -q
    1.16 +    %{l_shtool} subst \
    1.17 +        -e 's;\(^LIBFL[\ \t]*=.*\);\1 @LDFLAGS@;' \
    1.18 +        Makefile.in
    1.19 +    %{l_shtool} subst \
    1.20 +        -e 's;dns_ntop;inet_ntop;g' \
    1.21 +        -e 's;dns_pton;inet_pton;g' \
    1.22 +        udns_resolver.c \
    1.23 +        rblcheck.c \
    1.24 +        ex-rdns.c \
    1.25 +        dnsget.c
    1.26  
    1.27  %build
    1.28 +    loclibs=''
    1.29 +    case "%{l_platform -t}" in
    1.30 +        *-sunos* )
    1.31 +            loclibs='-lsocket -lnsl'
    1.32 +            ;;
    1.33 +    esac
    1.34      CC="%{l_cc}" \
    1.35      CFLAGS="%{l_cflags -O}" \
    1.36 +    LDFLAGS="%{l_ldflags} $loclibs" \
    1.37      ./configure
    1.38      %{l_make} %{l_mflags}
    1.39  

mercurial