14
0
forked from pool/python-dill

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=36
This commit is contained in:
2025-07-08 14:05:06 +00:00
committed by Git OBS Bridge
parent ea33b3ce98
commit 8f29691a37
2 changed files with 11 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 8 13:59:14 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 5 02:47:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> Mon May 5 02:47:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -16,6 +16,7 @@
# #
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-dill Name: python-dill
Version: 0.4.0 Version: 0.4.0
@@ -30,11 +31,11 @@ BuildRequires: %{python_module objgraph >= 1.7.2}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
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
BuildRequires: unzip BuildRequires: unzip
Requires(post): update-alternatives Requires: alts
Requires(postun): update-alternatives
Recommends: python-objgraph >= 1.7.2 Recommends: python-objgraph >= 1.7.2
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -65,6 +66,7 @@ find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
%python_clone -a %{buildroot}%{_bindir}/undill %python_clone -a %{buildroot}%{_bindir}/undill
%python_clone -a %{buildroot}%{_bindir}/get_gprof %python_clone -a %{buildroot}%{_bindir}/get_gprof
%python_clone -a %{buildroot}%{_bindir}/get_objgraph %python_clone -a %{buildroot}%{_bindir}/get_objgraph
%python_group_libalternatives undill get_gprof get_objgraph
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
@@ -72,11 +74,8 @@ 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 %pre
%{python_install_alternative undill get_objgraph get_gprof} %python_libalternatives_reset_alternative undill
%postun
%python_uninstall_alternative undill
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md