68 lines
1.6 KiB
RPMSpec
68 lines
1.6 KiB
RPMSpec
%global python3_pkgversion 3.14
|
|
|
|
Name: python%{python3_pkgversion}-PyMySQL
|
|
Version: 1.1.2
|
|
Release: 1%{?dist}
|
|
Summary: Pure-Python MySQL client library
|
|
|
|
License: MIT
|
|
URL: https://pypi.org/project/pymysql/
|
|
Source: %{pypi_source pymysql}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
|
%description
|
|
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
|
|
to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython
|
|
and Jython.
|
|
|
|
|
|
%pyproject_extras_subpkg -n python%{python3_pkgversion}-PyMySQL rsa %{!?rhel:ed25519}
|
|
|
|
|
|
%prep
|
|
%autosetup -n pymysql-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires -x rsa %{!?rhel:-x ed25519}
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files pymysql
|
|
|
|
|
|
%check
|
|
# Tests cannot be launch on koji, they require a mysqldb running.
|
|
%pyproject_check_import
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-PyMySQL -f %{pyproject_files}
|
|
%doc README.md
|
|
|
|
|
|
%changelog
|
|
* Fri Oct 24 2025 Python Maint <python-maint@redhat.com> - 1.1.2-1
|
|
- Initial package
|
|
- Fedora contributions by:
|
|
Benjamin A. Beasley <code@musicinmybrain.net>
|
|
Carl George <carl@george.computer>
|
|
Damien Ciabrini <dciabrin@redhat.com>
|
|
Haïkel Guémar <hguemar@fedoraproject.org>
|
|
Iryna Shcherbina <ishcherb@redhat.com>
|
|
Itamar Reis Peixoto <itamar@ispbrasil.com.br>
|
|
Julien Enselme <jujens@jujens.eu>
|
|
Lumír Balhar <lbalhar@redhat.com>
|
|
Michal Schorm <mschorm@redhat.com>
|
|
Miro Hrončok <mhroncok@redhat.com>
|
|
Yaakov Selkowitz <yselkowi@redhat.com>
|
|
|