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