14
0
forked from pool/python-whey

1 Commits

Author SHA256 Message Date
20555a4b99 Convert to libalternatives, bsc#1245883 2025-11-03 15:12:33 +01:00
2 changed files with 37 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Aug 26 09:39:19 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Thu Feb 27 09:56:09 UTC 2025 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Fri Jul 26 07:14:31 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-whey
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,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-whey%{psuffix}
Version: 0.1.1
Release: 0
@@ -34,18 +40,8 @@ Source: https://github.com/repo-helper/whey/archive/refs/tags/v%{version
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 40.6.0}
BuildRequires: %{python_module wheel >= 0.34.2}
BuildRequires: python-rpm-macros
# SECTION test requirements
%if %{with test}
BuildRequires: %{python_module editables}
BuildRequires: %{python_module pyproject-examples}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module re-assert}
BuildRequires: %{python_module whey = %{version}}
%endif
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-attrs >= 22.2.0
Requires: python-click >= 7.1.2
Requires: python-consolekit >= 1.4.1
@@ -59,9 +55,24 @@ Requires: python-pyproject-parser >= 0.11.0
Requires: python-shippinglabel >= 0.16.0
Suggests: python-docutils >= 0.16
Suggests: python-editables >= 0.2
BuildArch: noarch
# SECTION test requirements
%if %{with test}
BuildRequires: %{python_module editables}
BuildRequires: %{python_module pyproject-examples}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module re-assert}
BuildRequires: %{python_module whey = %{version}}
%endif
# /SECTION
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%python_subpackages
%description
@@ -86,6 +97,9 @@ A simple Python wheel builder for simple projects.
%postun
%python_uninstall_alternative whey
%pre
%python_libalternatives_reset_alternative whey
%endif
%check