15
0

2 Commits

Author SHA256 Message Date
bf43797ef4 Accepting request 1221624 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1221624
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=21
2024-11-06 15:55:40 +00:00
446e4b0b82 - Add patch support-python-313.patch:
* No longer use now-removed pipes module.
- Remove Python 2 leftovers.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=42
2024-10-30 02:58:53 +00:00
2 changed files with 8 additions and 11 deletions

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
Thu Jul 10 13:10:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 30 02:58:39 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com> Wed Oct 30 02:58:39 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-humanfriendly # spec file for package python-humanfriendly
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2024 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
@@ -24,7 +24,6 @@
%define psuffix %{nil} %define psuffix %{nil}
%bcond_with test %bcond_with test
%endif %endif
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-humanfriendly%{psuffix} Name: python-humanfriendly%{psuffix}
Version: 10.0 Version: 10.0
@@ -42,11 +41,11 @@ Patch2: support-python-313.patch
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 Requires: python
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module capturer >= 2.1} BuildRequires: %{python_module capturer >= 2.1}
@@ -96,8 +95,11 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hu
%endif %endif
%if !%{with test} %if !%{with test}
%pre %post
%python_libalternatives_reset_alternative humanfriendly %python_install_alternative humanfriendly
%postun
%python_uninstall_alternative humanfriendly
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt