forked from pool/python-TermRecord
Accepting request 1282843 from home:fstegmeier:branches:devel:languages:python
- fix usage of libalternatives OBS-URL: https://build.opensuse.org/request/show/1282843 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-TermRecord?expand=0&rev=14
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 15:32:41 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
- fix usage of libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 12 15:01:49 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-TermRecord
|
||||
Version: 1.2.5
|
||||
Release: 0
|
||||
@@ -26,11 +27,11 @@ Source: https://files.pythonhosted.org/packages/source/T/TermRecord/Term
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-Jinja2 >= 2.6
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Jinja2 >= 2.6}
|
||||
@@ -55,11 +56,9 @@ it can be shipped to anyone that has a browser. Fonts are embedded, too.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/TermRecord
|
||||
|
||||
%post
|
||||
%python_install_alternative TermRecord
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative TermRecord
|
||||
%pre
|
||||
# Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative TermRecord
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user