Hello community, here is the log from the commit of package python-labels for openSUSE:Factory checked in at 2020-05-26 17:23:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-labels (Old) and /work/SRC/openSUSE:Factory/.python-labels.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-labels" Tue May 26 17:23:37 2020 rev:2 rq:808688 version:0.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-labels/python-labels.changes 2019-12-09 21:36:02.170078947 +0100 +++ /work/SRC/openSUSE:Factory/.python-labels.new.2738/python-labels.changes 2020-05-26 17:23:38.404532009 +0200 @@ -1,0 +2,5 @@ +Mon May 25 06:50:32 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-labels.spec ++++++ --- /var/tmp/diff_new_pack.n77sCM/_old 2020-05-26 17:23:38.844532955 +0200 +++ /var/tmp/diff_new_pack.n77sCM/_new 2020-05-26 17:23:38.844532955 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-labels # -# Copyright (c) 2019 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,8 @@ # 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/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,29 +21,30 @@ Name: python-labels Version: 0.2.0 Release: 0 -License: MIT Summary: CLI app for managing GitHub labels -Url: https://github.com/hackebrot/labels +License: MIT Group: Development/Languages/Python +URL: https://github.com/hackebrot/labels Source: https://github.com/hackebrot/labels/archive/%{version}.tar.gz#/labels-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-attrs +Requires: python-click +Requires: python-pytoml +Requires: python-requests +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module attrs} BuildRequires: %{python_module click} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytoml} -BuildRequires: %{python_module responses} BuildRequires: %{python_module requests} +BuildRequires: %{python_module responses} # /SECTION -BuildRequires: fdupes -Requires: python-attrs -Requires: python-click -Requires: python-pytoml -Requires: python-requests -BuildArch: noarch - %python_subpackages %description @@ -56,16 +58,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/labels %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG=en_US.UTF-8 %pytest +%post +%python_install_alternative labels + +%postun +%python_uninstall_alternative labels + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/labels +%python_alternative %{_bindir}/labels %{python_sitelib}/* %changelog
