- Update to version 6.3.0 * Added support for Qt v6.3. - Add PyQt6-DataVisualization-6.3-fix-timeline.patch https://www.riverbankcomputing.com/pipermail/pyqt/2022-April/044562.html OBS-URL: https://build.opensuse.org/request/show/969963 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6-DataVisualization?expand=0&rev=5
92 lines
3.2 KiB
RPMSpec
92 lines
3.2 KiB
RPMSpec
#
|
||
# spec file
|
||
#
|
||
# Copyright (c) 2022 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 DataVisualization
|
||
%define mname PyQt6-%{qtlib}
|
||
%{?!python_module:%define python_module() python3-%{**}}
|
||
%define skip_python2 1
|
||
%define pyqt_build_for_qt6 1
|
||
Name: python-%{mname}
|
||
Version: 6.3.0
|
||
Release: 0
|
||
Summary: Python bindings for the Qt Data Visualization library
|
||
License: GPL-3.0-only
|
||
Group: Development/Libraries/Python
|
||
URL: https://www.riverbankcomputing.com/software/pyqtdatavisualization
|
||
Source: https://files.pythonhosted.org/packages/source/P/PyQt6-%{qtlib}/PyQt6_%{qtlib}-%{version}.tar.gz
|
||
# PATCH-FIX-UPSTREAM PyQt6-DataVisualization-6.3-fix-timeline.patch -- https://www.riverbankcomputing.com/pipermail/pyqt/2022-April/044562.html
|
||
Patch0: PyQt6-DataVisualization-6.3-fix-timeline.patch
|
||
BuildRequires: %{python_module PyQt6-devel >= %{version}}
|
||
BuildRequires: %{python_module devel >= 3.7}
|
||
BuildRequires: %{python_module pyqt-builder >= 1.10}
|
||
BuildRequires: %{python_module sip-devel >= 6}
|
||
BuildRequires: fdupes
|
||
BuildRequires: python-pyqt-rpm-macros
|
||
BuildRequires: python-rpm-macros
|
||
BuildRequires: cmake(Qt6%{qtlib})
|
||
%requires_ge python-PyQt6
|
||
Provides: python-qtdatavisualization-qt6 = %{version}-%{release}
|
||
%python_subpackages
|
||
|
||
%description
|
||
PyQt6-3D is a set of Python bindings for The Qt Company’s Qt Data Visualization library.
|
||
The bindings sit on top of PyQt6 and are implemented as a single module.
|
||
|
||
%package devel
|
||
Summary: Devel files for %{name}
|
||
Group: Development/Tools/IDE
|
||
Requires: python-PyQt6-devel
|
||
Supplements: packageand(eric: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 PyQt6_%{qtlib}-%{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 Qt%{qtlib}; assert Qt%{qtlib}.PYQT_DATAVISUALIZATION_VERSION_STR == "%{version}"'
|
||
}
|
||
|
||
%files %{python_files}
|
||
%license LICENSE
|
||
%doc NEWS README
|
||
%dir %{python_sitearch}/PyQt6/
|
||
%{python_sitearch}/PyQt6/Qt%{qtlib}.*
|
||
%{python_sitearch}/PyQt6_%{qtlib}-%{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}/PyQt6-%{qtlib}.api
|
||
%dir %{pyqt6_sipdir}
|
||
%{pyqt6_sipdir}/Qt%{qtlib}/
|
||
|
||
%changelog
|