Blame SPECS/python3.11-PyMySQL.spec

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