2019-03-05 09:57:27 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-qt3d-qt5
|
|
|
|
#
|
2021-02-28 10:36:38 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-03-05 09:57:27 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-10-05 21:00:59 +02:00
|
|
|
# This definition is for projects which include the PyQt5 packages in recent
|
|
|
|
# versions but use default (old) Qt libraries e.g. from Leap, which does not
|
|
|
|
# have Qt >= 5.10. In that case, no Qt3DAnimation module will be built per
|
|
|
|
# sip %%If directives in the sip/Qt3DAnimation/*.sip files
|
|
|
|
%if %{pkg_vcmp libQt53DAnimation-devel >= 5.10}
|
|
|
|
%define have_qt3danimation 1
|
|
|
|
%endif
|
|
|
|
|
2023-01-12 20:08:14 +01:00
|
|
|
%define plainpython python
|
2020-11-05 11:42:14 +01:00
|
|
|
%define mname qt3d-qt5
|
2024-01-25 23:13:06 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2023-01-11 10:16:21 +01:00
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
Name: python-%{mname}
|
2023-01-30 20:19:15 +01:00
|
|
|
Version: 5.15.6
|
2019-03-05 09:57:27 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for the Qt5 3D framework
|
|
|
|
License: GPL-3.0-only
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
URL: https://www.riverbankcomputing.com/software/pyqtchart/intro
|
2020-08-28 22:58:49 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyQt3D/PyQt3D-%{version}.tar.gz
|
2019-07-12 12:22:10 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2021-02-28 10:36:38 +01:00
|
|
|
BuildRequires: %{python_module pyqt-builder >= 1.9}
|
2019-07-12 12:22:10 +02:00
|
|
|
BuildRequires: %{python_module qt5-devel}
|
2021-02-28 10:36:38 +01:00
|
|
|
BuildRequires: %{python_module sip-devel >= 5.3}
|
|
|
|
BuildRequires: dos2unix
|
2020-11-05 11:42:14 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-pyqt-rpm-macros
|
2019-07-12 12:22:10 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-05 09:57:27 +01:00
|
|
|
BuildRequires: pkgconfig(Qt53DAnimation)
|
|
|
|
BuildRequires: pkgconfig(Qt53DCore)
|
|
|
|
BuildRequires: pkgconfig(Qt53DExtras)
|
|
|
|
BuildRequires: pkgconfig(Qt53DInput)
|
|
|
|
BuildRequires: pkgconfig(Qt53DLogic)
|
|
|
|
BuildRequires: pkgconfig(Qt53DRender)
|
2021-06-18 23:52:29 +02:00
|
|
|
Provides: python-PyQt3D = %{version}-%{release}
|
2023-01-30 20:19:15 +01:00
|
|
|
Requires: python-qt5 >= 5.15.4
|
2021-02-28 10:36:38 +01:00
|
|
|
Requires: python-qt5-sip
|
2019-03-05 09:57:27 +01:00
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
PyQt3D is a set of Python bindings for the Qt 3D framework.
|
|
|
|
|
2023-01-12 20:08:14 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2019-03-05 09:57:27 +01:00
|
|
|
Group: Development/Tools/IDE
|
2020-11-05 11:42:14 +01:00
|
|
|
Requires: python-qt5-devel
|
2023-01-12 20:08:14 +01:00
|
|
|
Requires: %{plainpython}(abi) = %python_version
|
|
|
|
Supplements: (eric and python-%{mname})
|
|
|
|
Supplements: (python-qt5-devel and python-%{mname})
|
|
|
|
Provides: python-%{mname}-sip = %{version}-%{release}
|
|
|
|
Obsoletes: python-%{mname}-sip < %{version}-%{release}
|
|
|
|
Provides: python-%{mname}-api = %{version}-%{release}
|
|
|
|
Obsoletes: python-%{mname}-api < %{version}-%{release}
|
|
|
|
Provides: %{plainpython}-%{mname}-sip = %{version}-%{release}
|
|
|
|
Obsoletes: %{plainpython}-%{mname}-sip < %{version}-%{release}
|
|
|
|
Provides: %{plainpython}-%{mname}-api = %{version}-%{release}
|
|
|
|
Obsoletes: %{plainpython}-%{mname}-api < %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the SIP files used to generate the Python bindings
|
|
|
|
and the Qt5 3D framework API files for the Eric IDE for %{name}
|
2019-03-05 09:57:27 +01:00
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%package doc
|
2019-03-05 09:57:27 +01:00
|
|
|
Summary: Examples for %{name}
|
|
|
|
Group: Documentation/Other
|
2020-11-05 11:42:14 +01:00
|
|
|
Provides: %{python_module %{mname}-examples = %{version}-%{release}}
|
2019-03-05 09:57:27 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%description doc
|
2019-03-05 09:57:27 +01:00
|
|
|
This package provides %{name} examples.
|
|
|
|
|
|
|
|
%prep
|
2023-01-12 20:08:14 +01:00
|
|
|
%autosetup -p1 -n PyQt3D-%{version}
|
2019-03-05 09:57:27 +01:00
|
|
|
|
|
|
|
%build
|
2020-11-05 11:42:14 +01:00
|
|
|
%pyqt_build
|
2019-03-05 09:57:27 +01:00
|
|
|
|
|
|
|
%install
|
2020-11-05 11:42:14 +01:00
|
|
|
%pyqt_install
|
2021-02-28 10:36:38 +01:00
|
|
|
# replace CRLF line endings in example resources in order to make rpmlint happy.
|
|
|
|
find examples/assets -type f -print0 | xargs -0 dos2unix
|
2020-11-05 11:42:14 +01:00
|
|
|
%pyqt_install_examples %mname
|
2019-03-05 09:57:27 +01:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc NEWS README
|
|
|
|
%dir %{python_sitearch}/PyQt5/
|
2020-11-05 11:42:14 +01:00
|
|
|
%{?have_qt3danimation:%{python_sitearch}/PyQt5/Qt3DAnimation.*}
|
|
|
|
%{python_sitearch}/PyQt5/Qt3DCore.*
|
|
|
|
%{python_sitearch}/PyQt5/Qt3DExtras.*
|
|
|
|
%{python_sitearch}/PyQt5/Qt3DInput.*
|
|
|
|
%{python_sitearch}/PyQt5/Qt3DLogic.*
|
|
|
|
%{python_sitearch}/PyQt5/Qt3DRender.*
|
|
|
|
%{python_sitearch}/PyQt3D-%{version}.dist-info/
|
|
|
|
|
2023-01-12 20:08:14 +01:00
|
|
|
%files %{python_files devel}
|
2019-03-05 09:57:27 +01:00
|
|
|
%license LICENSE
|
2020-11-05 11:42:14 +01:00
|
|
|
%dir %{_datadir}/qt5/qsci/api/python_%{python_bin_suffix}/
|
|
|
|
%{_datadir}/qt5/qsci/api/python_%{python_bin_suffix}/PyQt3D.api
|
|
|
|
%{?have_qt3danimation:%{pyqt5_sipdir}/Qt3DAnimation/}
|
|
|
|
%{pyqt5_sipdir}/Qt3DCore/
|
|
|
|
%{pyqt5_sipdir}/Qt3DExtras/
|
|
|
|
%{pyqt5_sipdir}/Qt3DInput/
|
|
|
|
%{pyqt5_sipdir}/Qt3DLogic/
|
|
|
|
%{pyqt5_sipdir}/Qt3DRender/
|
|
|
|
|
|
|
|
%files %{python_files doc}
|
2019-03-05 09:57:27 +01:00
|
|
|
%license LICENSE
|
2020-11-05 11:42:14 +01:00
|
|
|
%{_docdir}/%{python_prefix}-%{mname}
|
|
|
|
%exclude %{_docdir}/%{python_prefix}-%{mname}/NEWS
|
|
|
|
%exclude %{_docdir}/%{python_prefix}-%{mname}/README
|
2019-03-05 09:57:27 +01:00
|
|
|
|
|
|
|
%changelog
|