Accepting request 692997 from KDE:Extra
- Add fix-build-with-qt-5.13.patch OBS-URL: https://build.opensuse.org/request/show/692997 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gammaray?expand=0&rev=9
This commit is contained in:
commit
f4250dee9d
21
fix-build-with-qt-5.13.patch
Normal file
21
fix-build-with-qt-5.13.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
commit 3cb4f2834eac0f422712a837c425a43114af586c
|
||||||
|
Author: Kevin Funk <kevin.funk@kdab.com>
|
||||||
|
Date: Tue Mar 12 10:14:43 2019 +0100
|
||||||
|
|
||||||
|
Adapt to removal of QQmlType::createSize in 5.13
|
||||||
|
|
||||||
|
diff --git a/plugins/qmlsupport/qmlsupport.cpp b/plugins/qmlsupport/qmlsupport.cpp
|
||||||
|
index 019a847f..0c1d4c45 100644
|
||||||
|
--- a/plugins/qmlsupport/qmlsupport.cpp
|
||||||
|
+++ b/plugins/qmlsupport/qmlsupport.cpp
|
||||||
|
@@ -356,7 +356,9 @@ QmlSupport::QmlSupport(Probe *probe, QObject *parent)
|
||||||
|
MO_ADD_PROPERTY_RO(QQmlType, elementName);
|
||||||
|
MO_ADD_PROPERTY_RO(QQmlType, majorVersion);
|
||||||
|
MO_ADD_PROPERTY_RO(QQmlType, minorVersion);
|
||||||
|
- MO_ADD_PROPERTY_RO(QQmlType, createSize);
|
||||||
|
+#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
|
||||||
|
+ MO_ADD_PROPERTY_RO(QQmlType, createSize); // got removed in v5.13.0-alpha1
|
||||||
|
+#endif
|
||||||
|
MO_ADD_PROPERTY_RO(QQmlType, isCreatable);
|
||||||
|
MO_ADD_PROPERTY_RO(QQmlType, isExtendedType);
|
||||||
|
MO_ADD_PROPERTY_RO(QQmlType, isSingleton);
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 10 18:04:06 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Add fix-build-with-qt-5.13.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 2 13:26:04 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Remove the vtk-tcl dependency.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 28 21:01:00 UTC 2019 - wbauer@tmo.at
|
Thu Feb 28 21:01:00 UTC 2019 - wbauer@tmo.at
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ URL: http://www.kdab.com/gammaray
|
|||||||
Source: https://github.com/KDAB/GammaRay/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/KDAB/GammaRay/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM Fix_icons_installation.patch -- Don't try to install multiple copies in exotic subdirs
|
# PATCH-FIX-UPSTREAM Fix_icons_installation.patch -- Don't try to install multiple copies in exotic subdirs
|
||||||
Patch0: Fix_icons_installation.patch
|
Patch0: Fix_icons_installation.patch
|
||||||
|
# PATCH-FIX-UPSTREAM fix-build-with-qt-5.13.patch
|
||||||
|
Patch1: fix-build-with-qt-5.13.patch
|
||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
BuildRequires: cmake >= 3.1
|
BuildRequires: cmake >= 3.1
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
@ -48,7 +50,6 @@ BuildRequires: update-desktop-files
|
|||||||
BuildRequires: vtk-devel
|
BuildRequires: vtk-devel
|
||||||
BuildRequires: vtk-java
|
BuildRequires: vtk-java
|
||||||
BuildRequires: vtk-qt
|
BuildRequires: vtk-qt
|
||||||
BuildRequires: vtk-tcl
|
|
||||||
BuildRequires: wayland-devel
|
BuildRequires: wayland-devel
|
||||||
BuildRequires: cmake(KF5CoreAddons)
|
BuildRequires: cmake(KF5CoreAddons)
|
||||||
BuildRequires: cmake(Qt5Bluetooth) >= 5.3.0
|
BuildRequires: cmake(Qt5Bluetooth) >= 5.3.0
|
||||||
@ -109,23 +110,18 @@ frameworks in Qt. Development files.
|
|||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if "%{_lib}" == "lib64"
|
%cmake \
|
||||||
LIBSUFFIX="-DLIB_SUFFIX=64"
|
|
||||||
%else
|
|
||||||
LIBSUFFIX=""
|
|
||||||
%endif
|
|
||||||
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
||||||
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
||||||
-DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules \
|
-DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules \
|
||||||
-DQCH_INSTALL_DIR=%{_datadir}/gammaray/ \
|
-DQCH_INSTALL_DIR=%{_datadir}/gammaray/ \
|
||||||
-DQDOC_EXECUTABLE=%{_libqt5_bindir}/qdoc \
|
-DQDOC_EXECUTABLE=%{_libqt5_bindir}/qdoc \
|
||||||
-DQHELPGEN_EXECUTABLE=%{_libqt5_bindir}/qhelpgenerator \
|
-DQHELPGEN_EXECUTABLE=%{_libqt5_bindir}/qhelpgenerator
|
||||||
$LIBSUFFIX
|
|
||||||
make VERBOSE=1 %{?_smp_mflags}
|
# Still not available on all leap flavors
|
||||||
|
# %%cmake_build
|
||||||
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%cmake_install
|
||||||
|
|
||||||
install -d -m 755 %{buildroot}%{_docdir}/%{name}
|
install -d -m 755 %{buildroot}%{_docdir}/%{name}
|
||||||
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
|
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user