07a1c70
%global pypi_name QtPy
07a1c70
%global simple_name qtpy
07a1c70
07a1c70
Name:           python-%{pypi_name}
07a1c70
Version:        1.1.2
07a1c70
Release:        5%{?dist}
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:  python-setuptools
07a1c70
BuildRequires:  python2-devel
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     python2-%{pypi_name}
07a1c70
Summary:        Provides an abstraction layer on top of various Qt bindings
07a1c70
%{?python_provide:%python_provide python2-%{pypi_name}}
07a1c70
07a1c70
%description -n python2-%{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
%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
%py2_build
07a1c70
%py3_build
07a1c70
07a1c70
%install
07a1c70
%py3_install
07a1c70
07a1c70
%py2_install
07a1c70
07a1c70
07a1c70
%files -n python2-%{pypi_name} 
07a1c70
%license LICENSE.txt
07a1c70
%doc CHANGELOG.md README.md
07a1c70
%{python2_sitelib}/qtpy
07a1c70
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
07a1c70
07a1c70
%files -n python3-%{pypi_name} 
07a1c70
%license LICENSE.txt
07a1c70
%doc CHANGELOG.md README.md
07a1c70
%{python3_sitelib}/qtpy
07a1c70
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
07a1c70
07a1c70
%changelog
07a1c70
* Fri Sep 30 2016 Mukundan Ragavan <nonamedotc@gmail.com> - 1.1.2-5
07a1c70
- Add BSD in license
07a1c70
07a1c70
* Fri Sep 30 2016 Mukundan Ragavan <nonamedotc@gmail.com> - 1.1.2-4
07a1c70
- Add doc files
07a1c70
07a1c70
* Thu Sep 29 2016 Mukundan Ragavan <nonamedotc@gmail.com> - 1.1.2-3
07a1c70
- Fix source URL
07a1c70
07a1c70
* Thu Sep 29 2016 Mukundan Ragavan <nonamedotc@gmail.com> - 1.1.2-2
07a1c70
- Fix license installation
07a1c70
07a1c70
* Thu Aug 11 2016 Mukundan Ragavan <nonamedotc@gmail.com> - 1.1.2-1
07a1c70
- Initial package.