diff --git a/python-QtPy.spec b/python-QtPy.spec new file mode 100644 index 0000000000000000000000000000000000000000..d8305c8071307fee225f1bb666755cbb2f130260 --- /dev/null +++ b/python-QtPy.spec @@ -0,0 +1,79 @@ +%define anolis_release 1 + +%global pypi_name QtPy +%global simple_name qtpy + +Name: python-%{pypi_name} +Version: 2.4.3 +Release: %{anolis_release}%{?dist} +Summary: Provides an abstraction layer on top of the various Qt bindings + +# Automatically converted from old format: MIT and BSD - review is highly recommended. +License: LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD +URL: https://github.com/spyder-ide/%{simple_name} +Source0: https://github.com/spyder-ide/%{simple_name}/archive/v%{version}/%{simple_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-setuptools +BuildRequires: python3-devel + +%description + +QtPy (pronounced ‘cutie pie’) is a small abstraction layer that lets you +write applications using a single API call to either PyQt or PySide. + +It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout +(where the QtGui module has been split into QtGui and QtWidgets). + +Basically, you write your code as if you were using PyQt5 but import qt from +qtpy instead of PyQt5. + +%package -n python3-%{pypi_name} +Summary: Provides an abstraction layer on top of the various Qt bindings +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} + +QtPy (pronounced ‘cutie pie’) is a small abstraction layer that lets you +write applications using a single API call to either PyQt or PySide. + +It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout +(where the QtGui module has been split into QtGui and QtWidgets). + +Basically, you write your code as if you were using PyQt5 but import qt from +qtpy instead of PyQt5. + +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + +%prep +%autosetup -n %{simple_name}-%{version} + +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install +%generate_compatibility_deps + +%files doc +%doc CHANGELOG.md README.md + +%files -n python3-%{pypi_name} +%license LICENSE.txt +%dir %{abidir} +%{_bindir}/qtpy +%{python3_sitelib}/qtpy +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Fri Apr 17 2026 Yuki Zhu - 2.4.3-1 +- Init Package from upstream + diff --git a/qtpy-2.4.3.tar.gz b/qtpy-2.4.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..97c86479c7f87841ad1e5d69db44c70fd020d360 Binary files /dev/null and b/qtpy-2.4.3.tar.gz differ