forked from pool/python-dill
Accepting request 1300406 from devel:languages:python
- Still use update-alternatives on SLE-15 OBS-URL: https://build.opensuse.org/request/show/1300406 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=19
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 19 14:30:27 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Still use update-alternatives on SLE-15
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 10 15:29:34 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
Thu Jul 10 15:29:34 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-dill
|
Name: python-dill
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
@@ -34,11 +38,14 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
|
Recommends: python-objgraph >= 1.7.2
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
Requires: alts
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%endif
|
%endif
|
||||||
Recommends: python-objgraph >= 1.7.2
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -76,6 +83,12 @@ export PYTHONPATH=%{_builddir}/dill-%{version}
|
|||||||
# Creative; copied from tox.ini
|
# Creative; copied from tox.ini
|
||||||
%python_exec dill/tests/__main__.py
|
%python_exec dill/tests/__main__.py
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative undill get_gprof get_objgraph
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative undill
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative undill
|
%python_libalternatives_reset_alternative undill
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user