Blame SPECS/python3.11-PyMySQL.spec

0e8c02
%global __python3 /usr/bin/python3.11
0e8c02
%global python3_pkgversion 3.11
0e8c02
0e8c02
%global pypi_name PyMySQL
0e8c02
0e8c02
Name:           python%{python3_pkgversion}-%{pypi_name}
0e8c02
Version:        1.0.2
0e8c02
Release:        1%{?dist}
0e8c02
Summary:        Pure-Python MySQL client library
0e8c02
0e8c02
License:        MIT
0e8c02
URL:            https://pypi.python.org/pypi/%{pypi_name}/
0e8c02
Source0:        %pypi_source
0e8c02
0e8c02
BuildArch:      noarch
0e8c02
0e8c02
0e8c02
BuildRequires:  python%{python3_pkgversion}-devel
0e8c02
BuildRequires:  python%{python3_pkgversion}-rpm-macros
0e8c02
BuildRequires:  python%{python3_pkgversion}-setuptools
0e8c02
# rsa extra
0e8c02
BuildRequires:  python%{python3_pkgversion}-cryptography
0e8c02
# ed25519 extra
0e8c02
# Disabled in RHEL due to missing dependency
0e8c02
# BuildRequires:  python%%{python3_pkgversion}-pynacl
0e8c02
0e8c02
%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-%{pypi_name} -i %{python3_sitelib}/*.egg-info rsa}
0e8c02
0e8c02
%description
0e8c02
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
0e8c02
to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython
0e8c02
and Jython.
0e8c02
0e8c02
0e8c02
%prep
0e8c02
%setup -qn %{pypi_name}-%{version}
0e8c02
rm -rf %{pypi_name}.egg-info
0e8c02
# Remove tests files so they are not installed globally.
0e8c02
rm -rf tests
0e8c02
0e8c02
0e8c02
%build
0e8c02
%py3_build
0e8c02
0e8c02
0e8c02
%install
0e8c02
%py3_install
0e8c02
0e8c02
0e8c02
%check
0e8c02
# Tests cannot be launch on koji, they require a mysqldb running.
0e8c02
0e8c02
0e8c02
%files -n python%{python3_pkgversion}-%{pypi_name}
0e8c02
%license LICENSE
0e8c02
%doc README.rst
0e8c02
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
0e8c02
%{python3_sitelib}/pymysql/
0e8c02
0e8c02
%changelog
0e8c02
* Wed Nov 30 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.0.2-1
0e8c02
- Initial package
0e8c02
- Fedora contributions by:
0e8c02
      Benjamin A. Beasley <code@musicinmybrain.net>
0e8c02
      Carl George <carl@george.computer>
0e8c02
      Damien Ciabrini <dciabrin@redhat.com>
0e8c02
      Haikel Guemar <hguemar@fedoraproject.org>
0e8c02
      Iryna Shcherbina <shcherbina.iryna@gmail.com>
0e8c02
      Itamar Reis Peixoto <itamar@ispbrasil.com.br>
0e8c02
      Julien Enselme <jujens@jujens.eu>
0e8c02
      Lumir Balhar <lbalhar@redhat.com>
0e8c02
      Miro HronĨok <miro@hroncok.cz>