Compare commits
13 Commits
Author | SHA256 | Date | |
---|---|---|---|
68d4d4163b | |||
dfb3eaefd6 | |||
bd50e04cfd | |||
2811221bd1 | |||
1def7e16f6 | |||
bb81dddba5 | |||
8f29691a37 | |||
46ded2fcd5 | |||
ea33b3ce98 | |||
2efa63fd55 | |||
76a761d8f3 | |||
2f789bf2aa | |||
424eedb6ba |
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- do not depend on alts for sle15
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
@@ -16,6 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%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
|
||||||
@@ -33,9 +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}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
Recommends: python-objgraph >= 1.7.2
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -65,6 +75,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
|
||||||
@@ -73,11 +84,14 @@ export PYTHONPATH=%{_builddir}/dill-%{version}
|
|||||||
%python_exec dill/tests/__main__.py
|
%python_exec dill/tests/__main__.py
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{python_install_alternative undill get_objgraph get_gprof}
|
%python_install_alternative undill get_gprof get_objgraph
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative undill
|
%python_uninstall_alternative undill
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative undill
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user