00bc6b
%global pypi_name PyMySQL
00bc6b
00bc6b
Name:           python-%{pypi_name}
00bc6b
Version:        0.10.1
00bc6b
Release:        2%{?dist}
00bc6b
Summary:        Pure-Python MySQL client library
00bc6b
00bc6b
License:        MIT
00bc6b
URL:            https://pypi.python.org/pypi/%{pypi_name}/
00bc6b
Source0:        https://files.pythonhosted.org/packages/source/P/PyMySQL/PyMySQL-%{version}.tar.gz
00bc6b
00bc6b
BuildArch:      noarch
00bc6b
# Exclude i686 arch. Due to a modularity issue it's being added to the
00bc6b
# x86_64 compose of CRB, but we don't want to ship it at all.
00bc6b
# See: https://projects.engineering.redhat.com/browse/RCM-72605
00bc6b
ExcludeArch:    i686
00bc6b
00bc6b
%description
00bc6b
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
00bc6b
to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython
00bc6b
and Jython.
00bc6b
00bc6b
00bc6b
%package -n     python%{python3_pkgversion}-%{pypi_name}
00bc6b
Summary:        %{summary}
00bc6b
BuildRequires:  python%{python3_pkgversion}-devel
00bc6b
BuildRequires:  python%{python3_pkgversion}-rpm-macros
00bc6b
BuildRequires:  python%{python3_pkgversion}-setuptools
00bc6b
BuildRequires:  python%{python3_pkgversion}-cryptography
00bc6b
Requires:       python%{python3_pkgversion}-cryptography
00bc6b
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
00bc6b
00bc6b
%description -n python%{python3_pkgversion}-%{pypi_name}
00bc6b
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
00bc6b
to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython
00bc6b
and Jython.
00bc6b
00bc6b
00bc6b
%prep
00bc6b
%setup -qn %{pypi_name}-%{version}
00bc6b
rm -rf %{pypi_name}.egg-info
00bc6b
# Remove tests files so they are not installed globally.
00bc6b
rm -rf tests
00bc6b
00bc6b
00bc6b
%build
00bc6b
%py3_build
00bc6b
00bc6b
00bc6b
%install
00bc6b
%py3_install
00bc6b
00bc6b
00bc6b
%check
00bc6b
# Tests cannot be launch on koji, they require a mysqldb running.
00bc6b
00bc6b
00bc6b
%files -n python%{python3_pkgversion}-%{pypi_name}
00bc6b
%license LICENSE
00bc6b
%doc README.rst
00bc6b
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
00bc6b
%{python3_sitelib}/pymysql/
00bc6b
00bc6b
%changelog
00bc6b
* Mon Jan 18 2021 Tomas Orsava <torsava@redhat.com> - 0.10.1-2
00bc6b
- Convert from Fedora to the python39 module in RHEL8
00bc6b
- Resolves: rhbz#1877430
00bc6b
00bc6b
* Thu Sep 10 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.10.1-1
00bc6b
- Update to 0.10.1 (#1877703)
00bc6b
00bc6b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
00bc6b
00bc6b
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 0.10.0-1
00bc6b
- Update to 0.10.0
00bc6b
00bc6b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.3-3
00bc6b
- Rebuilt for Python 3.9
00bc6b
00bc6b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
00bc6b
00bc6b
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 0.9.3-1
00bc6b
- New upstream version 0.9.3
00bc6b
00bc6b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.2-7
00bc6b
- Rebuilt for Python 3.8.0rc1 (#1748018)
00bc6b
00bc6b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.2-6
00bc6b
- Rebuilt for Python 3.8
00bc6b
00bc6b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-5
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
00bc6b
00bc6b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-4
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
00bc6b
00bc6b
* Sun Dec 02 2018 Julien Enselme <jujens@jujens.eu> - 0.9.2-3
00bc6b
- Remove Python 2 subpackage.
00bc6b
00bc6b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-2
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
00bc6b
00bc6b
* Fri Jul 06 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.9.2-1
00bc6b
- Update to 0.9.2
00bc6b
00bc6b
* Tue Jul 03 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.9.1-1
00bc6b
- Update to 0.9.1
00bc6b
00bc6b
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-2
00bc6b
- Rebuilt for Python 3.7
00bc6b
00bc6b
* Sat Jun 30 2018 Julien Enselme <jujens@jujens.eu> - 0.9.0-1
00bc6b
- Update to 0.9.0
00bc6b
00bc6b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-2
00bc6b
- Rebuilt for Python 3.7
00bc6b
00bc6b
* Mon May 07 2018 Julien Enselme <jujens@jujens.eu> - 0.8.1-1
00bc6b
- Update to 0.8.1
00bc6b
00bc6b
* Mon Mar 19 2018 Carl George <carl@george.computer> - 0.8.0-5
00bc6b
- Rename python3 subpackage to python34
00bc6b
00bc6b
* Thu Feb 15 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.8.0-4
00bc6b
- make spec file compatible with epel7
00bc6b
- remove conditionals and always build for Python 3
00bc6b
00bc6b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
00bc6b
00bc6b
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.0-2
00bc6b
- Update Python 2 dependency declarations to new packaging standards
00bc6b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
00bc6b
00bc6b
* Wed Dec 27 2017 Julien Enselme <jujens@jujens.eu> - 0.8.0-1
00bc6b
- Update to 0.8.0
00bc6b
00bc6b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.11-2
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
00bc6b
00bc6b
* Fri Apr 07 2017 Julien Enselme <jujens@jujens.eu> - 0.7.11-1
00bc6b
- Update to 0.7.11
00bc6b
00bc6b
* Wed Feb 15 2017 Julien Enselme <jujens@jujens.eu> - 0.7.10-1
00bc6b
- Update to 0.7.10
00bc6b
00bc6b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-4
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
00bc6b
00bc6b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-3
00bc6b
- Rebuild for Python 3.6
00bc6b
00bc6b
* Wed Nov 23 2016 Damien Ciabrini <dciabrin@redhat.com> - 0.7.9-2
00bc6b
- cherrypick commit 755dfdc upstream to allow bind before connect
00bc6b
  Related: rhbz#1378008
00bc6b
00bc6b
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 0.7.9-1
00bc6b
- Update to 0.7.9
00bc6b
00bc6b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-6
00bc6b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
00bc6b
00bc6b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.7-5
00bc6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
00bc6b
00bc6b
* Mon Jan 4 2016 Julien Enselme <jujens@jujens.eu> - 0.6.7-4
00bc6b
- Correct installation problems due to Requires: mariadb
00bc6b
00bc6b
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 0.6.7-3
00bc6b
- Rebuilt for python 3.5
00bc6b
00bc6b
* Wed Nov  4 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.6.7-2
00bc6b
- Drop unnecessary mariadb requirement
00bc6b
- Add python3 conditionals in order to rebuild it in EL7
00bc6b
00bc6b
* Thu Oct 1 2015 Julien Enselme <jujens@jujens.eu> - 0.6.7-1
00bc6b
- Update to 0.6.7
00bc6b
00bc6b
* Thu Aug 6 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-4
00bc6b
- Use %%license in %%files
00bc6b
00bc6b
* Wed Aug 5 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-3
00bc6b
- Move python2 package in its own subpackage
00bc6b
- Add provides
00bc6b
00bc6b
* Fri Jul 31 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-2
00bc6b
- Add Provides: python2-PyMySQL
00bc6b
- Remove usage of %%py3dir
00bc6b
00bc6b
* Sun May 31 2015 Julien Enselme <jujens@jujens.eu> - 0.6.6-1
00bc6b
- Update to 0.6.6
00bc6b
00bc6b
* Wed Nov 26 2014 Julien Enselme <jujens@jujens.eu> - 0.6.2-1
00bc6b
- Initial packaging