udns/udns.spec

changeset 493
8a7a53c3985c
parent 222
c59522753b78
child 494
fd1de0c7bc20
equal deleted inserted replaced
1:22852a3fd612 2:8452515704a6
1 ## 1 ##
2 ## udns.spec -- OpenPKG RPM Package Specification 2 ## udns.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/> 3 ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
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.2
35 Release: 20091026 35 Release: 20120208
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
41 Prefix: %{l_prefix} 41 Prefix: %{l_prefix}
42 BuildRoot: %{l_buildroot} 42 BuildRoot: %{l_buildroot}
43 BuildPreReq: OpenPKG, openpkg >= 20060823 43 BuildPreReq: OpenPKG, openpkg >= 20060823
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 \ 61 case "%{l_platform -t}" in
62 -e 's;\(^LIBFL[\ \t]*=.*\);\1 @LDFLAGS@;' \ 62 *-sunos* )
63 Makefile.in 63 %{l_shtool} subst \
64 %{l_shtool} subst \ 64 -e 's;\(\$(LIBFL)\);\1 -lsocket -lnsl;g' \
65 -e 's;dns_ntop;inet_ntop;g' \ 65 Makefile.in
66 -e 's;dns_pton;inet_pton;g' \ 66 ;;
67 udns_resolver.c \ 67 esac
68 rblcheck.c \
69 ex-rdns.c \
70 dnsget.c
71 68
72 %build 69 %build
73 loclibs=''
74 case "%{l_platform -t}" in 70 case "%{l_platform -t}" in
75 *-sunos* ) 71 *-sunos* ) loclibs='-lsocket -lnsl' ;;
76 loclibs='-lsocket -lnsl'
77 ;;
78 esac 72 esac
79 CC="%{l_cc}" \ 73 CC="%{l_cc}" \
80 CFLAGS="%{l_cflags -O}" \ 74 CFLAGS="%{l_cflags -O}" \
81 LDFLAGS="%{l_ldflags} $loclibs" \ 75 LIBS="$loclibs" \
82 ./configure 76 ./configure
83 %{l_make} %{l_mflags} 77 %{l_make} %{l_mflags}
84 78
85 %install 79 %install
86 rm -rf $RPM_BUILD_ROOT 80 rm -rf $RPM_BUILD_ROOT

mercurial