81f8e16
%global pypi_name PyMySQL
81f8e16
81f8e16
Name:           python-%{pypi_name}
f130e96
Version:        0.9.2
4987511
Release:        5%{?dist}
81f8e16
Summary:        Pure-Python MySQL client library
81f8e16
81f8e16
License:        MIT
81f8e16
URL:            https://pypi.python.org/pypi/%{pypi_name}/
dcf93ff
Source0:        https://files.pythonhosted.org/packages/source/P/PyMySQL/PyMySQL-%{version}.tar.gz
ce242ad
81f8e16
BuildArch:      noarch
2fd17d0
81f8e16
%description
81f8e16
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
81f8e16
to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython
81f8e16
and Jython.
81f8e16
81f8e16
d960ab6
%package -n     python%{python3_pkgversion}-%{pypi_name}
9c344a1
Summary:        %{summary}
9c344a1
BuildRequires:  python%{python3_pkgversion}-devel
9c344a1
BuildRequires:  python%{python3_pkgversion}-setuptools
9c344a1
BuildRequires:  python%{python3_pkgversion}-cryptography
1904aae
Requires:       python%{python3_pkgversion}-cryptography
24afbb8
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
81f8e16
d960ab6
%description -n python%{python3_pkgversion}-%{pypi_name}
81f8e16
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
81f8e16
to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython
81f8e16
and Jython.
81f8e16
ed12619
81f8e16
%prep
81f8e16
%setup -qn %{pypi_name}-%{version}
81f8e16
rm -rf %{pypi_name}.egg-info
1904aae
# Remove tests files so they are not installed globally.
1904aae
rm -rf tests
81f8e16
ce242ad
81f8e16
%build
81f8e16
%py3_build
81f8e16
ed12619
81f8e16
%install
5552d4c
%py3_install
81f8e16
ed12619
81f8e16
%check
81f8e16
# Tests cannot be launch on koji, they require a mysqldb running.
81f8e16
81f8e16
d960ab6
%files -n python%{python3_pkgversion}-%{pypi_name}
81f8e16
%license LICENSE
81f8e16
%doc README.rst
81f8e16
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
81f8e16
%{python3_sitelib}/pymysql/
ed12619
81f8e16
%changelog
4987511
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-5
4987511
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4987511
903c7cd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-4
903c7cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
903c7cd
9c344a1
* Sun Dec 02 2018 Julien Enselme <jujens@jujens.eu> - 0.9.2-3
9c344a1
- Remove Python 2 subpackage.
9c344a1
b05eb15
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-2
b05eb15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b05eb15
f130e96
* Fri Jul 06 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.9.2-1
f130e96
- Update to 0.9.2
f130e96
4da9d9d
* Tue Jul 03 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.9.1-1
4da9d9d
- Update to 0.9.1
4da9d9d
fe978c9
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-2
fe978c9
- Rebuilt for Python 3.7
fe978c9
26c4ddb
* Sat Jun 30 2018 Julien Enselme <jujens@jujens.eu> - 0.9.0-1
26c4ddb
- Update to 0.9.0
26c4ddb
080d33c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-2
080d33c
- Rebuilt for Python 3.7
080d33c
1639bb5
* Mon May 07 2018 Julien Enselme <jujens@jujens.eu> - 0.8.1-1
1639bb5
- Update to 0.8.1
1639bb5
d960ab6
* Mon Mar 19 2018 Carl George <carl@george.computer> - 0.8.0-5
d960ab6
- Rename python3 subpackage to python34
d960ab6
24afbb8
* Thu Feb 15 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.8.0-4
24afbb8
- make spec file compatible with epel7
2fd17d0
- remove conditionals and always build for Python 3
24afbb8
df6e7c1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
df6e7c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
df6e7c1
4a24780
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.0-2
4a24780
- Update Python 2 dependency declarations to new packaging standards
4a24780
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
4a24780
495822d
* Wed Dec 27 2017 Julien Enselme <jujens@jujens.eu> - 0.8.0-1
495822d
- Update to 0.8.0
495822d
1c13e03
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.11-2
1c13e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1c13e03
64c1c19
* Fri Apr 07 2017 Julien Enselme <jujens@jujens.eu> - 0.7.11-1
64c1c19
- Update to 0.7.11
64c1c19
ed12619
* Wed Feb 15 2017 Julien Enselme <jujens@jujens.eu> - 0.7.10-1
ed12619
- Update to 0.7.10
ed12619
395d837
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-4
395d837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
395d837
7340d81
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-3
7340d81
- Rebuild for Python 3.6
7340d81
ce242ad
* Wed Nov 23 2016 Damien Ciabrini <dciabrin@redhat.com> - 0.7.9-2
ce242ad
- cherrypick commit 755dfdc upstream to allow bind before connect
ce242ad
  Related: rhbz#1378008
ce242ad
c3f291b
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 0.7.9-1
c3f291b
- Update to 0.7.9
c3f291b
95d7398
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-6
95d7398
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
95d7398
6f5389d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.7-5
6f5389d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6f5389d
559e742
* Mon Jan 4 2016 Julien Enselme <jujens@jujens.eu> - 0.6.7-4
559e742
- Correct installation problems due to Requires: mariadb
559e742
cc36ddb
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 0.6.7-3
cc36ddb
- Rebuilt for python 3.5
cc36ddb
5552d4c
* Wed Nov  4 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.6.7-2
5552d4c
- Drop unnecessary mariadb requirement
5552d4c
- Add python3 conditionals in order to rebuild it in EL7
5552d4c
cb9e246
* Thu Oct 1 2015 Julien Enselme <jujens@jujens.eu> - 0.6.7-1
cb9e246
- Update to 0.6.7
cb9e246
81f8e16
* Thu Aug 6 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-4
81f8e16
- Use %%license in %%files
81f8e16
81f8e16
* Wed Aug 5 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-3
81f8e16
- Move python2 package in its own subpackage
81f8e16
- Add provides
81f8e16
81f8e16
* Fri Jul 31 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-2
81f8e16
- Add Provides: python2-PyMySQL
81f8e16
- Remove usage of %%py3dir
81f8e16
81f8e16
* Sun May 31 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-1
81f8e16
- Update to 0.6.6
81f8e16
81f8e16
* Wed Nov 26 2014 Julien Enselme <jujens@jujens.eu> - 0.6.2-1
81f8e16
- Initial packaging