]> git.pld-linux.org Git - packages/minisapserver.git/commitdiff
- new master auto/th/minisapserver-0.3.8-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 12 Jan 2014 19:33:56 +0000 (20:33 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 12 Jan 2014 19:33:56 +0000 (20:33 +0100)
minisapserver-slp.patch [new file with mode: 0644]
minisapserver.spec [new file with mode: 0644]

diff --git a/minisapserver-slp.patch b/minisapserver-slp.patch
new file mode 100644 (file)
index 0000000..6948332
--- /dev/null
@@ -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 */
diff --git a/minisapserver.spec b/minisapserver.spec
new file mode 100644 (file)
index 0000000..657e09c
--- /dev/null
@@ -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*
This page took 0.095855 seconds and 4 git commands to generate.