1 Summary: Simple Traversal of UDP through NATs
2 Summary(pl.UTF-8): STUN - Proste Przepuszczanie UDP przez NAT-a
6 Group: Networking/Daemons
7 License: Vovida Software License
8 Source0: http://download.sourceforge.net/stun/%{name}d_%{version}_Aug13.tgz
9 # Source0-md5: 3273abb1a6f299f4e611b658304faefa
10 Source1: %{name}.sysconfig
12 Source3: %{name}.logrotate
13 URL: http://www.vovida.org/applications/downloads/stun/
14 BuildRequires: libstdc++-devel
15 BuildRequires: openssl-devel
16 BuildRequires: rpmbuild(macros) >= 1.268
17 ExclusiveArch: %{ix86}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The STUN (Simple Traversal of UDP through NATs (Network Address
22 Translation)) server is an implementation of the STUN protocol that
23 enables STUN functionality in SIP-based systems.
25 %description -l pl.UTF-8
26 Serwer STUN (prostego przepuszczania UDP przez NAT-a) jest
27 implementacją protokołu STUN, który umożliwia wykorzystanie systemów
28 opartych na protokole SIP w sieciach za NAT-em.
31 Summary: Simple Traversal of UDP through NATs server
32 Summary(pl.UTF-8): Serwer STUN (prostego przepuszczania UDP przez NAT-a)
33 Group: Networking/Daemons
35 Requires(post,preun): /sbin/chkconfig
38 The STUN (Simple Traversal of UDP through NATs (Network Address
39 Translation)) server is an implementation of the STUN protocol that
40 enables STUN functionality in SIP-based systems.
42 %description server -l pl.UTF-8
43 Serwer STUN (prostego przepuszczania UDP przez NAT-a) jest
44 implementacją protokołu STUN, który umożliwia wykorzystanie systemów
45 opartych na protokole SIP w sieciach za NAT-em.
48 Summary: Simple Traversal of UDP through NATs client
49 Summary(pl.UTF-8): Klient STUN (prostego przepuszczania UDP przez NAT-a)
50 Group: Networking/Utilities
53 A simple client for testing a STUN server.
55 %description client -l pl.UTF-8
56 Prosty klient do testowania serwerów STUN.
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}} \
67 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d} \
68 $RPM_BUILD_ROOT/var/log
70 install server $RPM_BUILD_ROOT%{_sbindir}/stund
71 install client $RPM_BUILD_ROOT%{_bindir}/stunc
72 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/stund
73 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/stund
74 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/stund
75 touch $RPM_BUILD_ROOT/var/log/stund
78 rm -rf $RPM_BUILD_ROOT
81 /sbin/chkconfig --add stund
82 %service stund restart "STUN server daemon"
85 if [ "$1" = "0" ]; then
87 /sbin/chkconfig --del stund
92 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_sbindir}/*
95 %attr(754,root,root) /etc/rc.d/init.d/stund
96 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stund
97 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/stund
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/*