File siproxd.spec of Package siproxd

#
# spec file for package siproxd (Version 0.7.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           siproxd
BuildRequires:  libosip2-devel
License:        GPL v2 or later
Group:          Productivity/Networking/Other
Summary:        A SIP masquerading proxy with RTP support
Version:        0.7.0
Release:        1
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://siproxd.sourceforge.net/
Source:         siproxd-%{version}.tar.bz2
Patch:          siproxd-md5.patch

%description
Siprox is an proxy/masquerading daemon for the SIP protocol. It handles
registrations of SIP clients on a private IP network and performs
rewriting of the SIP message bodies to make SIP connections possible
via an masquerading firewall. It allows SIP clients (like kphone,
linphone) to work behind an IP masquerading firewall or router.



Authors:
--------
    Thomas Ries  <tries@gmx.net>

%prep
%setup -q -n siproxd-0.7.0
%patch

%build
autoreconf --install --force
CFLAGS="$RPM_OPT_FLAGS" ./configure \
  --prefix=%_prefix \
  --sysconfdir=%{_sysconfdir}
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# cleanup
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/siproxd.conf.example
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/siproxd_passwd.cfg

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README AUTHORS INSTALL NEWS ChangeLog
%doc doc/siproxd.conf.example doc/siproxd_passwd.cfg
%{_sbindir}/siproxd

%changelog
* Fri Apr 04 2008 ro@suse.de
- update to 0.7.0, no changes beside official release
* Thu Feb 28 2008 ro@suse.de
- fix build with current libosip2
* Sun Jan 13 2008 ro@suse.de
- update to snapshot version
  - Converting to use libosip2-3.x.x
  This means older libosip2 versions before 3.0.0
  are no longer supported and will fail to build!
- update to 0.6.1
  - DNS failure cache: do several attempts before blacklisting
  - Fix: Detach from controlling TTY if daemonized
  - Working on code that that will allow siproxd to use
  separate interfaces in its "in front of NAT router" setup.
  ( UA1[LAN0]--siproxd--LAN1--NAT--Internet--UA2 )
  - Small changes to compile again under OpenBSD.
- update to 0.6.0
  - Released 0.6.0
  - keep failed DNS attempts in cache for 10 minutes.
  This should protect from repeating DNS timeouts
  caused by broken DNS server (possible DOS)
  - added comment in siproxd.conf about hosts_allow_sip
  - some come cleanup in log.c (Bob Beers)
  - fixed an error in "my via" detection when using the
  "host_outbound" config directive
  - Some cleanup in dejitter code
  - Deal with PRACK requests (RFC3262)
  - Just discovered some patches originating from Debian
  project - included most of them as they make sense.
  (Hint: People, if you get fixes, please drop me a note
  and a .diff - I won't be biting you)
  - new feature: can masquerade User-agent header
  - new feature: can add ;rport to my own Via Headers
  - deal with locally running UAs on same host (inbound IF side)
  - Client-ID in RTP proxy is derived from Client IP address.
  This should fix an issue with unexpectedly timing-out RTP
  streams (actually too many RTP streams get started).
  - Hack to deal with Asterisks broken Alert-Info headers
  (Asterisk in some setups does include Alert-Info header
  without '<>'. Note, this is a configuration issue in
  Asterisk, not an Asterisk bug!)
  - Increased RTP buffer size
  - Various fixes due to a code review by Andrew Jones
  - route_determine_nexthop(): don't remove header
  - increased DNS cache
  - included RTCP support and a de-jitter feature
  (submitted by Hans Carlos Hofmann)
* Wed May 16 2007 ro@suse.de
- use libosip2-devel in buildrequires
* Wed Jun 21 2006 ro@suse.de
- update to 0.5.13 incorporating previous cvs fixes
* Fri Jun 16 2006 ro@suse.de
- update to 0.5.12
  Major changes since 0.5.11:
  A "Short-Dial" feature is now available.
  A number of bugfixes have been made. These include some issues
  with Grandstream phones and the "unregister at startup" option,
  as well as other issues with the expiration timeout.
- added current fixes from cvs (jun16th):
  - RTP timeout handling: allow unidirectional data w/o
  terminating connection after timeout.
  - Fixed compiling issue when building on MacOS (Georg Schwarz)
  - A number of correction in debugging code (James Henstridge)
  - REGISTER response generated from siproxd includes
  a Contact header.
  - some I64 architecture issues
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Aug 05 2005 cthiel@suse.de
- update to version 0.5.11
* Fri Feb 04 2005 ro@suse.de
- update to 0.5.10
* Tue Nov 09 2004 ro@suse.de
- update to 0.5.9
* Fri Jul 30 2004 ro@suse.de
- fix build after libosip update
* Mon Jun 28 2004 ro@suse.de
- update to 0.5.7
* Wed Apr 28 2004 ro@suse.de
- update to current version (0.5.5)
* Sun Mar 07 2004 ro@suse.de
- update to 0.5.4
* Mon Feb 02 2004 ro@suse.de
- update to 0.5.2
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Thu Nov 27 2003 ro@suse.de
- update to 0.5.0
- main binary moved to /usr/sbin
* Mon Oct 13 2003 ro@suse.de
- update to 0.4.1
* Fri Sep 26 2003 ro@suse.de
- update to 0.3.6b
* Tue Jun 10 2003 ro@suse.de
- created package (version 0.3.2)
openSUSE Build Service is sponsored by