1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
%define name rtpproxy
%define ver 1.2
%define rel beta.200901120
Name: %name
Version: %ver
Release: %rel%{?dist}
Summary: A symmetric RTP proxy
Group: Applications/Internet
License: BSD
URL: http://www.rtpproxy.org/
Source0: http://www.b2bua.org/chrome/site/rtpproxy-%{version}.tar.gz
Packager: Alfred E. Heggestad <aeh@db.org>
Requires(post,preun): chkconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%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.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m755 rpm/rtpproxy.init \
$RPM_BUILD_ROOT/etc/rc.d/init.d/rtpproxy
%post
if [ "$1" = "1" ]; then
chkconfig --add %name
fi
%preun
if [ "$1" = "0" ]; then
service %name stop >/dev/null 2>&1
/sbin/chkconfig --del %name
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING README
%{_mandir}/man8/*
%attr(755,root,root) %{_bindir}/rtpproxy
%attr(755,root,root) %{_bindir}/makeann
%config %attr(755,root,root) /etc/rc.d/init.d/*
%changelog
* Mon Jan 12 2009 Alfred E. Heggestad <aeh@db.org>
- Updated for version 1.2
* Tue Jan 30 2007 Alfred E. Heggestad <aeh@db.org> - 0.3.1
- Initial build.
|