forked from pool/python-calmjs
Accepting request 1286313 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1286313 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-calmjs?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 17 09:24:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 27 16:46:53 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-calmjs
|
||||
Version: 3.4.4
|
||||
@@ -31,13 +32,13 @@ BuildRequires: %{python_module calmjs.types}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-calmjs.parse >= 1.0.0
|
||||
Requires: python-calmjs.types
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: nodejs-common
|
||||
@@ -74,11 +75,8 @@ export LANG=en_US.UTF-8
|
||||
# DistLoggerTestCase is not working correctly in obs build environment
|
||||
%pytest -v --pyargs calmjs.tests -k 'not DistLoggerTestCase'
|
||||
|
||||
%post
|
||||
%python_install_alternative calmjs
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative calmjs
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative calmjs
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user