File rtpproxy.spec of Package rtpproxy

#
# spec file for package rtpproxy (Version 1.2.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           rtpproxy
Version:        2.0.0
Release:	1
Summary:        A symmetric RTP proxy
Group:          Productivity/Telephony/SIP/Utilities
License:        BSD-2-Clause
URL:            http://www.rtpproxy.org/
Source0:        rtpproxy-%{version}.tar.gz
Source1:        rtpproxy.init
#Patch0:	rtpproxy-path.patch
#Patch1:	rtpproxy-gsm.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	libgsm-devel automake
PreReq:         %insserv_prereq

%description
This is symmetric RTP proxy designed to be used in conjunction with
the SIP Express Router (SER) or any other SIP proxy capable of
rewriting SDP bodies in SIP messages that it processes.

Authors:
--------------
  Maxim Sobolev <sobomax@PBXpress.com> 

%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
aclocal
autoconf
autoheader
automake --add-missing --foreign


%build
%configure
make %{?_smp_mflags}
#%{__strip} rtpproxy makeann

%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__install} -d $RPM_BUILD_ROOT/etc/init.d
%{__install} -m755 %{S:1} \
              $RPM_BUILD_ROOT/etc/init.d/%{name}
#ln -s %{_sysconfdir}/init.d/%{name} $RPM_BUILD_ROOT/%{_sbindir}/rc%{name}


%post
# "$1" has the number of installation of the rpm starting from 1
%{fillup_and_insserv -fy %{name}}

%preun
%stop_on_removal %{name}

%postun
%restart_on_update %{name}
%insserv_cleanup

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS  
%{_mandir}/man8/*
#%attr(755,root,root) %{_sbindir}/*
%attr(755,root,root) %{_bindir}/*
%config %attr(755,root,root) /etc/init.d/*


%changelog
openSUSE Build Service is sponsored by