Compare commits
10 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9169d89939 | |||
| 365d6d14e7 | |||
| 6385356c0d | |||
| 37a66f0cf2 | |||
| 647de90515 | |||
| 058202bf90 | |||
| acbde3bd85 | |||
| 70a4a8e428 | |||
| 96539ea417 | |||
| 2f040926f6 |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 21 10:03:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 17 12:12:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 12 10:34:46 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
@@ -25,6 +24,12 @@
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pbr%{psuffix}
|
||||
Version: 6.1.1
|
||||
Release: 0
|
||||
@@ -38,11 +43,16 @@ BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools >= 64.0.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: git-core
|
||||
Obsoletes: python-pbr-doc
|
||||
BuildArch: noarch
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
%if %{with test}
|
||||
# Package originates from OpenStack and depends on other OpenStack packages for testing.
|
||||
# These are only available for the primary python3 interpreter in TW, but optional.
|
||||
@@ -108,6 +118,9 @@ exclude+="test_handling_of_whitespace_in_data_files"
|
||||
%postun
|
||||
%python_uninstall_alternative pbr
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative pbr
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc AUTHORS ChangeLog CONTRIBUTING.rst README.rst
|
||||
|
||||
Reference in New Issue
Block a user