diff --git a/yagf-0.9.5-nothreads.patch b/yagf-0.9.5-nothreads.patch new file mode 100644 index 0000000..229792c --- /dev/null +++ b/yagf-0.9.5-nothreads.patch @@ -0,0 +1,12 @@ +diff -urp yagf-0.9.5/src/core/qipgrayscaleimage.cpp yagf-0.9.5-nothreads/src/core/qipgrayscaleimage.cpp +--- yagf-0.9.5/src/core/qipgrayscaleimage.cpp 2015-02-17 07:50:24.000000000 +0600 ++++ yagf-0.9.5-nothreads/src/core/qipgrayscaleimage.cpp 2017-03-22 10:06:34.427939051 +0700 +@@ -27,7 +27,7 @@ + #include + + +-#define IPRIT_MULTITHREADING ++//#define IPRIT_MULTITHREADING + + const QString fheader = QString::fromUtf8("YGF1"); + diff --git a/yagf.spec b/yagf.spec index 5524f44..0951b58 100644 --- a/yagf.spec +++ b/yagf.spec @@ -1,6 +1,6 @@ Name: yagf Version: 0.9.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Graphical front-end for cuneiform Group: Applications/Multimedia @@ -9,7 +9,8 @@ URL: http://sourceforge.net/projects/yagf-ocr/ Source: https://downloads.sourceforge.net/yagf-ocr/files/%{name}-%{version}.tar.gz # fix .desktop file -Patch: yagf-0.9.1-Source-desktop.patch +Patch1: yagf-0.9.1-Source-desktop.patch +Patch1: yagf-0.9.5-nothreads.patch BuildRequires: cmake BuildRequires: desktop-file-utils @@ -28,7 +29,8 @@ several images sequentially. %prep %setup -q -%patch -p1 -b .desktop +%patch1 -p1 -b .desktop +%patch2 -p1 -b .nothreads # fix line brake for debug package dos2unix src/mainform.cpp src/mainform.h @@ -74,6 +76,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/appdata/YAGF.appdata.xml %changelog +* Wed Mar 22 2017 Dmitrij S. Kryzhevich 0.9.5-4 +- Possible fix for rhbz #1429052. + * Sat Feb 11 2017 Fedora Release Engineering - 0.9.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild