forked from pool/python-exrex
Accepting request 1284197 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1284197 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exrex?expand=0&rev=9
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user