Add compatibility with qml-autoreqprov

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtquickcontrols?expand=0&rev=12
This commit is contained in:
Luca Beltrame 2021-01-22 15:04:57 +00:00 committed by Git OBS Bridge
parent 15c66db744
commit c3c005d71e
3 changed files with 36 additions and 2 deletions

18
fix-handle-deps.patch Normal file
View File

@ -0,0 +1,18 @@
From: Fabian Vogt <fabian@ritter-vogt.de>
Subject: Fix unfullfillable import in Handle.qml
The module only exists in version 1.0.
Index: qtquickcontrols-everywhere-src-5.15.2/src/extras/Private/Handle.qml
===================================================================
--- qtquickcontrols-everywhere-src-5.15.2.orig/src/extras/Private/Handle.qml
+++ qtquickcontrols-everywhere-src-5.15.2/src/extras/Private/Handle.qml
@@ -41,7 +41,7 @@ import QtQuick 2.0
import QtGraphicalEffects 1.0
import QtQuick.Controls.Styles 1.4
import QtQuick.Controls.Private 1.0
-import QtQuick.Extras.Private 1.1
+import QtQuick.Extras.Private 1.0
import QtQuick.Extras.Private.CppUtils 1.0
Control {

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sat Jan 16 16:25:13 UTC 2021 - Fabian Vogt <fabian@ritter-vogt.de>
- Add compatibility with qml-autoreqprov
-------------------------------------------------------------------
Mon Dec 28 21:58:45 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
- Add patch to fix unfullfillable import:
* fix-handle-deps.patch
-------------------------------------------------------------------
Fri Nov 20 12:09:30 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package libqt5-qtquickcontrols
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,9 @@
#
# Internal QML imports of examples
%global __requires_exclude qmlimport\\(.*example.*
%define qt5_snapshot 0
%define base_name libqt5
%define real_version 5.15.2
@ -29,6 +32,8 @@ License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
Group: Development/Libraries/X11
URL: https://www.qt.io
Source: https://download.qt.io/official_releases/qt/5.15/%{real_version}/submodules/%{tar_version}.tar.xz
# PATCH-FIX-OPENSUSE
Patch1: fix-handle-deps.patch
BuildRequires: fdupes
BuildRequires: libQt5Core-private-headers-devel >= %{version}
BuildRequires: libQt5Gui-private-headers-devel >= %{version}
@ -51,8 +56,8 @@ can be used to build complete interfaces in Qt Quick.
%package examples
Summary: Qt5 quickcontrols examples
Group: Development/Libraries/X11
License: BSD-3-Clause
Group: Development/Libraries/X11
%description examples
Examples for libqt5-qtquickcontrols module.