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