Compare commits

6 Commits

Author SHA256 Message Date
177f17b881 Accepting request 1282828 from devel:languages:python
- fix usage of libalternatives

OBS-URL: https://build.opensuse.org/request/show/1282828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-behave?expand=0&rev=8
2025-06-04 18:30:12 +00:00
64a9ee31d9 - fix usage of libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-behave?expand=0&rev=15
2025-06-04 15:05:44 +00:00
801bd174b6 Accepting request 1277704 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277704
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-behave?expand=0&rev=7
2025-05-15 15:02:38 +00:00
6891715ab1 Accepting request 1277367 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1277367
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-behave?expand=0&rev=13
2025-05-15 11:01:42 +00:00
ac0d303c07 Accepting request 1217237 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1217237
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-behave?expand=0&rev=6
2024-10-23 19:11:00 +00:00
99362fb45a Accepting request 1217121 from home:yeey:OpenWebUI
package is required for SUSE AI project

OBS-URL: https://build.opensuse.org/request/show/1217121
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-behave?expand=0&rev=11
2024-10-23 08:15:49 +00:00
2 changed files with 32 additions and 11 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Wed Jun 4 15:05:03 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Wed May 14 09:11:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Sep 26 17:53:18 UTC 2024 - Guang Yee <gyee@suse.com>
- Enable sle15_python_module_pythons.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 17 14:54:59 UTC 2022 - pgajdos@suse.com Tue May 17 14:54:59 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-behave # spec file for package python-behave
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,8 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-behave Name: python-behave
Version: 1.2.6 Version: 1.2.6
Release: 0 Release: 0
@@ -32,14 +33,16 @@ Patch2: python-behave-fix-tests.patch
# https://github.com/behave/behave/issues/1028 # https://github.com/behave/behave/issues/1028
Patch3: python-behave-no-mock.patch Patch3: python-behave-no-mock.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-parse >= 1.8.2 Requires: python-parse >= 1.8.2
Requires: python-parse_type >= 0.4.2 Requires: python-parse_type >= 0.4.2
Requires: python-six >= 1.11 Requires: python-six >= 1.11
Requires(post): update-alternatives
Requires(postun):update-alternatives
Suggests: python-argparse Suggests: python-argparse
Suggests: python-coverage Suggests: python-coverage
Suggests: python-enum34 Suggests: python-enum34
@@ -80,26 +83,29 @@ code.
%autosetup -p1 -n behave-%{version} %autosetup -p1 -n behave-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/behave %python_clone -a %{buildroot}%{_bindir}/behave
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest tests %pytest tests
%post %pre
%python_install_alternative behave # If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative behave
%postun # post and postun macro call is not needed with only libalternatives
%python_uninstall_alternative behave
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%python_alternative %{_bindir}/behave %python_alternative %{_bindir}/behave
%{python_sitelib}/* %{python_sitelib}/behave
%{python_sitelib}/setuptools_behave.py
%pycache_only %{python_sitelib}/__pycache__/setuptools_behave*
%{python_sitelib}/behave-%{version}*-info
%changelog %changelog