## 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 Patch: Patch-multiprocessing-default-context-method.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 * Mon Nov 25 2024 Karolina Surma - 1.3.2-2 - Uncommitted changes * Tue Jul 30 2024 Sandro - 1.3.2-1 - Initial release (RHBZ#2282496) ## END: Generated by rpmautospec