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