15
0
forked from pool/python-exrex

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exrex?expand=0&rev=22
This commit is contained in:
2025-06-09 13:26:58 +00:00
committed by Git OBS Bridge
parent 99346a814c
commit 1b3eb3cd20
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 13:26:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue May 27 10:23:28 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
Name: python-exrex
Version: 0.11.0
Release: 0
@@ -29,11 +30,11 @@ Source: https://github.com/asciimoo/exrex/archive/v%{version}.tar.gz#/ex
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-setuptools
Requires(post): alts
Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -57,11 +58,8 @@ rm %{buildroot}%{_bindir}/exrex.py
%{python_expand # comment
LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{$python_sitelib} $python ./tests.py}
%post
%python_install_alternative exrex
%postun
%python_uninstall_alternative exrex
%pre
%python_libalternatives_reset_alternative exrex
%files %{python_files}
%{python_sitelib}/exrex*