From d735ce35dc86d3ec66e69f5262fb400b0741f210c9c6690dd9ed671b82da88cb Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Fri, 8 Nov 2024 09:19:34 +0000 Subject: [PATCH 1/3] - Back to PyPI source - Fix requires_eq replacement gh#openSUSE/python-rpm-macros#185 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6-3D?expand=0&rev=26 --- .gitattributes | 23 +++++++++ .gitignore | 1 + PyQt6_3D-6.7.0.tar.gz | 3 ++ python-PyQt6-3D.changes | 100 ++++++++++++++++++++++++++++++++++++ python-PyQt6-3D.spec | 109 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 236 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 PyQt6_3D-6.7.0.tar.gz create mode 100644 python-PyQt6-3D.changes create mode 100644 python-PyQt6-3D.spec 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/PyQt6_3D-6.7.0.tar.gz b/PyQt6_3D-6.7.0.tar.gz new file mode 100644 index 0000000..03e6c4b --- /dev/null +++ b/PyQt6_3D-6.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e99bfc801918ab4758dd2660b2d2358e0057c943eb2bd9f8d0ddf156ea5ccd7 +size 7469641 diff --git a/python-PyQt6-3D.changes b/python-PyQt6-3D.changes new file mode 100644 index 0000000..5ca2d59 --- /dev/null +++ b/python-PyQt6-3D.changes @@ -0,0 +1,100 @@ +------------------------------------------------------------------- +Fri Nov 8 08:52:09 UTC 2024 - Ben Greiner + +- Back to PyPI source +- Fix requires_eq replacement gh#openSUSE/python-rpm-macros#185 + +------------------------------------------------------------------- +Tue Nov 5 08:22:29 UTC 2024 - Dominique Leuenberger + +- Avoid using requires_eq, which after the last modifications + conflicts with python singlespec (order of expansion). + +------------------------------------------------------------------- +Sun Apr 21 13:44:55 UTC 2024 - Ben Greiner + +- Update to 6.7.0 + * Add support for Qt 6.7 + +------------------------------------------------------------------- +Thu Jan 25 20:31:01 UTC 2024 - Ben Greiner + +- Enable SLE15 python module for more modern python in 15.x + +------------------------------------------------------------------- +Mon Oct 30 14:29:23 UTC 2023 - Markéta Machová + +- Update to 6.6.0 + * This adds support for Qt v6.6. + +------------------------------------------------------------------- +Mon Apr 24 20:15:00 UTC 2023 - Ben Greiner + +- Update to 6.5.0 + * Added support for Qt v6.5. + +------------------------------------------------------------------- +Tue Mar 28 09:19:12 UTC 2023 - Ben Greiner + +- Disable ix86 build: qt6-3d has disabled it temporarily + +------------------------------------------------------------------- +Wed Mar 15 16:01:14 UTC 2023 - Antonio Larrosa + +- Do not require python 3.7 when 3.6 is good enough, which allows + to build the package for Leap + +------------------------------------------------------------------- +Mon Oct 3 17:26:55 UTC 2022 - Ben Greiner + +- Update to version 6.4.0 + * Added support for Qt v6.4. + +------------------------------------------------------------------- +Wed Apr 13 08:14:04 UTC 2022 - Ben Greiner + +- Update to version 6.3.0 + * Added support for Qt v6.3. + * Bug fixes. + +------------------------------------------------------------------- +Sun Oct 3 13:40:50 UTC 2021 - Ben Greiner + +- Update to version 6.2.0 + * Added support for Qt v6.2. + +------------------------------------------------------------------- +Thu Aug 19 09:29:27 UTC 2021 - Ben Greiner + +- Don't write mtime-based init pyc file during import test + (boo#1047218) + +------------------------------------------------------------------- +Tue Jun 15 13:09:32 UTC 2021 - Ben Greiner + +- Update to version 6.1.1 + * Bug fixes. + +------------------------------------------------------------------- +Thu May 13 18:28:48 UTC 2021 - Ben Greiner + +- Update to version 6.1.0 + * Added support for Qt v6.1. + * Added the examples. + +------------------------------------------------------------------- +Thu Mar 11 19:52:17 UTC 2021 - Ben Greiner + +- Update to version 6.0.3 + * Bug fixes. + +------------------------------------------------------------------- +Thu Feb 25 11:22:33 UTC 2021 - Ben Greiner + +- Update to v6.0.2 + * Bug fixes. + +------------------------------------------------------------------- +Sat Feb 20 16:50:48 UTC 2021 - Ben Greiner + +- initial specfile for v6.0.1 based on python-qt3d-qt5 diff --git a/python-PyQt6-3D.spec b/python-PyQt6-3D.spec new file mode 100644 index 0000000..dfca6bb --- /dev/null +++ b/python-PyQt6-3D.spec @@ -0,0 +1,109 @@ +# +# spec file for package python-PyQt6-3D +# +# Copyright (c) 2024 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 qtlib 3D +%define pyqt_build_for_qt6 1 +%define plainpython python +%{?sle15_python_module_pythons} +Name: python-PyQt6-%{qtlib} +Version: 6.7.0 +Release: 0 +Summary: Python bindings for the Qt 3D 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/PyQt6-%{qtlib}/PyQt6_%{qtlib}-%{version}.tar.gz +BuildRequires: %{python_module PyQt6-devel >= 6.2} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pyqt-builder >= 1.9 with %python-pyqt-builder < 2} +BuildRequires: %{python_module sip-devel >= 6.8 with %python-sip-devel < 7} +BuildRequires: fdupes +BuildRequires: python-pyqt-rpm-macros +BuildRequires: python-rpm-macros +BuildRequires: qt6-3d-private-devel +BuildRequires: qt6-gui-private-devel +BuildRequires: cmake(Qt63DAnimation) +BuildRequires: cmake(Qt63DCore) +BuildRequires: cmake(Qt63DExtras) +BuildRequires: cmake(Qt63DInput) +BuildRequires: cmake(Qt63DLogic) +BuildRequires: cmake(Qt63DRender) +Requires: python-PyQt6 %(rpm -q --whatprovides python-PyQt6 --qf "'>= %%{version}") +Requires: python-PyQt6-sip %(rpm -q --whatprovides python-PyQt6-sip --qf ">= %%{version}") +Provides: python-qt3d-qt6 = %{version}-%{release} +%python_subpackages + +%description +PyQt6-3D is a set of Python bindings for The Qt Company's Qt 3D framework. The +bindings sit on top of PyQt6 and are implemented as six 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 +Requires: %plainpython(abi) = %{python_version} +Supplements: (eric and python-PyQt6-%{qtlib}) +Supplements: (python-PyQt6-devel and python-PyQt6-%{qtlib}) + +%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 +%setup -q -n PyQt6_3D-%{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 Qt3DAnimation, Qt3DCore, Qt3DExtras, Qt3DInput, Qt3DLogic, Qt3DRender' +} + +%files %{python_files} +%license LICENSE +%doc NEWS README.md +%dir %{python_sitearch}/PyQt6/ +%{python_sitearch}/PyQt6/Qt3DAnimation.* +%{python_sitearch}/PyQt6/Qt3DCore.* +%{python_sitearch}/PyQt6/Qt3DExtras.* +%{python_sitearch}/PyQt6/Qt3DInput.* +%{python_sitearch}/PyQt6/Qt3DLogic.* +%{python_sitearch}/PyQt6/Qt3DRender.* +%{python_sitearch}/PyQt6_%{qtlib}-%{version}.dist-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}/PyQt6-%{qtlib}.api +%dir %{pyqt6_sipdir} +%{pyqt6_sipdir}/Qt3DAnimation/ +%{pyqt6_sipdir}/Qt3DCore/ +%{pyqt6_sipdir}/Qt3DExtras/ +%{pyqt6_sipdir}/Qt3DInput/ +%{pyqt6_sipdir}/Qt3DLogic/ +%{pyqt6_sipdir}/Qt3DRender/ + +%changelog From 6dcf98ab36d94cfc8cac1cb1c8e530009b3f52da6cd39bb4a2ab568b0871b209 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Fri, 8 Nov 2024 09:30:42 +0000 Subject: [PATCH 2/3] ' OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6-3D?expand=0&rev=27 --- python-PyQt6-3D.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-PyQt6-3D.spec b/python-PyQt6-3D.spec index dfca6bb..68e3172 100644 --- a/python-PyQt6-3D.spec +++ b/python-PyQt6-3D.spec @@ -43,7 +43,7 @@ BuildRequires: cmake(Qt63DExtras) BuildRequires: cmake(Qt63DInput) BuildRequires: cmake(Qt63DLogic) BuildRequires: cmake(Qt63DRender) -Requires: python-PyQt6 %(rpm -q --whatprovides python-PyQt6 --qf "'>= %%{version}") +Requires: python-PyQt6 %(rpm -q --whatprovides python-PyQt6 --qf ">= %%{version}") Requires: python-PyQt6-sip %(rpm -q --whatprovides python-PyQt6-sip --qf ">= %%{version}") Provides: python-qt3d-qt6 = %{version}-%{release} %python_subpackages From fb0e64babedc0540c64f5dd327e89f19377d8e3eb0f2f50b47a5cc7f04489012 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Fri, 8 Nov 2024 09:51:42 +0000 Subject: [PATCH 3/3] . OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6-3D?expand=0&rev=28 --- python-PyQt6-3D.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-PyQt6-3D.spec b/python-PyQt6-3D.spec index 68e3172..deea3b0 100644 --- a/python-PyQt6-3D.spec +++ b/python-PyQt6-3D.spec @@ -43,8 +43,8 @@ BuildRequires: cmake(Qt63DExtras) BuildRequires: cmake(Qt63DInput) BuildRequires: cmake(Qt63DLogic) BuildRequires: cmake(Qt63DRender) -Requires: python-PyQt6 %(rpm -q --whatprovides python-PyQt6 --qf ">= %%{version}") -Requires: python-PyQt6-sip %(rpm -q --whatprovides python-PyQt6-sip --qf ">= %%{version}") +Requires: python-PyQt6 >= %(rpm -q --whatprovides python-PyQt6 --qf "%%{version}") +Requires: python-PyQt6-sip >= %(rpm -q --whatprovides python-PyQt6-sip --qf "%%{version}") Provides: python-qt3d-qt6 = %{version}-%{release} %python_subpackages