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
|
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%define oldpython python
|
|
|
|
%define mname qt3d-qt5
|
2021-02-28 10:36:38 +01:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
|
|
%define skip_python2 1
|
2020-11-05 11:42:14 +01:00
|
|
|
Name: python-%{mname}
|
2021-02-28 10:36:38 +01:00
|
|
|
Version: 5.15.3
|
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-02-28 10:36:38 +01:00
|
|
|
Requires: python-qt5 >= %{version}
|
|
|
|
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.
|
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%package api
|
2019-03-05 09:57:27 +01:00
|
|
|
Summary: Eric API files for %{name}
|
|
|
|
Group: Development/Tools/IDE
|
2020-11-05 11:42:14 +01:00
|
|
|
Supplements: packageand(eric:python-%{mname})
|
2019-03-05 09:57:27 +01:00
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%description api
|
2019-03-05 09:57:27 +01:00
|
|
|
This package provides Qt5 3D framework API files for the Eric IDE.
|
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%package sip
|
2019-03-05 09:57:27 +01:00
|
|
|
Summary: Sip files for %{name}
|
|
|
|
Group: Development/Libraries/Python
|
2020-11-05 11:42:14 +01:00
|
|
|
Supplements: packageand(python-sip:python-%{mname})
|
|
|
|
Provides: %{oldpython}-%{mname}-sip = %{version}-%{release}
|
|
|
|
Obsoletes: %{oldpython}-%{mname}-sip < %{version}-%{release}
|
|
|
|
Requires: python-qt5-devel
|
2019-03-05 09:57:27 +01:00
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%description sip
|
|
|
|
This package provides the SIP files used to generate the Python bindings 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
|
2019-11-14 09:38:45 +01:00
|
|
|
%setup -q -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/
|
|
|
|
|
|
|
|
%files %{python_files api}
|
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
|
2019-03-05 09:57:27 +01:00
|
|
|
|
2020-11-05 11:42:14 +01:00
|
|
|
%files %{python_files sip}
|
2019-03-05 09:57:27 +01:00
|
|
|
%license LICENSE
|
2020-11-05 11:42:14 +01:00
|
|
|
%{?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
|