commit 0ad57dd31ec3797780d0a10302fe3c8243d75405
Author: Martin Gansser <mgansser(a)online.de>
Date: Wed Dec 16 17:22:51 2020 +0100
Update to 20.12.16
Add %{name}-numeric_limit_fix.patch
qmplay2-numeric_limit_fix.patch | 10 ++++++++++
qmplay2.spec | 4 +++-
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/qmplay2-numeric_limit_fix.patch b/qmplay2-numeric_limit_fix.patch
new file mode 100644
index 0000000..e9276f2
--- /dev/null
+++ b/qmplay2-numeric_limit_fix.patch
@@ -0,0 +1,10 @@
+--- src/modules/Modplug/libmodplug/load_j2b.cpp.orig 2020-12-16 16:42:25.431632053 +0100
++++ src/modules/Modplug/libmodplug/load_j2b.cpp 2020-12-16 16:44:04.265138277 +0100
+@@ -14,6 +14,7 @@
+ #include "stdafx.hpp"
+ #include "sndfile.hpp"
+
++#include <limits>
+ #include <QByteArray>
+ #include <QtEndian>
+
diff --git a/qmplay2.spec b/qmplay2.spec
index 59cf181..2826dc8 100644
--- a/qmplay2.spec
+++ b/qmplay2.spec
@@ -9,6 +9,7 @@ Summary: A Qt based media player, streamer and downloader
License: LGPLv3+
URL:
http://zaps166.sourceforge.net/?app=QMPlay2
Source:
https://github.com/zaps166/QMPlay2/archive/%{version}.tar.gz#/%{pname}-%{...
+Patch0: %{name}-numeric_limit_fix.patch
BuildRequires: cmake3
BuildRequires: ninja-build
@@ -62,7 +63,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
It's a development package for %{name}.
%prep
-%autosetup -p1 -n %{pname}-%{version}
+%autosetup -p0 -n %{pname}-%{version}
# E: invalid-desktopfile /usr/share/applications/QMPlay2.desktop file
# contains group "PlayPause Shortcut Group", but groups extending the
@@ -122,6 +123,7 @@ appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/*.appdata.xml
%changelog
* Wed Dec 16 2020 Martin Gansser <martinkg(a)fedoraproject.org> - 20.12.16-1
- Update to 20.12.16
+- Add %%{name}-numeric_limit_fix.patch
* Wed Dec 16 2020 Martin Gansser <martinkg(a)fedoraproject.org> - 20.12.07-1
- Update to 20.12.07