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