diff -r d42d557c7a5a -r 11a94c8e617e stun/stun.spec --- a/stun/stun.spec Fri Jan 09 00:45:56 2009 +0100 +++ b/stun/stun.spec Fri Jan 09 00:46:33 2009 +0100 @@ -36,7 +36,7 @@ Group: VoIP License: Open Source Version: %{V_opkg} -Release: 20080101 +Release: 20090106 # list of sources Source0: http://switch.dl.sourceforge.net/stun/stund_%{V_dist}.tgz @@ -73,12 +73,24 @@ %prep %setup -q -n stund %patch -p0 + case "%{l_platform -t}" in + *-sunos* ) + %{l_shtool} subst \ + -e 's;^\(LDFLAGS\)+=.*;\1=;' \ + -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl;' \ + Makefile + ;; + * ) + %{l_shtool} subst \ + -e 's;^\(LDFLAGS\)+=.*;\1=;' \ + Makefile + ;; + esac %build %{l_make} %{l_mflags} \ CXX="%{l_cxx}" \ - CXXFLAGS="%{l_cxxflags -O}" \ - LDFLAGS="" + CXXFLAGS="%{l_cxxflags -O}" %install rm -rf $RPM_BUILD_ROOT