1.1 --- a/stun/stun.spec Fri Jan 09 00:45:56 2009 +0100 1.2 +++ b/stun/stun.spec Fri Jan 09 00:46:33 2009 +0100 1.3 @@ -36,7 +36,7 @@ 1.4 Group: VoIP 1.5 License: Open Source 1.6 Version: %{V_opkg} 1.7 -Release: 20080101 1.8 +Release: 20090106 1.9 1.10 # list of sources 1.11 Source0: http://switch.dl.sourceforge.net/stun/stund_%{V_dist}.tgz 1.12 @@ -73,12 +73,24 @@ 1.13 %prep 1.14 %setup -q -n stund 1.15 %patch -p0 1.16 + case "%{l_platform -t}" in 1.17 + *-sunos* ) 1.18 + %{l_shtool} subst \ 1.19 + -e 's;^\(LDFLAGS\)+=.*;\1=;' \ 1.20 + -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl;' \ 1.21 + Makefile 1.22 + ;; 1.23 + * ) 1.24 + %{l_shtool} subst \ 1.25 + -e 's;^\(LDFLAGS\)+=.*;\1=;' \ 1.26 + Makefile 1.27 + ;; 1.28 + esac 1.29 1.30 %build 1.31 %{l_make} %{l_mflags} \ 1.32 CXX="%{l_cxx}" \ 1.33 - CXXFLAGS="%{l_cxxflags -O}" \ 1.34 - LDFLAGS="" 1.35 + CXXFLAGS="%{l_cxxflags -O}" 1.36 1.37 %install 1.38 rm -rf $RPM_BUILD_ROOT