Blame SPECS/python3.11-PyMySQL.spec

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