]> git.pld-linux.org Git - SPECS.git/blob - stun.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / stun.spec
1 Summary:        Simple Traversal of UDP through NATs
2 Summary(pl.UTF-8):      STUN - Proste Przepuszczanie UDP przez NAT-a
3 Name:           stun
4 Version:        0.96
5 Release:        1
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
11 Source2:        %{name}.init
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)
19
20 %description
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.
24
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.
29
30 %package server
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
34 Requires:       rc-scripts
35 Requires(post,preun):   /sbin/chkconfig
36
37 %description server
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.
41
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.
46
47 %package client
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
51
52 %description client
53 A simple client for testing a STUN server.
54
55 %description client -l pl.UTF-8
56 Prosty klient do testowania serwerów STUN.
57
58 %prep
59 %setup -q -n %{name}d
60
61 %build
62 %{__make}
63
64 %install
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
69
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
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post server
81 /sbin/chkconfig --add stund
82 %service stund restart "STUN server daemon"
83
84 %preun
85 if [ "$1" = "0" ]; then
86         %service stund stop
87         /sbin/chkconfig --del stund
88 fi
89
90
91 %files server
92 %defattr(644,root,root,755)
93 %doc rfc3489.txt
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
98 %ghost /var/log/stund
99
100 %files client
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/*
This page took 0.712606 seconds and 3 git commands to generate.