%global pypi_name QtPy %global simple_name qtpy Name: python-%{pypi_name} Version: 1.9.0 Release: 1%{?dist} Summary: Provides an abstraction layer on top of the various Qt bindings License: MIT and 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: python2-setuptools BuildRequires: python2-devel 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 python2-%{pypi_name} Summary: Provides an abstraction layer on top of various Qt bindings %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{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 -n python%{python3_pkgversion}-%{pypi_name} Summary: Provides an abstraction layer on top of the various Qt bindings %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %description -n python%{python3_pkgversion}-%{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. %prep %autosetup -n %{simple_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install %py3_install %py2_install %files -n python2-%{pypi_name} %license LICENSE.txt %doc CHANGELOG.md README.md %{python2_sitelib}/qtpy %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE.txt %doc CHANGELOG.md README.md %{python3_sitelib}/qtpy %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Fri Jan 09 2020 Martyn Gigg - 1.9.0-1 - Update to 1.9.0 * Mon Jan 06 2020 Martyn Gigg - 1.4.2-4 - Modify Python 3 to support EPEL python_pkgversion * Fri Jul 13 2018 Fedora Release Engineering - 1.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.4.2-2 - Rebuilt for Python 3.7 * Tue May 08 2018 Mukundan Ragavan - 1.4.2-1 - Update to 1.4.2 * Sat May 05 2018 Mukundan Ragavan - 1.4.1-1 - Update to 1.4.1 * Sat Mar 17 2018 Mukundan Ragavan - 1.4.0-1 - Update to 1.4.0 * Fri Feb 09 2018 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 15 2018 Iryna Shcherbina - 1.3.1-2 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Wed Aug 23 2017 Mukundan Ragavan - 1.3.1-1 - Update to 1.3.1 * Thu Jul 27 2017 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Mar 17 2017 Mukundan Ragavan - 1.2.1-1 - Update to 1.2.1 * Sat Feb 11 2017 Fedora Release Engineering - 1.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.1.2-6 - Rebuild for Python 3.6 * Fri Sep 30 2016 Mukundan Ragavan - 1.1.2-5 - Add BSD in license * Fri Sep 30 2016 Mukundan Ragavan - 1.1.2-4 - Add doc files * Thu Sep 29 2016 Mukundan Ragavan - 1.1.2-3 - Fix source URL * Thu Sep 29 2016 Mukundan Ragavan - 1.1.2-2 - Fix license installation * Thu Aug 11 2016 Mukundan Ragavan - 1.1.2-1 - Initial package.