## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 %global desc %{expand: Behavior-driven development (or BDD) is an agile software development technique that encourages collaboration between developers, QA and non-technical or business participants in a software project. behave uses tests written in a natural language style, backed up by Python code.} # RHBZ #2179979 %undefine _py3_shebang_s Name: python-behave Version: 1.3.3 Release: %autorelease Summary: Behavior-driven development, Python style License: BSD-2-Clause URL: https://pypi.org/project/behave %global forgeurl https://github.com/behave/behave Source: %{forgeurl}/archive/v%{version}/behave-%{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 # CLEANUP: Use "unittest.mock" instead of "mock" # https://github.com/behave/behave/commit/90e20ba935a440975440edce9eeebe4492c9367b # Backported to v1.3.3. Patch: 0001-CLEANUP-Use-unittest.mock-instead-of-mock.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: help2man BuildRequires: tomcli %description %{desc} %package -n python3-behave Summary: %{summary} # Sphinx-generated HTML documentation has issues with bundled JavaScript, etc. # (https://bugzilla.redhat.com/show_bug.cgi?id=2006555). While # https://pagure.io/fesco/issue/3177 and https://pagure.io/fesco/issue/3269 # have improved the situation, it is still troublesome to package correctly, # and the package is greatly simplified by removing it. Obsoletes: python-behave-doc < 1.3.3-1 %description -n python3-behave %{desc} %prep %autosetup -n behave-%{version} -p1 # We do not need HTML reports from pytest. tomcli set pyproject.toml lists delitem \ project.optional-dependencies.testing 'pytest-\bhtml.*' %generate_buildrequires %pyproject_buildrequires -x testing %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l behave mkdir -p %{buildroot}%{_mandir}/man1 PYTHONPATH=%{buildroot}%{python3_sitelib} help2man \ --no-info \ --name="Run a number of feature tests with behave." \ --output=%{buildroot}%{_mandir}/man1/behave.1 \ %{buildroot}%{_bindir}/behave %check %pytest -v %files -n python3-behave -f %{pyproject_files} %doc README.rst %{_bindir}/behave %{_mandir}/man1/behave.1* %changelog ## START: Generated by rpmautospec * Fri Sep 12 2025 Benjamin A. Beasley - 1.3.3-1 - Update to 1.3.3 (close RHBZ#2314386) * Fri Aug 15 2025 Python Maint - 1.2.6-35 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 1.2.6-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 1.2.6-33 - Rebuilt for Python 3.14 * Fri May 30 2025 Karolina Surma - 1.2.6-32 - Support Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 1.2.6-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Dec 12 2024 Miro Hrončok - 1.2.6-30 - Replace nose test-framework functionality with pytest - https://fedoraproject.org/wiki/Changes/DeprecateNose * Fri Jul 19 2024 Fedora Release Engineering - 1.2.6-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 1.2.6-27 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.6-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.2.6-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.2.6-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 1.2.6-23 - Rebuilt for Python 3.12 * Thu Mar 23 2023 aekoroglu - 1.2.6-22 - RHBZ #2180467 * Wed Mar 22 2023 aekoroglu - 1.2.6-21 - RHBZ #2179979 * Fri Jan 20 2023 Fedora Release Engineering - 1.2.6-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.2.6-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 27 2022 Ali Erdinc Koroglu - 1.2.6-16 - Rebuilt for RHBZ #2046224 * Mon Jun 13 2022 Python Maint - 1.2.6-15 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.2.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.2.6-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.6-12 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.2.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 1.2.6-9 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.2.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.6-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.2.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 19 2019 Miro Hrončok - 1.2.6-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Aug 22 2018 Miro Hrončok - 1.2.6-1 - Update to 1.2.6 - Drop python2 subpackage - Drop downstream only patches adding functionality * Fri Jul 13 2018 Fedora Release Engineering - 1.2.5-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.2.5-24 - Rebuilt for Python 3.7 * Fri Apr 13 2018 Kalev Lember - 1.2.5-23 - Fix python-behave obsoletes/provides * Wed Feb 07 2018 Iryna Shcherbina - 1.2.5-22 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jul 27 2017 Fedora Release Engineering - 1.2.5-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2.5-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.2.5-19 - Rebuild for Python 3.6 * Wed Sep 21 2016 Matěj Cepl - 1.2.5-18.0.MC - Rewrite the patch using six :( * Tue Sep 20 2016 Matěj Cepl - 1.2.5-18 - Add patch 0003-unicode_fixes.patch * Fri Aug 12 2016 Igor Gnatenko - 1.2.5-17 - Modernize spec - Backport patch to put label into sphinx before step * Tue Jul 19 2016 Fedora Release Engineering - 1.2.5-16 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Jul 12 2016 Matěj Cepl - 1.2.5-15 - Recover the build on RHEL-7 again. * Wed Jun 22 2016 Matěj Cepl - 1.2.5-14 - Add a symlink /usr/bin/behave unconditionally (fix #1348872) * Fri Jun 03 2016 Igor Gnatenko - 1.2.5-13 - Update packaging to be compliant with new guidelines - Fix building manpage - Really run tests for python3 - Proper handling for binaries * Wed Mar 23 2016 Matěj Cepl - 1.2.5-12 - it works a way better when the symlink actually points to somewhere. * Wed Mar 23 2016 Matěj Cepl - 1.2.5-11 - /usr/bin/behave belongs to python2 package still (#1319632) * Fri Mar 04 2016 Miro Hrončok - 1.2.5-10 - Move python3 requires to python3 subpackage (#1314741) * Mon Feb 29 2016 Matěj Cepl - 1.2.5-9 - RHEL-7 doesn't have py3k toolchain. * Mon Feb 29 2016 Matěj Cepl - 1.2.5-8 - Fix wrong %%if conditions. * Thu Feb 25 2016 Miro Hrončok - 1.2.5-7 - Make Python 3 the default version for the binary and provide a binary for 2 as well * Thu Feb 04 2016 Fedora Release Engineering - 1.2.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Nov 15 2015 Björn Esser - 1.2.5-5 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Tue Nov 03 2015 Matěj Cepl - 1.2.5-3 - Build also python3 packages (fix #1276923). * Thu Jun 18 2015 Fedora Release Engineering - 1.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu May 21 2015 Matej Cepl - 1.2.5-2 - Add a patch for embeding video in HTML formatted report * Wed Apr 29 2015 Matej Cepl - 1.2.5-1 - Upgrade to the latest release (fix #1214767) * Fri Sep 12 2014 Matěj Cepl - 1.2.4-4 - Add another patch to fix an Unicode error (thanks for vbenes for fixing my earlier proposal). * Thu Jul 17 2014 Matěj Cepl - 1.2.4-2 - Build documentation even on EPEL-7. * Thu Jun 19 2014 Matěj Cepl - 1.2.4-1 - New upstream release * Sat Jun 07 2014 Fedora Release Engineering - 1.2.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri May 09 2014 Matěj Cepl - 1.2.3-13 - Remove bundled compatibility libraries and add Requires (fix #1096220). * Mon Apr 07 2014 Matěj Cepl - 1.2.3-12 - Add python-setuptools dependency (fix #1084996) * Wed Mar 19 2014 Matěj Cepl - 1.2.3-11 - Another fix for RHBZ# 1067388 by Vadim Rutkovsky * Wed Mar 12 2014 Matěj Cepl - 1.2.3-10 - Fix Patch 1 * Wed Mar 12 2014 Matěj Cepl - 1.2.3-9 - Add two patches provided by Vadim Rutkovsky (fix #1058371 and #1067388) * Tue Oct 29 2013 Matěj Cepl - 1.2.3-8 - Add Vadim Rutkovsky’s HTML Formatter patch (fix #1024023) * Wed Oct 23 2013 Matěj Cepl - 1.2.3-7 - Make generating of docs conditional again. * Wed Oct 23 2013 Björn Esser - 1.2.3-6 - fixed all remaining issues as mentioned in rhbz# 987622 c# 16 - added needed conditionals for building on el6. * Tue Oct 22 2013 Matěj Cepl - 1.2.3-5 - Generate sphinx documentation * Tue Oct 22 2013 Matěj Cepl - 1.2.3-4 - Fix spelling to en_US (apparently reviewer doesn't understand proper English ;)) - Add specific python2 marcros - Fix files in _bindir to refer to python2 explicitly. - Run testsuite * Mon Oct 21 2013 Matěj Cepl - 1.2.3-3 - Update generation of manpage from --help output. * Sun Jul 28 2013 Matěj Cepl - 1.2.3-2 - Fix changelog - Give up on Python3 module ATM (https://bugzilla.redhat.com/show_bug.cgi?id=987622#c2 and https://github.com/behave/behave/issues/119) - noarch package doesn't need CFLAGS set * Tue Jul 23 2013 Matěj Cepl - 1.2.3-1 - initial package for Fedora ## END: Generated by rpmautospec