## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 Name: python-sysrsync Version: 1.1.1 Release: %autorelease Summary: Simple and safe python wrapper for calling system rsync # SPDX License: MIT URL: https://github.com/gchamon/sysrsync # PyPI source distributions lack tests; use the GitHub archive Source: %{url}/archive/%{version}/sysrsync-%{version}.tar.gz # Declare build-system dependencies and correctly exclude tests from packaging # https://github.com/gchamon/sysrsync/pull/39 Patch: %{url}/pull/39.patch BuildArch: noarch BuildRequires: rsync BuildRequires: python3-devel %global common_description %{expand: %{summary}.} %description %{common_description} %package -n python3-sysrsync Summary: %{summary} Requires: rsync %description -n python3-sysrsync %{common_description} %prep %autosetup -n sysrsync-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l sysrsync %check # We cannot run the end-to-end-tests/ because they require Docker and network # access, but we can run the unit tests. %{py3_test_envvars} %{python3} -m unittest discover -v -s test/ %files -n python3-sysrsync -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Benjamin A. Beasley - 1.1.1-1 - Initial package (close RHBZ#2259302) ## END: Generated by rpmautospec