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