Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
93446fb4f7 | |||
2d29b4dd01 |
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
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}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@@ -25,6 +24,8 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pbr%{psuffix}
|
Name: python-pbr%{psuffix}
|
||||||
Version: 6.1.1
|
Version: 6.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -35,11 +36,11 @@ Source: https://files.pythonhosted.org/packages/source/p/pbr/pbr-%{versi
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-setuptools >= 64.0.0
|
Requires: python-setuptools >= 64.0.0
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Recommends: git-core
|
Recommends: git-core
|
||||||
Obsoletes: python-pbr-doc
|
Obsoletes: python-pbr-doc
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -102,11 +103,8 @@ exclude+="test_handling_of_whitespace_in_data_files"
|
|||||||
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative pbr
|
%python_libalternatives_reset_alternative pbr
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative pbr
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user