From 26e33a232f68a148b5b5767d9fc7f786af4e5d03ab961f34a70c0b79f217ab9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 19:54:40 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-PyQt6-WebEngine revision de23ca08c4efe535f0c285966f273992 --- .gitattributes | 23 ++++++++ PyQt6_WebEngine-6.6.0.tar.gz | 3 + python-PyQt6-WebEngine.changes | 61 +++++++++++++++++++ python-PyQt6-WebEngine.spec | 103 +++++++++++++++++++++++++++++++++ support-python3.6.patch | 13 +++++ 5 files changed, 203 insertions(+) create mode 100644 .gitattributes create mode 100644 PyQt6_WebEngine-6.6.0.tar.gz create mode 100644 python-PyQt6-WebEngine.changes create mode 100644 python-PyQt6-WebEngine.spec create mode 100644 support-python3.6.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/PyQt6_WebEngine-6.6.0.tar.gz b/PyQt6_WebEngine-6.6.0.tar.gz new file mode 100644 index 0000000..b8463ac --- /dev/null +++ b/PyQt6_WebEngine-6.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d50b984c3f85e409e692b156132721522d4e8cf9b6c25e0cf927eea2dfb39487 +size 31817 diff --git a/python-PyQt6-WebEngine.changes b/python-PyQt6-WebEngine.changes new file mode 100644 index 0000000..934e9c6 --- /dev/null +++ b/python-PyQt6-WebEngine.changes @@ -0,0 +1,61 @@ +------------------------------------------------------------------- +Mon Oct 30 14:42:29 UTC 2023 - Markéta Machová + +- Update to 6.6.0 + * This adds support for Qt v6.6. + +------------------------------------------------------------------- +Wed Jun 28 13:51:47 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Apr 24 20:15:00 UTC 2023 - Ben Greiner + +- Update to 6.5.0 + * Added support for Qt v6.5. + +------------------------------------------------------------------- +Wed Mar 15 14:08:48 UTC 2023 - Antonio Larrosa + +- Add patch to support python 3.6 in order to build for SLE/Leap: + * support-python3.6.patch + +------------------------------------------------------------------- +Mon Oct 3 17:51:51 UTC 2022 - Ben Greiner + +- Update to version 6.4.0 + * Added support for Qt v6.4. + +------------------------------------------------------------------- +Tue Jun 21 10:15:28 UTC 2022 - Ben Greiner + +- Update to version 6.3.1 + * Added qWebEngineVersion(), qWebEngineChromiumVersion(), and + qWebEngineChromiumSecurityPatchVersion(). + * Bug fixes. + +------------------------------------------------------------------- +Wed Apr 13 08:27:36 UTC 2022 - Ben Greiner + +- Update to version 6.3.0 + * Added support for Qt v6.3. + * Bug fixes. +- Remove concatenate workaround + +------------------------------------------------------------------- +Sat Apr 9 10:19:42 UTC 2022 - Ben Greiner + +- Exclude 32-bit platforms because QtWebengine 6.3.0 does not + support them. + +------------------------------------------------------------------- +Fri Oct 29 15:15:04 UTC 2021 - Ben Greiner + +- Update to version 6.2.1 + * Bug Fixes + +------------------------------------------------------------------- +Sun Oct 3 13:21:55 UTC 2021 - Ben Greiner + +- initial specfile for release 6.2.0 diff --git a/python-PyQt6-WebEngine.spec b/python-PyQt6-WebEngine.spec new file mode 100644 index 0000000..eb9cbf3 --- /dev/null +++ b/python-PyQt6-WebEngine.spec @@ -0,0 +1,103 @@ +# +# spec file +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define mname PyQt6-WebEngine +%define muname PyQt6_WebEngine +%define pyqt_build_for_qt6 1 +%{?sle15_python_module_pythons} +Name: python-%{mname} +Version: 6.6.0 +Release: 0 +Summary: Python bindings for the Qt WebEngine framework +License: GPL-3.0-only +Group: Development/Libraries/Python +URL: https://www.riverbankcomputing.com/software/pyqt3d +Source: https://files.pythonhosted.org/packages/source/P/%{mname}/%{muname}-%{version}.tar.gz +Patch0: support-python3.6.patch +BuildRequires: %{python_module PyQt6-devel >= 6.2} +BuildRequires: %{python_module devel >= 3.6} +BuildRequires: %{python_module pyqt-builder >= 1.11} +BuildRequires: %{python_module sip-devel >= 6} +BuildRequires: fdupes +BuildRequires: python-pyqt-rpm-macros +BuildRequires: python-rpm-macros +BuildRequires: qt6-3d-private-devel +BuildRequires: qt6-gui-private-devel +BuildRequires: cmake(Qt6WebEngineCore) +BuildRequires: cmake(Qt6WebEngineQuick) +BuildRequires: cmake(Qt6WebEngineWidgets) +%requires_ge python-PyQt6 +Provides: python-qtwebengine-qt6 = %{version}-%{release} +# Mirror with qt6-webengine +ExclusiveArch: aarch64 x86_64 riscv64 +%python_subpackages + +%description +PyQt6-WebEngine is a set of Python bindings for The Qt Company’s Qt WebEngine +framework. The framework provides the ability to embed web content in +applications and is based on the Chrome browser. The bindings sit on top of PyQt6 +and are implemented as three separate modules corresponding to the different +libraries that make up the framework. + +%package devel +Summary: Devel files for %{name} +Group: Development/Tools/IDE +Requires: python-PyQt6-devel +Supplements: (eric and python-%{mname}) +Supplements: (python-PyQt6-devel and python-%{mname}) + +%description devel +This package provides Qt6 API files for the Eric IDE and the SIP files +used to generate the Python bindings for %{name} + +%prep +%autosetup -p1 -n %{muname}-%{version} + +%build +%pyqt_build + +%install +%pyqt_install + +%check +export PYTHONDONTWRITEBYTECODE=1 # boo#1047218 +%{python_expand # there is no test suite. If it compiles and imports, it should be okay. +export PYTHONPATH=%{buildroot}%{$python_sitearch} +$python -c 'from PyQt6 import QtWebEngineCore, QtWebEngineQuick, QtWebEngineWidgets' +} + +%files %{python_files} +%license LICENSE +%doc NEWS README +%dir %{python_sitearch}/PyQt6/ +%{python_sitearch}/PyQt6/QtWebEngineCore.* +%{python_sitearch}/PyQt6/QtWebEngineQuick.* +%{python_sitearch}/PyQt6/QtWebEngineWidgets.* +%{python_sitearch}/%{muname}-%{version}*-info/ +%exclude %{pyqt6_sipdir} + +%files %{python_files devel} +%license LICENSE +%dir %{_qt6_datadir}/qsci/api/python_%{python_bin_suffix}/ +%{_qt6_datadir}/qsci/api/python_%{python_bin_suffix}/%{mname}.api +%dir %{pyqt6_sipdir} +%{pyqt6_sipdir}/QtWebEngineCore +%{pyqt6_sipdir}/QtWebEngineQuick +%{pyqt6_sipdir}/QtWebEngineWidgets + +%changelog diff --git a/support-python3.6.patch b/support-python3.6.patch new file mode 100644 index 0000000..1d921e9 --- /dev/null +++ b/support-python3.6.patch @@ -0,0 +1,13 @@ +Index: PyQt6_WebEngine-6.6.0/PKG-INFO +=================================================================== +--- PyQt6_WebEngine-6.6.0.orig/PKG-INFO ++++ PyQt6_WebEngine-6.6.0/PKG-INFO +@@ -1,7 +1,7 @@ + Metadata-Version: 2.1 + Name: PyQt6-WebEngine + Version: 6.6.0 +-Requires-Python: >=3.7 ++Requires-Python: >=3.6 + Summary: Python bindings for the Qt WebEngine framework + Home-Page: https://www.riverbankcomputing.com/software/pyqtwebengine/ + Author: Riverbank Computing Limited