SPECS: mediaproxy.spec (NEW) - new package

jajcus jajcus at pld-linux.org
Fri Mar 6 10:41:09 CET 2009


Author: jajcus                       Date: Fri Mar  6 09:41:09 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new package

---- Files affected:
SPECS:
   mediaproxy.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mediaproxy.spec
diff -u /dev/null SPECS/mediaproxy.spec:1.1
--- /dev/null	Fri Mar  6 10:41:09 2009
+++ SPECS/mediaproxy.spec	Fri Mar  6 10:41:04 2009
@@ -0,0 +1,173 @@
+# $Revision$, $Date$
+#
+Summary:	MediaProxy - a media relay for RTP/RTCP and UDP streams
+Name:		mediaproxy
+Version:	2.3.2
+Release:	1
+License:	GPL v2
+Group:		Networking/Daemons
+Source0:	http://download.ag-projects.com/MediaProxy/%{name}-%{version}.tar.gz
+# Source0-md5:	c89ced211727da83d10d2cfa4bd5c0d3
+Source1:	media-dispatcher.sysconfig
+Source2:	media-dispatcher.init
+Source3:	media-relay.sysconfig
+Source4:	media-relay.init
+URL:		http://mediaproxy.ag-projects.com/
+BuildRequires:	libnetfilter_conntrack-devel
+BuildRequires:	python >= 1:2.5
+BuildRequires:	python-devel >= 1:2.5
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.228
+%pyrequires_eq	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MediaProxy is a media relay for RTP/RTCP and UDP streams that works in tandem
+with OpenSIPS to provide NAT traversal capability for media streams from SIP
+user agents located behind NAT. When using MediaProxy, NAT traversal for RTP
+media will work without any settings in the SIP User Agents or the NAT router.
+
+%package common
+Summary:	MediaProxy - a media relay for RTP/RTCP and UDP streams
+Group:		Networking/Daemons
+Requires:	python-SQLObject
+Requires:	python-TwistedCore
+Requires:	python-application
+Requires:	python-cjson
+Requires:	python-gnutls
+Requires:	python-pyrad
+
+%description common
+MediaProxy is a media relay for RTP/RTCP and UDP streams that works in tandem
+with OpenSIPS to provide NAT traversal capability for media streams from SIP
+user agents located behind NAT. When using MediaProxy, NAT traversal for RTP
+media will work without any settings in the SIP User Agents or the NAT router.
+
+This package contains files shared my MediaProxy dispatcher and relay.
+
+%package dispatcher
+Summary:	MediaProxy - a media relay for RTP/RTCP and UDP streams
+Group:		Networking/Daemons
+Requires:	%{name}-common = %{version}-%{release}
+Requires(post,preun):	/sbin/chkconfig
+Suggests:	opensips
+
+%description dispatcher
+MediaProxy is a media relay for RTP/RTCP and UDP streams that works in tandem
+with OpenSIPS to provide NAT traversal capability for media streams from SIP
+user agents located behind NAT. When using MediaProxy, NAT traversal for RTP
+media will work without any settings in the SIP User Agents or the NAT router.
+
+This package contains the dispatcher part of MediaProxy. The dispatcher
+component always runs on the same host as OpenSIPS and communicates with its
+mediaproxy module through a UNIX domain socket. The relay(s) connect to the
+dispatcher using TLS. This relay component may be on the same or on a different
+host as OpenSIPS. There may be several relays for the dispatcher to choose from
+and a relay may service more than one dispatcher.
+
+%package relay
+Summary:	MediaProxy - a media relay for RTP/RTCP and UDP streams
+Group:		Networking/Daemons
+Requires:	%{name}-common = %{version}-%{release}
+Requires(post,preun):	/sbin/chkconfig
+Suggests:	opensips
+
+%description relay
+MediaProxy is a media relay for RTP/RTCP and UDP streams that works in tandem
+with OpenSIPS to provide NAT traversal capability for media streams from SIP
+user agents located behind NAT. When using MediaProxy, NAT traversal for RTP
+media will work without any settings in the SIP User Agents or the NAT router.
+
+This package contains the media relay part of MediaProxy. The relay(s) connect
+to the dispatcher using TLS. This relay component may be on the same or on a
+different host as OpenSIPS. There may be several relays for the dispatcher to
+choose from and a relay may service more than one dispatcher.
+
+
+%prep
+%setup -q
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/var/run/%{name}} \
+	$RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d}
+
+python setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+install config.ini.sample $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.ini
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/media-dispatcher
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/media-dispatcher
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/media-relay
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/media-relay
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post dispatcher
+/sbin/chkconfig --add media-dispatcher
+%service media-relay restart
+
+%post relay
+%service media-dispatcher restart
+/sbin/chkconfig --add media-relay
+
+%preun dispatcher
+if [ "$1" = "0" ]; then
+	%service -q media-dispatcher stop
+	/sbin/chkconfig --del media-dispatcher
+fi
+
+%preun relay
+if [ "$1" = "0" ]; then
+	%service -q media-relay stop
+	/sbin/chkconfig --del media-relay
+fi
+
+%files common
+%defattr(644,root,root,755)
+%doc README TODO
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/config.ini
+%{py_sitedir}/*-*.egg-info
+%dir %{py_sitedir}/%{name}
+%{py_sitedir}/%{name}/*.py[co]
+%dir %{py_sitedir}/%{name}/interfaces
+%{py_sitedir}/%{name}/interfaces/*.py[co]
+%dir %{py_sitedir}/%{name}/interfaces/accounting
+%{py_sitedir}/%{name}/interfaces/accounting/*.py[co]
+%dir %{py_sitedir}/%{name}/interfaces/system
+%{py_sitedir}/%{name}/interfaces/system/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{name}/interfaces/system/*.so
+%dir /var/run/mediaproxy
+
+%files dispatcher
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/media-dispatcher
+%attr(754,root,root) /etc/rc.d/init.d/media-dispatcher
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/media-dispatcher
+
+%files relay
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/media-relay
+%attr(754,root,root) /etc/rc.d/init.d/media-relay
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/media-relay
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/03/06 09:41:04  jajcus
+- new package
+
================================================================


More information about the pld-cvs-commit mailing list