parent
c20087ac01
commit
3407ee2471
|
@ -0,0 +1,24 @@
|
|||
From 4c10d9859765ae76efb8fd86d44a033003bec7e7 Mon Sep 17 00:00:00 2001
|
||||
From: Qiyu Yan <yanqiyu@fedoraproject.org>
|
||||
Date: Sun, 13 Sep 2020 14:46:24 +0800
|
||||
Subject: [PATCH] Fix build for qt 5.15
|
||||
|
||||
---
|
||||
modules/QtPDF/src/PDFBackend.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/modules/QtPDF/src/PDFBackend.cpp b/modules/QtPDF/src/PDFBackend.cpp
|
||||
index 0305d87a..0a28c491 100644
|
||||
--- a/modules/QtPDF/src/PDFBackend.cpp
|
||||
+++ b/modules/QtPDF/src/PDFBackend.cpp
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <PDFBackend.h>
|
||||
#include <QPainter>
|
||||
#include <QApplication>
|
||||
+#include <QPainterPath>
|
||||
|
||||
namespace QtPDF {
|
||||
|
||||
--
|
||||
2.26.2
|
||||
|
Binary file not shown.
|
@ -1,14 +1,24 @@
|
|||
%global __provides_exclude_from ^%{_libdir}/%{name}/.*\\.so$
|
||||
|
||||
# Building with LTO on will lead to segfaults at start
|
||||
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1883675
|
||||
# Disabling LTO now until upstream fix
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
Name: texworks
|
||||
Version: 0.6.5
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: A simple IDE for authoring TeX documents
|
||||
|
||||
License: GPLv2+
|
||||
URL: http://tug.org/texworks/
|
||||
Source0: https://github.com/TeXworks/texworks/archive/release-%{version}/texworks-release-%{version}.tar.gz
|
||||
|
||||
# Fix for FTBTS with Qt 5.15.1
|
||||
# See: https://koji.fedoraproject.org/koji/taskinfo?taskID=51256818
|
||||
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1883675
|
||||
Patch0: 0001-Fix-build-for-qt-5.15.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: hunspell-devel
|
||||
|
@ -36,6 +46,7 @@ You may install the texlive-* packages to make this program useful.
|
|||
|
||||
%prep
|
||||
%setup -q -n %{name}-release-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%cmake -DWITH_PYTHON=ON -DTW_BUILD_ID=Fedora -DTeXworks_DIC_DIR=%{_datadir}/myspell -DTeXworks_PLUGIN_DIR=%{_libdir}/texworks -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
@ -57,6 +68,10 @@ rm %{buildroot}/%{_docdir}/%{name}/COPYING
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 30 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0.6.5-6
|
||||
- fixes #1883675 by disabling LTO
|
||||
- added a fix for FTBTS with QT 5.15
|
||||
|
||||
* Mon Aug 03 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0.6.5-5
|
||||
- Improve compatibility with new CMake macro
|
||||
|
||||
|
|
Loading…
Reference in New Issue