Sync from SUSE:ALP:Source:Standard:1.0 python-PyQt6-Charts revision 144d4723446344fb7359199a9fa2b732

This commit is contained in:
Adrian Schröter 2023-12-19 15:15:58 +01:00
commit c394ff9a1d
5 changed files with 193 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
PyQt6_Charts-6.6.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,63 @@
-------------------------------------------------------------------
Mon Oct 30 14:34:54 UTC 2023 - Markéta Machová <mmachova@suse.com>
- Update to version 6.6.0
* This adds support for Qt v6.6.
-------------------------------------------------------------------
Mon Apr 24 20:15:00 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to version 6.5.0
* Added support for Qt v6.5.
-------------------------------------------------------------------
Wed Mar 15 14:01:43 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
- Add patch to support python 3.6 in order to build for SLE/Leap:
* support-python3.6.patch
-------------------------------------------------------------------
Mon Oct 3 17:28:57 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to version 6.4.0
* Added support for Qt v6.4.
-------------------------------------------------------------------
Tue Jun 21 16:53:03 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update devel runtime requirements and supplements
-------------------------------------------------------------------
Tue Jun 21 10:10:20 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to version 6.3.1
* Added the missing QXYSeries.points()
-------------------------------------------------------------------
Wed Apr 13 08:22:20 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to version 6.3.0
* Added support for Qt v6.3.
-------------------------------------------------------------------
Sun Oct 3 13:40:50 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to version 6.2.0
* Added support for Qt v6.2.
-------------------------------------------------------------------
Thu Aug 19 09:30:47 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Don't write mtime-based init pyc file during import test
(boo#1047218)
-------------------------------------------------------------------
Tue Jun 15 13:12:14 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to version 6.1.1
* Bug fixes.
-------------------------------------------------------------------
Thu May 13 18:34:21 UTC 2021 - Ben Greiner <code@bnavigator.de>
- initial specfile for version 6.1.0

91
python-PyQt6-Charts.spec Normal file
View File

@ -0,0 +1,91 @@
#
# spec file
#
# Copyright (c) 2023 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 Charts
%define mname PyQt6-%{qtlib}
%define pyqt_build_for_qt6 1
%define plainpython python
Name: python-%{mname}
Version: 6.6.0
Release: 0
Summary: Python bindings for the Qt Charts library
License: GPL-3.0-only
Group: Development/Libraries/Python
URL: https://www.riverbankcomputing.com/software/pyqtchart
Source: https://files.pythonhosted.org/packages/source/P/%{mname}/PyQt6_%{qtlib}-%{version}.tar.gz
Patch0: support-python3.6.patch
BuildRequires: %{python_module PyQt6-devel >= 6.2}
BuildRequires: %{python_module devel >= 3.6}
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-qtcharts-qt6 = %{version}-%{release}
%python_subpackages
%description
%{mname} is a set of Python bindings for The Qt Companys Qt %{qtlib} framework.
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
Requires: %plainpython(abi) = %{python_version}
Supplements: (eric and python-%{mname})
Supplements: (python-PyQt6-devel and 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_CHART_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

13
support-python3.6.patch Normal file
View File

@ -0,0 +1,13 @@
Index: PyQt6_Charts-6.6.0/PKG-INFO
===================================================================
--- PyQt6_Charts-6.6.0.orig/PKG-INFO
+++ PyQt6_Charts-6.6.0/PKG-INFO
@@ -1,7 +1,7 @@
Metadata-Version: 2.1
Name: PyQt6-Charts
Version: 6.6.0
-Requires-Python: >=3.7
+Requires-Python: >=3.6
Summary: Python bindings for the Qt Charts library
Home-Page: https://www.riverbankcomputing.com/software/pyqtchart/
Author: Riverbank Computing Limited