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