]> git.pld-linux.org Git - packages/dvbstream.git/commitdiff
- updated to 0.8.2 auto/th/dvbstream-0.8.2-1
authorŁukasz Kieś <kiesiu@pld-linux.org>
Fri, 3 May 2013 17:01:35 +0000 (19:01 +0200)
committerŁukasz Kieś <kiesiu@pld-linux.org>
Fri, 3 May 2013 17:01:35 +0000 (19:01 +0200)
- added patch to fix format-security error

dvbstream.spec
format-security.patch [new file with mode: 0644]

index bb3c316631bc237c6144459576afb3ed0bb15f05..38106ddf162f21222971f5a932456624690ced9f 100644 (file)
@@ -1,27 +1,29 @@
 Summary:       MPEG-2 streaming over LAN
 Name:          dvbstream
-Version:       0.8
+Version:       0.8.2
 Release:       1
 License:       GPL v2+
 Group:         Networking
 Source0:       http://www.orcas.net/dvbstream/%{name}-%{version}.tar.bz2
-# Source0-md5: 09b1eba583c8b0ba5d04bf5cd2dd58a0
+# Source0-md5: 7d5fcc3b3ac8089eae1bc28c87ce290c
+Patch0:                format-security.patch
 URL:           http://www.orcas.net/dvbstream/
 BuildRequires: ncurses-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This package can be used to broadcast program or transport stream
-(entire or up to 8 PIDs) over LAN using the RTP protocol.
-Even though this is enhanced version of original program, there are
-newer projects based on dvbstream, like mumudvb.
+(entire or up to 8 PIDs) over LAN using the RTP protocol. Even though
+this is enhanced version of original program, there are newer projects
+based on dvbstream, like mumudvb.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
 %{__make} \
-       CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I%{_includedir}/ncurses"
+       CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/ncurses"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..7091808
--- /dev/null
@@ -0,0 +1,12 @@
+diff -uNr dvbstream.old/dvbstream.c dvbstream/dvbstream.c
+--- dvbstream.old/dvbstream.c  2012-12-28 00:27:02.000000000 +0100
++++ dvbstream/dvbstream.c      2013-05-03 18:59:50.265518063 +0200
+@@ -1685,7 +1685,7 @@
+                                                       struct MESSAGE *pMessageLoop = pLocalMessages;
+                                                       if (pLocalMessages != NULL) {
+                                                               while (pMessageLoop != NULL) {
+-                                                                      wprintw(pMainWindow, pMessageLoop->szMessage);
++                                                                      wprintw(pMainWindow, "%s", pMessageLoop->szMessage);
+                                                                       //wrefresh(pMainWindow);
+                                                                       struct MESSAGE *pFree = pMessageLoop;
+                                                                       pMessageLoop = pMessageLoop->pNext;
This page took 0.074331 seconds and 4 git commands to generate.