File project.diff of Package qtcurve

--- qtcurve.spec.orig
+++ qtcurve.spec
@@ -16,6 +16,8 @@
 #
 
 
+%define build_qt4 0
+
 %bcond_with lang
 Name:           qtcurve
 Version:        1.9.0
@@ -27,6 +29,7 @@ URL:            https://github.com/KDE/q
 Source0:        qtcurve-%{version}.tar.gz
 Source1:        baselibs.conf
 Patch0:         0001-utils-gtkprops-Remove-unnecessary-constexpr-this-is-.patch
+Patch1:         0002-fix-qt5.15-build.patch
 BuildRequires:  cmake >= 2.8.12
 BuildRequires:  extra-cmake-modules
 BuildRequires:  frameworkintegration-devel
@@ -50,7 +53,7 @@ BuildRequires:  cmake(Qt5Widgets)
 BuildRequires:  cmake(Qt5X11Extras)
 BuildRequires:  pkgconfig(x11-xcb)
 BuildRequires:  pkgconfig(xcb)
-%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200
+%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200 && %{build_qt4}
 BuildRequires:  kde4-filesystem
 BuildRequires:  kdebase4-workspace-devel
 %endif
@@ -74,7 +77,7 @@ Group:          System/GUI/KDE
 QtCurve is a set of widget styles available for Qt and GTK+.
 This package cointains library for common drawing routines.
 
-%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200
+%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200 && %{build_qt4}
 %package kde4
 Summary:        QtCurve style for KDE 4
 Group:          System/GUI/KDE
@@ -106,6 +109,7 @@ of widget styles available for Qt and GT
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %cmake_kf5 -d build -- -DLIB_INSTALL_DIR=%{_libdir}
@@ -134,7 +138,7 @@ of widget styles available for Qt and GT
 # We don't need the devel symlink
 %exclude %{_libdir}/libqtcurve-cairo.so
 
-%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200
+%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200 && %{build_qt4}
 %files kde4
 %license COPYING
 %doc ChangeLog.md README.md TODO.md
openSUSE Build Service is sponsored by