|
|
07a1c70 |
%global pypi_name QtPy
|
|
|
07a1c70 |
%global simple_name qtpy
|
|
|
07a1c70 |
|
|
|
07a1c70 |
Name: python-%{pypi_name}
|
|
|
4dc0ecf |
Version: 2.1.0
|
|
|
2841fe1 |
Release: %autorelease
|
|
|
07a1c70 |
Summary: Provides an abstraction layer on top of the various Qt bindings
|
|
|
07a1c70 |
|
|
|
07a1c70 |
License: MIT and BSD
|
|
|
07a1c70 |
URL: https://github.com/spyder-ide/%{simple_name}
|
|
|
07a1c70 |
Source0: https://github.com/spyder-ide/%{simple_name}/archive/v%{version}/%{simple_name}-%{version}.tar.gz
|
|
|
07a1c70 |
BuildArch: noarch
|
|
|
07a1c70 |
|
|
|
07a1c70 |
BuildRequires: python3-setuptools
|
|
|
07a1c70 |
BuildRequires: python3-devel
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%description
|
|
|
07a1c70 |
|
|
|
07a1c70 |
QtPy (pronounced ‘cutie pie’) is a small abstraction layer that lets you
|
|
|
07a1c70 |
write applications using a single API call to either PyQt or PySide.
|
|
|
07a1c70 |
|
|
|
07a1c70 |
It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout
|
|
|
07a1c70 |
(where the QtGui module has been split into QtGui and QtWidgets).
|
|
|
07a1c70 |
|
|
|
07a1c70 |
Basically, you write your code as if you were using PyQt5 but import qt from
|
|
|
07a1c70 |
qtpy instead of PyQt5.
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%package -n python3-%{pypi_name}
|
|
|
07a1c70 |
Summary: Provides an abstraction layer on top of the various Qt bindings
|
|
|
07a1c70 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%description -n python3-%{pypi_name}
|
|
|
07a1c70 |
|
|
|
07a1c70 |
QtPy (pronounced ‘cutie pie’) is a small abstraction layer that lets you
|
|
|
07a1c70 |
write applications using a single API call to either PyQt or PySide.
|
|
|
07a1c70 |
|
|
|
07a1c70 |
It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout
|
|
|
07a1c70 |
(where the QtGui module has been split into QtGui and QtWidgets).
|
|
|
07a1c70 |
|
|
|
07a1c70 |
Basically, you write your code as if you were using PyQt5 but import qt from
|
|
|
07a1c70 |
qtpy instead of PyQt5.
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%prep
|
|
|
07a1c70 |
%autosetup -n %{simple_name}-%{version}
|
|
|
07a1c70 |
|
|
|
07a1c70 |
rm -rf %{pypi_name}.egg-info
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%build
|
|
|
07a1c70 |
%py3_build
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%install
|
|
|
07a1c70 |
%py3_install
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%files -n python3-%{pypi_name}
|
|
|
07a1c70 |
%license LICENSE.txt
|
|
|
07a1c70 |
%doc CHANGELOG.md README.md
|
|
|
4dc0ecf |
%{_bindir}/qtpy
|
|
|
07a1c70 |
%{python3_sitelib}/qtpy
|
|
|
9e62c90 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
07a1c70 |
|
|
|
07a1c70 |
%changelog
|
|
|
2841fe1 |
%autochangelog
|