Hello community, here is the log from the commit of package python-pymetar for openSUSE:Factory checked in at 2020-05-26 17:18:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pymetar (Old) and /work/SRC/openSUSE:Factory/.python-pymetar.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pymetar" Tue May 26 17:18:41 2020 rev:9 rq:807686 version:1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pymetar/python-pymetar.changes 2019-09-17 13:37:17.633843961 +0200 +++ /work/SRC/openSUSE:Factory/.python-pymetar.new.2738/python-pymetar.changes 2020-05-26 17:19:06.147946702 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:36 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pymetar.spec ++++++ --- /var/tmp/diff_new_pack.2sKiW4/_old 2020-05-26 17:19:06.967948464 +0200 +++ /var/tmp/diff_new_pack.2sKiW4/_new 2020-05-26 17:19:06.967948464 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pymetar # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2012 Malcolm J Lewis <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -32,6 +32,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives Obsoletes: %{oldpython}-%{modname} BuildArch: noarch %python_subpackages @@ -48,6 +50,8 @@ %install %python_install +%python_clone -a %{buildroot}%{_mandir}/man1/%{modname}.1 +%python_clone -a %{buildroot}%{_bindir}/%{modname} # we install docs on our own rm -r %{buildroot}%{_datadir}/doc/ %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -59,11 +63,17 @@ ./runtests.sh cd - +%post +%python_install_alternative %{modname} %{modname}.1 + +%postun +%python_uninstall_alternative %{modname} %{modname}.1 + %files %{python_files} %doc README.md %license COPYING -%python3_only %{_bindir}/%{modname} +%python_alternative %{_bindir}/%{modname} %{python_sitelib}/* -%python3_only %{_mandir}/man1/%{modname}.1%{?ext_man} +%python_alternative %{_mandir}/man1/%{modname}.1%{?ext_man} %changelog
