From 3009d5df89f01e3889903268922cf8d442ad29a6c2a3184c9d358e404d501127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 May 2020 10:06:19 +0000 Subject: [PATCH] Accepting request 809265 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809265 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glymur?expand=0&rev=9 --- python-Glymur.changes | 5 +++++ python-Glymur.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-Glymur.changes b/python-Glymur.changes index 0e583f1..5be2613 100644 --- a/python-Glymur.changes +++ b/python-Glymur.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 06:34:26 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Thu Mar 26 10:14:42 UTC 2020 - Marketa Calabkova diff --git a/python-Glymur.spec b/python-Glymur.spec index 2281028..07653fd 100644 --- a/python-Glymur.spec +++ b/python-Glymur.spec @@ -31,6 +31,8 @@ BuildRequires: fdupes BuildRequires: procps BuildRequires: python-rpm-macros Requires: python-numpy >= 1.7.1 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-lxml BuildArch: noarch # SECTION test requirements @@ -52,15 +54,22 @@ Python interface to the OpenJPEG library %install %python_install +%python_clone -a %{buildroot}%{_bindir}/jp2dump %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative jp2dump + +%postun +%python_uninstall_alternative jp2dump + %files %{python_files} %doc README.md CHANGES.txt %license LICENSE.txt -%python3_only %{_bindir}/jp2dump +%python_alternative %{_bindir}/jp2dump %{python_sitelib}/* %changelog