import python3.12-PyMySQL-1.1.0-2.el9

i9c-beta changed/i9c-beta/python3.12-PyMySQL-1.1.0-2.el9
MSVSphere Packaging Team 8 months ago
commit b5c490bc5e

1
.gitignore vendored

@ -0,0 +1 @@
SOURCES/PyMySQL-1.1.0.tar.gz

@ -0,0 +1 @@
6d1caef3b6f1b699816a578a1033d98a436627a9 SOURCES/PyMySQL-1.1.0.tar.gz

@ -0,0 +1,6 @@
# We need this for the build to work, but everything will be done
# by setuptools from pyproject.toml
from setuptools import setup
setup()

@ -0,0 +1,83 @@
%global __python3 /usr/bin/python3.12
%global python3_pkgversion 3.12
%global pypi_name PyMySQL
Name: python%{python3_pkgversion}-%{pypi_name}
Version: 1.1.0
Release: 2%{?dist}
Summary: Pure-Python MySQL client library
License: MIT
URL: https://pypi.python.org/pypi/%{pypi_name}/
Source0: %pypi_source
Source1: setup.py
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
%if ! 0%{?rhel}
# ed25519 extra
BuildRequires: python%{python3_pkgversion}-pynacl
%endif
%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.
%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-%{pypi_name} -i %{python3_sitelib}/*.egg-info rsa %{?!rhel:ed25519}}
%prep
%setup -qn %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
# Remove tests files so they are not installed globally.
rm -rf tests
cp %{SOURCE1} .
%build
%py3_build
%install
%py3_install
%check
# Tests cannot be launch on koji, they require a mysqldb running.
%py3_check_import pymysql
%files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/pymysql/
%changelog
* Thu Mar 28 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.1.0-2
- Rebuilt for MSVSphere 9.4 beta
* Tue Jan 23 2024 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
- Rebuilt for timestamp .pyc invalidation mode
* Mon Oct 16 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.1.0-4
- 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>
Yaakov Selkowitz <yselkowi@redhat.com>
Loading…
Cancel
Save