File: rtpproxy.spec

package info (click to toggle)
rtpproxy 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,080 kB
  • ctags: 463
  • sloc: sh: 8,395; ansic: 6,219; xml: 788; makefile: 111
file content (63 lines) | stat: -rw-r--r-- 1,549 bytes parent folder | download | duplicates (4)
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.