2021-07-05 19:54:02 +02:00
|
|
|
|
#
|
2024-04-21 16:41:31 +02:00
|
|
|
|
# spec file for package python-PyQt6-DataVisualization
|
2021-07-05 19:54:02 +02:00
|
|
|
|
#
|
2024-01-26 09:12:01 +01:00
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-07-05 19:54:02 +02: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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define qtlib DataVisualization
|
|
|
|
|
%define pyqt_build_for_qt6 1
|
2022-06-21 19:00:56 +02:00
|
|
|
|
%define plainpython python
|
2024-01-26 09:12:01 +01:00
|
|
|
|
%{?sle15_python_module_pythons}
|
2024-04-21 16:41:31 +02:00
|
|
|
|
Name: python-PyQt6-%{qtlib}
|
|
|
|
|
Version: 6.7.0
|
2021-07-05 19:54:02 +02:00
|
|
|
|
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
|
2024-04-21 16:41:31 +02:00
|
|
|
|
# boo#1222514
|
|
|
|
|
# Source: https://files.pythonhosted.org/packages/source/P/PyQt6-%%{qtlib}/PyQt6_%%{qtlib}-%%{version}.tar.gz
|
|
|
|
|
Source: https://riverbankcomputing.com/pypi/packages/PyQt6-%{qtlib}/PyQt6_%{qtlib}-%{version}.tar.gz
|
2022-06-21 18:38:36 +02:00
|
|
|
|
BuildRequires: %{python_module PyQt6-devel >= 6.2}
|
2024-04-21 16:41:31 +02:00
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module pyqt-builder >= 1.10 with %python-pyqt-builder < 2}
|
|
|
|
|
BuildRequires: %{python_module sip-devel >= 6.8 with %python-sip-devel < 7}
|
2021-07-05 19:54:02 +02:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-pyqt-rpm-macros
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: cmake(Qt6%{qtlib})
|
|
|
|
|
%requires_ge python-PyQt6
|
2024-04-21 16:41:31 +02:00
|
|
|
|
%requires_ge python-PyQt6-sip
|
2021-07-05 19:54:02 +02:00
|
|
|
|
Provides: python-qtdatavisualization-qt6 = %{version}-%{release}
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2024-04-21 16:41:31 +02:00
|
|
|
|
PyQt6-%{qtlib} is a set of Python bindings for The Qt Company’s Qt %{qtlib} framework.
|
2021-07-05 19:54:02 +02:00
|
|
|
|
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
|
2022-06-21 19:00:56 +02:00
|
|
|
|
Requires: %plainpython(abi) = %{python_version}
|
2024-04-21 16:41:31 +02:00
|
|
|
|
Supplements: (eric and python-PyQt6-%{qtlib})
|
|
|
|
|
Supplements: (python-PyQt6-devel and python-PyQt6-%{qtlib})
|
2021-07-05 19:54:02 +02:00
|
|
|
|
|
|
|
|
|
%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
|
2022-04-14 17:16:48 +02:00
|
|
|
|
%autosetup -p1 -n PyQt6_%{qtlib}-%{version}
|
2021-07-05 19:54:02 +02:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyqt_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyqt_install
|
|
|
|
|
|
|
|
|
|
%check
|
2021-08-23 21:48:23 +02:00
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1 # boo#1047218
|
2021-07-05 19:54:02 +02:00
|
|
|
|
%{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
|
2024-04-21 16:41:31 +02:00
|
|
|
|
%doc NEWS README.md
|
2021-07-05 19:54:02 +02:00
|
|
|
|
%dir %{python_sitearch}/PyQt6/
|
|
|
|
|
%{python_sitearch}/PyQt6/Qt%{qtlib}.*
|
2024-04-21 16:41:31 +02:00
|
|
|
|
%{python_sitearch}/PyQt6_%{qtlib}-%{version}.dist-info/
|
2021-07-05 19:54:02 +02:00
|
|
|
|
%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
|