07a1c70
%global pypi_name QtPy
07a1c70
%global simple_name qtpy
07a1c70
07a1c70
Name:           python-%{pypi_name}
01c9b31
Version:        1.3.1
01c9b31
Release:        1%{?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
01c9b31
* Wed Aug 23 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 1.3.1-1
01c9b31
- Update to 1.3.1
01c9b31
f17ffef
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
f17ffef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f17ffef
82689ff
* Fri Mar 17 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 1.2.1-1
82689ff
- Update to 1.2.1
82689ff
d9a8a2d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-7
d9a8a2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d9a8a2d
4f26563
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-6
4f26563
- Rebuild for Python 3.6
4f26563
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.