## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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-cucumber-tag-expressions Version: 7.0.0 Release: %autorelease Summary: Provides a tag-expression parser and evaluation logic for cucumber/behave License: MIT URL: https://github.com/cucumber/tag-expressions # The GitHub archive has test data files; the PyPI sdist does not. Source: %{url}/archive/v%{version}/tag-expressions-%{version}.tar.gz # Downstream-only: omit pytest options for pytest-html # (We patch it out in %%prep because we do not need HTML reports.) Patch: 0001-Downstream-only-omit-pytest-options-for-pytest-html.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: tomcli %global common_description %{expand: Cucumber tag-expressions provide readable boolean expressions to select features and scenarios marked with tags in Gherkin files in an easy way.} %description %{common_description} %package -n python3-cucumber-tag-expressions Summary: %{summary} %description -n python3-cucumber-tag-expressions %{common_description} %prep %autosetup -n tag-expressions-%{version} -p1 # We do not need HTML reports from pytest. tomcli set python/pyproject.toml lists delitem \ project.optional-dependencies.testing 'pytest-\bhtml.*' %generate_buildrequires -p export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' cd python %pyproject_buildrequires -x testing %build export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' cd python %pyproject_wheel %install install -t '%{buildroot}%{_pkgdocdir}/general' -p -m 0644 -D \ ARCHITECTURE.md CHANGELOG.md README.md install -t '%{buildroot}%{_pkgdocdir}' -p -m 0644 -D python/README.rst %pyproject_install %pyproject_save_files -l cucumber_tag_expressions %check %pyproject_check_import %pytest python/tests -v %files -n python3-cucumber-tag-expressions -f %{pyproject_files} %doc %{_pkgdocdir}/ %changelog ## START: Generated by rpmautospec * Fri Oct 03 2025 Packit - 7.0.0-1 - Update to 7.0.0 upstream release - Resolves: rhbz#2401255 * Sun Sep 28 2025 Benjamin A. Beasley - 6.2.0-2 - Backport to EPEL10 * Sun Sep 28 2025 Benjamin A. Beasley - 6.2.0-1 - Initial package (close RHBZ#2394789) ## END: Generated by rpmautospec