stun/stun.spec

changeset 417
76ceb617f880
parent 85
e6a1cd7ed6ba
child 418
680c3f7768b0
equal deleted inserted replaced
2:960ee226f37a 3:f261f7d7273d
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version
25 %define V_dist 0.96_Aug13
26 %define V_opkg 0.96
27
28 # package information 24 # package information
29 Name: stun 25 Name: stun
30 Summary: STUN Client & Server 26 Summary: STUN Client & Server
31 URL: http://www.vovida.org/applications/downloads/stun/ 27 URL: http://www.vovida.org/applications/downloads/stun/
32 Vendor: Vovida 28 Vendor: Vovida
33 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
34 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
35 Class: EVAL 31 Class: EVAL
36 Group: VoIP 32 Group: VoIP
37 License: Open Source 33 License: Open Source
38 Version: %{V_opkg} 34 Version: 0.97
39 Release: 20090106 35 Release: 20120208
40 36
41 # list of sources 37 # list of sources
42 Source0: http://switch.dl.sourceforge.net/stun/stund_%{V_dist}.tgz 38 Source0: http://switch.dl.sourceforge.net/stun/stund-%{version}.tgz
43 Source1: rc.stun 39 Source1: rc.stun
44 Patch0: stun.patch 40 Patch0: stun.patch
45 41
46 # build information 42 # build information
47 Prefix: %{l_prefix} 43 Prefix: %{l_prefix}
63 client and STUN server. The current version of the code supports 59 client and STUN server. The current version of the code supports
64 most of RFC 3489 except the ability to get OTPs from the server. 60 most of RFC 3489 except the ability to get OTPs from the server.
65 61
66 %track 62 %track
67 prog stun = { 63 prog stun = {
68 version = %{V_dist} 64 version = %{version}
69 url = http://prdownloads.sourceforge.net/stun/ 65 url = http://prdownloads.sourceforge.net/stun/
70 regex = stund_(.+?)\.tgz 66 regex = stund_(.+?)\.tgz
71 } 67 }
72 68
73 %prep 69 %prep
75 %patch -p0 71 %patch -p0
76 case "%{l_platform -t}" in 72 case "%{l_platform -t}" in
77 *-sunos* ) 73 *-sunos* )
78 %{l_shtool} subst \ 74 %{l_shtool} subst \
79 -e 's;^\(LDFLAGS\)+=.*;\1=;' \ 75 -e 's;^\(LDFLAGS\)+=.*;\1=;' \
80 -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl;' \ 76 -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl -ldl;' \
81 Makefile 77 Makefile
82 ;; 78 ;;
83 * ) 79 * )
84 %{l_shtool} subst \ 80 %{l_shtool} subst \
85 -e 's;^\(LDFLAGS\)+=.*;\1=;' \ 81 -e 's;^\(LDFLAGS\)+=.*;\1=;' \
86 Makefile 82 Makefile
87 ;; 83 ;;
88 esac 84 esac
89 85
90 %build 86 %build
91 %{l_make} %{l_mflags} \ 87 %{l_make} %{l_mflags -O} \
92 CXX="%{l_cxx}" \ 88 CXX="%{l_cxx}" \
93 CXXFLAGS="%{l_cxxflags -O}" 89 CXXFLAGS="%{l_cxxflags -O}"
94 90
95 %install 91 %install
96 rm -rf $RPM_BUILD_ROOT 92 rm -rf $RPM_BUILD_ROOT

mercurial