## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 expecttest %global pypi_version 0.2.1 # Upstream does not tag, this is the commit for 0.2.1 %global commit0 683b09a352cc426851adc2e3a9f46e0ab25e4dee %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global desc %{expand: \ This library implements expect tests (also known as "golden" tests). Expect tests are a method of writing tests where instead of hard-coding the expected output of a test, you run the test to get the output, and the test framework automatically populates the expected output. If the output of the test changes, you can rerun the test with the environment variable EXPECTTEST_ACCEPT=1 to automatically update the expected output.} Name: python-%{pypi_name} Version: %{pypi_version} Release: %autorelease Summary: A python test utility License: MIT URL: https://github.com/ezyang/expecttest Source0: %{url}/archive/%{commit0}/%{pypi_name}-%{shortcommit0}.tar.gz BuildArch: noarch BuildRequires: python3dist(hypothesis) BuildRequires: python3dist(pytest) %description %{desc} %package -n python3-%{pypi_name} Summary: A python test utility %description -n python3-%{pypi_name} %{desc} %prep %autosetup -p1 -n %{pypi_name}-%{commit0} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %check %pyproject_check_import %pytest %install %pyproject_install %pyproject_save_files %{pypi_name} %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.2.1-2 - Rebuilt for Python 3.13 * Thu Mar 28 2024 Tom Rix - 0.2.1-1 - Initial package ## END: Generated by rpmautospec