Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 177f17b881 | |||
| 64a9ee31d9 | |||
| 801bd174b6 | |||
| 6891715ab1 | |||
| ac0d303c07 | |||
| 99362fb45a |
@@ -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
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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
|
||||
Version: 1.2.6
|
||||
Release: 0
|
||||
@@ -32,14 +33,16 @@ Patch2: python-behave-fix-tests.patch
|
||||
# https://github.com/behave/behave/issues/1028
|
||||
Patch3: python-behave-no-mock.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-parse >= 1.8.2
|
||||
Requires: python-parse_type >= 0.4.2
|
||||
Requires: python-six >= 1.11
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Suggests: python-argparse
|
||||
Suggests: python-coverage
|
||||
Suggests: python-enum34
|
||||
@@ -80,26 +83,29 @@ code.
|
||||
%autosetup -p1 -n behave-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/behave
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest tests
|
||||
|
||||
%post
|
||||
%python_install_alternative behave
|
||||
%pre
|
||||
# If libalternatives is used: Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative behave
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative behave
|
||||
# post and postun macro call is not needed with only libalternatives
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGES.rst README.rst
|
||||
%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
|
||||
|
||||
Reference in New Issue
Block a user