commit e0d5cb5358f24196062bd10304b6b123feb4e008
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Feb 19 17:15:08 2018 +0000
Mute GCC 8 warnings
smplayer.spec | 7 ++++++-
webserver.patch | 12 ++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/smplayer.spec b/smplayer.spec
index cd74a93..f7c6147 100644
--- a/smplayer.spec
+++ b/smplayer.spec
@@ -3,7 +3,7 @@ Version: 18.2.2
%global smtube_ver 18.1.0
%global smplayer_themes_ver 17.3.0
%global smplayer_skins_ver 15.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A graphical frontend for mplayer and mpv
Group: Applications/Multimedia
@@ -18,6 +18,7 @@ Source4:
http://downloads.sourceforge.net/smplayer/smplayer-skins-%{smpla
Patch0: smplayer-0.8.3-desktop-files.patch
Patch2: smplayer-14.9.0.6966-system-qtsingleapplication.patch
Patch3: smtube-16.3.0-system-qtsingleapplication.patch
+Patch4: webserver.patch
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
@@ -105,6 +106,7 @@ pushd smtube-%{smtube_ver}
# correction for wrong-file-end-of-line-encoding on smtube
%{__sed} -i 's/\r//' *.txt
popd
+%patch4 -p1 -b .webserver
# correction for wrong-file-end-of-line-encoding
%{__sed} -i 's/\r//' *.txt
@@ -208,6 +210,9 @@ fi
%{_datadir}/smplayer/themes/
%changelog
+* Mon Feb 19 2018 Sérgio Basto <sergio(a)serjux.com> - 18.2.2-2
+- Mute GCC 8 warnings
+
* Sun Feb 18 2018 Sérgio Basto <sergio(a)serjux.com> - 18.2.2-1
- Update smplayer to 18.2.2
diff --git a/webserver.patch b/webserver.patch
new file mode 100644
index 0000000..b8df1da
--- /dev/null
+++ b/webserver.patch
@@ -0,0 +1,12 @@
+diff -rup smplayer-18.2.0/webserver/Makefile smplayer-18.2.2/webserver/Makefile
+--- smplayer-18.2.0/webserver/Makefile 2017-01-15 11:13:39.000000000 +0000
++++ smplayer-18.2.2/webserver/Makefile 2018-02-19 17:01:16.489112267 +0000
+@@ -2,7 +2,7 @@ PROG = simple_web_server
+ MODULE_CFLAGS=-DMG_DISABLE_DAV_AUTH -DMG_ENABLE_HTTP_CGI=0 -DMG_ENABLE_THREADS=0
+
+ SOURCES = main.c mongoose.c
+-CFLAGS = -O2 -W -Wall -Werror -Wno-unused-function $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
++CFLAGS = -O2 -W -Wall -Werror -Wno-unused-function -Wno-format-truncation
-Wno-stringop-truncation $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
+
+ ifeq ($(OS), Windows_NT)
+ CFLAGS += -lws2_32