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