From bf20bf3b21af0e643fbfa587e26d0f98c5c8f00e32f88035c046eae41204e81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 May 2020 07:32:21 +0000 Subject: [PATCH] Accepting request 809563 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809563 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-avro?expand=0&rev=15 --- python-avro.changes | 5 +++++ python-avro.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-avro.changes b/python-avro.changes index c602c74..27d515c 100644 --- a/python-avro.changes +++ b/python-avro.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:36:12 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Thu Mar 5 09:39:44 UTC 2020 - pgajdos@suse.com diff --git a/python-avro.spec b/python-avro.spec index 8b25aae..369509e 100644 --- a/python-avro.spec +++ b/python-avro.spec @@ -31,6 +31,8 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives Suggests: python-python-snappy BuildArch: noarch %python_subpackages @@ -46,6 +48,7 @@ Avro is a serialization and RPC framework. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/avro %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -53,8 +56,14 @@ Avro is a serialization and RPC framework. # E ImportError: No module named set_avro_test_path #%%pytest +%post +%python_install_alternative avro + +%postun +%python_uninstall_alternative avro + %files %{python_files} -%python3_only %{_bindir}/avro +%python_alternative %{_bindir}/avro %{python_sitelib}/* %changelog