Add patch to fix FTBFS

This commit is contained in:
Sandro Mani 2016-02-04 11:02:12 +01:00
parent 9b2e8385a1
commit 73133510c5
2 changed files with 18 additions and 1 deletions

11
ftbfs.patch Normal file
View File

@ -0,0 +1,11 @@
diff -rupN gimagereader-3.1.2/qt/src/Displayer.cc gimagereader-3.1.2-new/qt/src/Displayer.cc
--- gimagereader-3.1.2/qt/src/Displayer.cc 2015-06-30 17:36:39.000000000 +0200
+++ gimagereader-3.1.2-new/qt/src/Displayer.cc 2016-02-04 09:32:25.701479818 +0100
@@ -32,6 +32,7 @@
#include <QWheelEvent>
#include <tesseract/baseapi.h>
#include <cassert>
+#include <cmath>
class GraphicsScene : public QGraphicsScene

View File

@ -1,11 +1,13 @@
Name: gimagereader
Version: 3.1.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A front-end to tesseract-ocr
License: GPLv3+
URL: https://github.com/manisandro/gimagereader
Source0: https://github.com/manisandro/gimagereader/releases/download/v%{version}/%{name}-%{version}.tar.xz
# Fix FTBFS
Patch0: ftbfs.patch
BuildRequires: cmake
BuildRequires: gtkmm30-devel
@ -77,6 +79,7 @@ Common files for %{name}.
%prep
%setup -q
%patch0 -p1
%build
@ -159,6 +162,9 @@ fi
%{_datadir}/applications/%{name}-qt5.desktop
%changelog
* Thu Feb 04 2016 Sandro Mani <manisandro@gmail.com> - 3.1.2-5
- Add patch to fix FTBFS
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild