Hello community, here is the log from the commit of package python-dennis for openSUSE:Factory checked in at 2020-05-28 09:18:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-dennis (Old) and /work/SRC/openSUSE:Factory/.python-dennis.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dennis" Thu May 28 09:18:09 2020 rev:4 rq:809422 version:0.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-dennis/python-dennis.changes 2019-03-01 16:47:52.805788737 +0100 +++ /work/SRC/openSUSE:Factory/.python-dennis.new.3606/python-dennis.changes 2020-05-28 09:18:11.125084203 +0200 @@ -1,0 +2,5 @@ +Tue May 26 07:22:36 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-dennis.spec ++++++ --- /var/tmp/diff_new_pack.b8H7bd/_old 2020-05-28 09:18:11.757085361 +0200 +++ /var/tmp/diff_new_pack.b8H7bd/_new 2020-05-28 09:18:11.761085367 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-dennis # -# 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 @@ -23,20 +23,21 @@ Summary: Utilities for working with PO and POT files License: BSD-3-Clause Group: Development/Languages/Python -Url: http://github.com/willkg/dennis +URL: https://github.com/willkg/dennis Source: https://files.pythonhosted.org/packages/source/d/dennis/dennis-%{version}.tar.gz -BuildRequires: %{python_module setuptools} -BuildRequires: fdupes -BuildRequires: python-rpm-macros -# Test runner -BuildRequires: %{python_module pytest} # Module dependencies BuildRequires: %{python_module click >= 6} BuildRequires: %{python_module polib >= 1.0.8} +# Test runner +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-click >= 6 Requires: python-polib >= 1.0.8 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch - %python_subpackages %description @@ -53,17 +54,24 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/dennis-cmd %python_expand rm -r %{buildroot}%{$python_sitelib}/tests/ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG="en_US.UTF-8" -%python_expand pytest-%{$python_bin_suffix} tests +%pytest tests + +%post +%python_install_alternative dennis-cmd + +%postun +%python_uninstall_alternative dennis-cmd %files %{python_files} %license LICENSE %doc CHANGELOG README.rst -%python3_only %{_bindir}/dennis-cmd +%python_alternative %{_bindir}/dennis-cmd %{python_sitelib}/* %changelog
