Hello community,
here is the log from the commit of package python-pymetar for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:10:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pymetar (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-pymetar.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pymetar"
Thu May 28 20:10:36 2020 rev:12 rq:809491 version:1.1
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pymetar/python-pymetar.changes
2020-03-02 13:21:07.998133050 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-pymetar.new.3606/python-pymetar.changes
2020-05-28 20:10:37.347082276 +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.EBUlqD/_old 2020-05-28 20:10:37.691083300 +0200
+++ /var/tmp/diff_new_pack.EBUlqD/_new 2020-05-28 20:10:37.691083300 +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