--- /dev/null
+--- mythplugins-0.26.1/mythmusic/mythmusic/importmusic.cpp~ 2013-08-15 16:44:02.000000000 +0200
++++ mythplugins-0.26.1/mythmusic/mythmusic/importmusic.cpp 2021-09-26 12:23:50.262781479 +0200
+@@ -1114,13 +1114,13 @@
+ QFileInfo fi(filename);
+ filename = fi.fileName();
+
+- if (filename.contains("front", Qt::CaseInsensitive) > 0)
++ if (filename.contains("front", Qt::CaseInsensitive) != 0)
+ m_typeList->SetValue(tr("Front Cover"));
+- else if (filename.contains("back", Qt::CaseInsensitive) > 0)
++ else if (filename.contains("back", Qt::CaseInsensitive) != 0)
+ m_typeList->SetValue(tr("Back Cover"));
+- else if (filename.contains("inlay", Qt::CaseInsensitive) > 0)
++ else if (filename.contains("inlay", Qt::CaseInsensitive) != 0)
+ m_typeList->SetValue(tr("Inlay"));
+- else if (filename.contains("cd", Qt::CaseInsensitive) > 0)
++ else if (filename.contains("cd", Qt::CaseInsensitive) != 0)
+ m_typeList->SetValue(tr("CD"));
+ else
+ m_typeList->SetValue(tr("<Unknown>"));
-diff -urN mythplugins-0.22.orig/mytharchive/mytharchivehelper/main.cpp mythplugins-0.22/mytharchive/mytharchivehelper/main.cpp
---- mythplugins-0.22.orig/mytharchive/mytharchivehelper/main.cpp 2009-02-12 13:53:35.000000000 +0100
-+++ mythplugins-0.22/mytharchive/mytharchivehelper/main.cpp 2009-02-12 18:00:33.000000000 +0100
-@@ -39,6 +39,10 @@
- // mytharchive headers
- #include "../mytharchive/archiveutil.h"
+diff -urNp -x '*.orig' mythplugins-0.26.1.org/mytharchive/mytharchivehelper/main.cpp mythplugins-0.26.1/mytharchive/mytharchivehelper/main.cpp
+--- mythplugins-0.26.1.org/mytharchive/mytharchivehelper/main.cpp 2013-08-15 16:44:02.000000000 +0200
++++ mythplugins-0.26.1/mytharchive/mytharchivehelper/main.cpp 2021-09-26 12:20:08.236252907 +0200
+@@ -103,6 +103,10 @@ namespace
+ };
+ }
+#ifndef INT64_C // Used in ffmpeg headers to define some constants
+#define INT64_C(v) (v ## LL)
Summary(pl.UTF-8): Główne wtyczki MythTV
Name: mythplugins
Version: 0.26.1
-Release: 9
+Release: 10
License: GPL v2
Group: Applications/Multimedia
Source0: ftp://ftp.osuosl.org/pub/mythtv/%{name}-%{version}.tar.bz2
Patch0: mythweb-chdir.patch
Patch1: system-zmq.patch
Patch2: cxx11.patch
+Patch3: gcc11.patch
Patch10: %{name}-compile_fixes_for_qt_4_7.patch
Patch20: %{name}-mytharchive-INT64.patch
URL: http://www.mythtv.org/
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
#%patch10 -p1
%patch20 -p1
# lib64 fix - enable to update patch
-%if %{_lib} != "lib" && 0
+%if "%{_lib}" != "lib" && 0
find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
xargs grep -l /lib/ . | xargs sed -i -e '
s,%{_prefix}/lib/,/%{_lib}/,g
-diff -dur -x'*~' mythplugins-0.22.orig/mythweb/mythweb.php mythplugins-0.22/mythweb/mythweb.php
---- mythplugins-0.22.orig/mythweb/mythweb.php 2009-01-20 07:42:03.000000000 +0100
-+++ mythplugins-0.22/mythweb/mythweb.php 2010-01-23 14:34:35.000000000 +0100
-@@ -12,6 +12,9 @@
+diff -urNp -x '*.orig' mythplugins-0.26.1.org/mythweb/mythweb.php mythplugins-0.26.1/mythweb/mythweb.php
+--- mythplugins-0.26.1.org/mythweb/mythweb.php 2013-06-26 23:10:02.000000000 +0200
++++ mythplugins-0.26.1/mythweb/mythweb.php 2021-09-26 12:19:53.182932909 +0200
+@@ -8,6 +8,9 @@
*
/**/
+ chdir('/usr/share/mythweb');
+
// Add a custom include path?
- if (!empty($_SERVER['include_path']) && $_SERVER['include_path'] != '.')
+ if (!empty($_SERVER['include_path']) && $_SERVER['include_path'] != '.') {
ini_set('include_path', $_SERVER['include_path'].PATH_SEPARATOR.ini_get('include_path'));