stun/stun.spec

changeset 53
11a94c8e617e
parent 52
d42d557c7a5a
child 85
e6a1cd7ed6ba
equal deleted inserted replaced
0:4240a0a8806a 1:594866a71bcc
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: EVAL 35 Class: EVAL
36 Group: VoIP 36 Group: VoIP
37 License: Open Source 37 License: Open Source
38 Version: %{V_opkg} 38 Version: %{V_opkg}
39 Release: 20080101 39 Release: 20090106
40 40
41 # list of sources 41 # list of sources
42 Source0: http://switch.dl.sourceforge.net/stun/stund_%{V_dist}.tgz 42 Source0: http://switch.dl.sourceforge.net/stun/stund_%{V_dist}.tgz
43 Source1: rc.stun 43 Source1: rc.stun
44 Patch0: stun.patch 44 Patch0: stun.patch
71 } 71 }
72 72
73 %prep 73 %prep
74 %setup -q -n stund 74 %setup -q -n stund
75 %patch -p0 75 %patch -p0
76 case "%{l_platform -t}" in
77 *-sunos* )
78 %{l_shtool} subst \
79 -e 's;^\(LDFLAGS\)+=.*;\1=;' \
80 -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl;' \
81 Makefile
82 ;;
83 * )
84 %{l_shtool} subst \
85 -e 's;^\(LDFLAGS\)+=.*;\1=;' \
86 Makefile
87 ;;
88 esac
76 89
77 %build 90 %build
78 %{l_make} %{l_mflags} \ 91 %{l_make} %{l_mflags} \
79 CXX="%{l_cxx}" \ 92 CXX="%{l_cxx}" \
80 CXXFLAGS="%{l_cxxflags -O}" \ 93 CXXFLAGS="%{l_cxxflags -O}"
81 LDFLAGS=""
82 94
83 %install 95 %install
84 rm -rf $RPM_BUILD_ROOT 96 rm -rf $RPM_BUILD_ROOT
85 %{l_shtool} mkdir -f -p -m 755 \ 97 %{l_shtool} mkdir -f -p -m 755 \
86 $RPM_BUILD_ROOT%{l_prefix}/bin \ 98 $RPM_BUILD_ROOT%{l_prefix}/bin \

mercurial