14
0

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nodeenv?expand=0&rev=28
This commit is contained in:
2025-07-16 12:59:38 +00:00
committed by Git OBS Bridge
parent f23d41fe07
commit d08647a716
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 16 12:59:23 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 5 02:59:57 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> Mon May 5 02:59:57 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -16,6 +16,7 @@
# #
%bcond_without libalternatives
%{?sle15allpythons} %{?sle15allpythons}
Name: python-nodeenv Name: python-nodeenv
Version: 1.9.1 Version: 1.9.1
@@ -28,11 +29,11 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
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-setuptools Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -54,11 +55,8 @@ Node.js virtual environment builder.
# test_smoke is an integration test requiring network access. # test_smoke is an integration test requiring network access.
%pytest -k 'not test_smoke' %pytest -k 'not test_smoke'
%post %pre
%python_install_alternative nodeenv %python_libalternatives_reset_alternative nodeenv
%postun
%python_uninstall_alternative nodeenv
%files %{python_files} %files %{python_files}
%doc CHANGES README.rst %doc CHANGES README.rst