Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > e5cfcd08821cd37d6eaf97172945cbf0 > files > 3

stun-0.94-6mdv2007.0.src.rpm

Summary:        STUN server and client
Name:           stun
Version:        0.94
Release:        %mkrel 6
License:        BSD
Group:          System/Servers
URL:            http://www.vovida.org/applications/downloads/stun/
Source0:        http://prdownloads.sourceforge.net/stun/stund_%{version}_Oct29.tar.bz2
Source1:        stun-server.init.bz2
Source2:        stun-server.sysconfig.bz2
Patch0:         stund-0.94-mdk_conf.diff.bz2
Patch1:         stund-0.94-x86_64.diff.bz2
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires: dos2unix
BuildRequires: openssl-devel
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
The STUN (Simple Traversal of UDP through NATs (Network Address
Translation)) server is an implementation of the STUN protocol
that enables STUN functionality in SIP-based systems. The STUN
server tar ball also include a client API to enable STUN
functionality in SIP endpoints. In addition there is a command
line UNIX client and a graphical windows client that check what
type of NAT the user is using.

STUN is an application-layer protocol that can determine the
public IP and nature of a NAT device that sits between the STUN
client and STUN server.

%package         server
Summary:         STUN server
Group:           System/Servers
Requires(post):  rpm-helper
Requires(preun): rpm-helper

%description     server
The STUN (Simple Traversal of UDP through NATs (Network Address
Translation)) server is an implementation of the STUN protocol
that enables STUN functionality in SIP-based systems. The STUN
server tar ball also include a client API to enable STUN
functionality in SIP endpoints. In addition there is a command
line UNIX client and a graphical windows client that check what
type of NAT the user is using.

STUN is an application-layer protocol that can determine the
public IP and nature of a NAT device that sits between the STUN
client and STUN server.

This package contains the STUN server.

%package        client
Summary:        STUN client
Group:          System/Servers

%description    client
The STUN (Simple Traversal of UDP through NATs (Network Address
Translation)) server is an implementation of the STUN protocol
that enables STUN functionality in SIP-based systems. The STUN
server tar ball also include a client API to enable STUN
functionality in SIP endpoints. In addition there is a command
line UNIX client and a graphical windows client that check what
type of NAT the user is using.

STUN is an application-layer protocol that can determine the
public IP and nature of a NAT device that sits between the STUN
client and STUN server.

This package contains the STUN client.

%prep

%setup -q -n stund
%patch0 -p1
%patch1 -p0

# strip away annoying ^M
find -type f -exec dos2unix -U {} \;

bzcat %{SOURCE1} > stun-server.init
bzcat %{SOURCE2} > stun-server.sysconfig

%build

%make CXXFLAGS="%{optflags}"

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_initrddir}

install -m0755 stun-server %{buildroot}%{_sbindir}/stun-server
install -m0755 stun-client %{buildroot}%{_sbindir}/stun-client 

install -m0755 stun-server.init %{buildroot}%{_initrddir}/stun-server
install -m0644 stun-server.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/stun-server


%post server
%_post_service stun-server

%preun server
%_preun_service stun-server

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files server
%defattr(-,root,root,-)
%doc nattest nattestwarning.txt rfc3489.txt
%attr(0755,root,root) %{_initrddir}/stun-server
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/stun-server
%attr(0755,root,root) %{_sbindir}/stun-server

%files client
%defattr(-,root,root,-)
%attr(0755,root,root) %{_sbindir}/stun-client 


%changelog
* Wed Aug 30 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-08-30 11:16:51 (58779)
- 0.94-6mdv2007.0

* Wed Aug 30 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-08-30 11:12:52 (58777)
- Import stun


* Wed Nov 30 2005 Oden Eriksson <oeriksson@mandriva.com> 0.94-5mdk
- rebuilt against openssl-0.9.8a

* Wed Oct 19 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.94-4mdk
- Fix PreReq

* Wed Oct 19 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.94-3mdk
- Fix BuildRequires

* Thu May 12 2005 Oden Eriksson <oeriksson@mandriva.com> 0.94-2mdk
- make it compile on x86_64 (P1)
- use better anti ^M stripper

* Thu Apr 28 2005 Oden Eriksson <oeriksson@mandriva.com> 0.94-1mdk
- initial Mandriva package