Blame SPECS/python3.11-PyMySQL.spec

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