[packages/minisapserver] - new
qboosh
qboosh at pld-linux.org
Sun Jan 12 20:33:11 CET 2014
commit 2aaac79b1f7e8364637553aec8993676fcc0b7c6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 12 20:33:56 2014 +0100
- new
minisapserver-slp.patch | 25 ++++++++++++++++++++++
minisapserver.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
---
diff --git a/minisapserver.spec b/minisapserver.spec
new file mode 100644
index 0000000..657e09c
--- /dev/null
+++ b/minisapserver.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_without slp # SLP announcing
+#
+Summary: SAP and SLP announcement for the VLC Media Player
+Summary(pl.UTF-8): Rozgłaszanie SAP i SLP dla odtwarzacza multimediów VLC
+Name: minisapserver
+Version: 0.3.8
+Release: 1
+License: GPL v2+
+Group: Networking
+Source0: http://download.videolan.org/videolan/miniSAPserver/latest/%{name}-%{version}.tar.xz
+# Source0-md5: e2969e92d8c7af41f22ee29a6214ad11
+Patch0: %{name}-slp.patch
+URL: http://www.videolan.org/
+BuildRequires: libstdc++-devel
+%{?with_slp:BuildRequires: openslp-devel}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SAPserver announces, using the SAP/SDP or the SLP protocols, MPEG2 TS
+streams produced by for instance VLS. These announces can be received
+by the VLC Media Player o.a.
+
+%description -l pl.UTF-8
+SAPserver rozgłasza przy użyciu protokołów SAP/SDP lub SLP strumienie
+MPEG2 TS utworzone przez np. VLS. Informacje te mogą być odebrane
+następnie np. przez odtwarzacz multimedialny VLC Media Player.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+ --disable-silent-rules \
+ %{?with_slp:--enable-slp}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sap.cfg
+%attr(755,root,root) %{_bindir}/sapserver
+%{_mandir}/man1/sapserver.1*
diff --git a/minisapserver-slp.patch b/minisapserver-slp.patch
new file mode 100644
index 0000000..6948332
--- /dev/null
+++ b/minisapserver-slp.patch
@@ -0,0 +1,25 @@
+--- minisapserver-0.3.8/slp.cpp.orig 2009-03-04 16:09:21.000000000 +0100
++++ minisapserver-0.3.8/slp.cpp 2014-01-12 19:49:56.345401282 +0100
+@@ -30,6 +30,8 @@
+ #include <arpa/inet.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <cstring>
++#include <sstream>
+ #include <string>
+ #include <vector>
+
+@@ -69,7 +71,12 @@
+ if (address.find(':') != string::npos)
+ address = "[" + address + "]";
+
+- string url = "udp:@" + address + ":" + p->GetPort();
++ string url = "udp:@" + address + ":";
++ {
++ ostringstream os;
++ os << p->GetPort();
++ url += os.str();
++ }
+
+ #if 0
+ /* This code is for the new naming scheme after vlc 0.7.0 */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/minisapserver.git/commitdiff/2aaac79b1f7e8364637553aec8993676fcc0b7c6
More information about the pld-cvs-commit
mailing list