Hello community, here is the log from the commit of package python-odorik for openSUSE:Factory checked in at 2020-06-10 00:41:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-odorik (Old) and /work/SRC/openSUSE:Factory/.python-odorik.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-odorik" Wed Jun 10 00:41:42 2020 rev:8 rq:807934 version:0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-odorik/python-odorik.changes 2018-08-31 10:46:05.583321825 +0200 +++ /work/SRC/openSUSE:Factory/.python-odorik.new.3606/python-odorik.changes 2020-06-10 00:41:57.461957081 +0200 @@ -1,0 +2,5 @@ +Thu May 21 06:55:36 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-odorik.spec ++++++ --- /var/tmp/diff_new_pack.V5MA87/_old 2020-06-10 00:41:58.977961056 +0200 +++ /var/tmp/diff_new_pack.V5MA87/_new 2020-06-10 00:41:58.981961067 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-odorik # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -23,7 +23,7 @@ Summary: Python module for Odorik API License: GPL-3.0-or-later Group: Development/Languages/Python -URL: http://cihar.com/software/odorik/ +URL: https://cihar.com/software/odorik/ Source: https://files.pythonhosted.org/packages/source/o/odorik/odorik-%{version}.tar.bz2 BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module httpretty} @@ -35,6 +35,8 @@ BuildRequires: python-rpm-macros Requires: python-python-dateutil Requires: python-xdg +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -46,22 +48,30 @@ %build %python_build -make %{?_smp_mflags} -C docs man +%make_build -C docs man %install %python_install install -d %{buildroot}%{_mandir}/man1 install -m 644 docs/_build/man/odorik.1 %{buildroot}%{_mandir}/man1 +%python_clone -a %{buildroot}%{_bindir}/odorik +%python_clone -a %{buildroot}%{_mandir}/man1/odorik.1 %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand py.test-%{$python_version} odorik +%pytest odorik + +%post +%python_install_alternative odorik odorik.1 + +%postun +%python_uninstall_alternative odorik %files %{python_files} %license LICENSE %doc NEWS.rst README.rst %{python_sitelib}/* -%python3_only %{_mandir}/man1/* -%python3_only %{_bindir}/* +%python_alternative %{_mandir}/man1/odorik.1%{ext_man} +%python_alternative %{_bindir}/odorik %changelog
