## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name pytest-localftpserver Name: python-%{pypi_name} Version: 1.3.2 Release: %{autorelease} Summary: A PyTest plugin which provides an FTP fixture for your tests %global forgeurl https://github.com/oz123/pytest-localftpserver %forgemeta # SPDX License: MIT URL: https://pytest-localftpserver.readthedocs.io/ Source: %forgesource # Avoid the multiprocessing forkserver method # https://github.com/oz123/pytest-localftpserver/pull/351 # # Fixes: # # python-pytest-localftpserver fails to build with Python 3.14: multiprocessing # has changed the start method to 'forkserver' # https://bugzilla.redhat.com/show_bug.cgi?id=2328701 Patch: %{forgeurl}/pull/351.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(cryptography) %global _description %{expand: A PyTest plugin which provides an FTP fixture for your tests. Documentation: https://pytest-localftpserver.readthedocs.io/} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 # Remove shebang sed -i '/env python/ d' pytest_localftpserver/plugin.py %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=v%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=v%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pytest_localftpserver %check %pytest -v \ tests/test_pytest_localftpserver.py \ tests/test_helper_functions.py %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst AUTHORS.rst HISTORY.rst %changelog ## START: Generated by rpmautospec * Tue Nov 26 2024 Benjamin A. Beasley - 1.3.2-2 - Patch for Python 3.14 (close RHBZ#2328701) * Tue Jul 30 2024 Sandro - 1.3.2-1 - Initial release (RHBZ#2282496) ## END: Generated by rpmautospec