Add missing #include for gcc-11

This commit is contained in:
Jeff Law 2020-10-15 08:46:29 -06:00
parent 3e34a88ce9
commit 3c83ca8322
2 changed files with 17 additions and 1 deletions

12
mmapper-gcc11.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/src/global/entities.cpp b/src/global/entities.cpp
index 9e0e3d1..b6d7f44 100644
--- a/src/global/entities.cpp
+++ b/src/global/entities.cpp
@@ -10,6 +10,7 @@
#include <stdexcept>
#include <unordered_map>
#include <vector>
+#include <limits>
#include <QByteArray>
#include <QHash>
#include <QString>

View File

@ -1,12 +1,13 @@
Name: mmapper
Version: 20.10.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Graphical MUME mapper
License: GPLv2+
URL: https://github.com/MUME/MMapper
Source0: https://github.com/MUME/MMapper/archive/v%{version}/MMapper-%{version}.tar.gz
Source1: https://github.com/g-truc/glm/releases/download/0.9.9.7/glm-0.9.9.7.zip
Patch0: mmapper-gcc11.patch
BuildRequires: /usr/bin/appstream-util
BuildRequires: cmake
@ -64,6 +65,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.mume.MMapper.d
%changelog
* Thu Oct 15 2020 Jeff Law <law@redhat.com> - 20.10.0-2
- Add missing #include for gcc-11
* Wed Oct 14 2020 Kalev Lember <klember@redhat.com> - 20.10.0-1
- Update to 20.10.0