udns/udns.spec

changeset 473
323623610492
parent 221
dae77b684675
child 493
8a7a53c3985c
equal deleted inserted replaced
0:078a9296d0b9 1:22852a3fd612
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: EVAL 31 Class: EVAL
32 Group: DNS 32 Group: DNS
33 License: LGPL 33 License: LGPL
34 Version: 0.0.9 34 Version: 0.0.9
35 Release: 20080523 35 Release: 20091026
36 36
37 # list of sources 37 # list of sources
38 Source0: http://www.corpit.ru/mjt/udns/udns_%{version}.tar.gz 38 Source0: http://www.corpit.ru/mjt/udns/udns_%{version}.tar.gz
39 39
40 # build information 40 # build information
56 regex = udns[_-](__VER__)\.tar\.gz 56 regex = udns[_-](__VER__)\.tar\.gz
57 } 57 }
58 58
59 %prep 59 %prep
60 %setup -q 60 %setup -q
61 %{l_shtool} subst \
62 -e 's;\(^LIBFL[\ \t]*=.*\);\1 @LDFLAGS@;' \
63 Makefile.in
64 %{l_shtool} subst \
65 -e 's;dns_ntop;inet_ntop;g' \
66 -e 's;dns_pton;inet_pton;g' \
67 udns_resolver.c \
68 rblcheck.c \
69 ex-rdns.c \
70 dnsget.c
61 71
62 %build 72 %build
73 loclibs=''
74 case "%{l_platform -t}" in
75 *-sunos* )
76 loclibs='-lsocket -lnsl'
77 ;;
78 esac
63 CC="%{l_cc}" \ 79 CC="%{l_cc}" \
64 CFLAGS="%{l_cflags -O}" \ 80 CFLAGS="%{l_cflags -O}" \
81 LDFLAGS="%{l_ldflags} $loclibs" \
65 ./configure 82 ./configure
66 %{l_make} %{l_mflags} 83 %{l_make} %{l_mflags}
67 84
68 %install 85 %install
69 rm -rf $RPM_BUILD_ROOT 86 rm -rf $RPM_BUILD_ROOT

mercurial