Hello community, here is the log from the commit of package python-duckduckgo2 for openSUSE:Factory checked in at 2020-05-28 09:17:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-duckduckgo2 (Old) and /work/SRC/openSUSE:Factory/.python-duckduckgo2.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-duckduckgo2" Thu May 28 09:17:47 2020 rev:3 rq:809402 version:0.242 Changes: -------- --- /work/SRC/openSUSE:Factory/python-duckduckgo2/python-duckduckgo2.changes 2018-12-13 19:43:21.657097429 +0100 +++ /work/SRC/openSUSE:Factory/.python-duckduckgo2.new.3606/python-duckduckgo2.changes 2020-05-28 09:17:49.693035764 +0200 @@ -1,0 +2,5 @@ +Tue May 26 07:22:46 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-duckduckgo2.spec ++++++ --- /var/tmp/diff_new_pack.wcHNcF/_old 2020-05-28 09:17:50.361037341 +0200 +++ /var/tmp/diff_new_pack.wcHNcF/_new 2020-05-28 09:17:50.365037350 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-duckduckgo2 # -# 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 @@ -23,12 +23,14 @@ Summary: Library for querying the DuckDuckGo API License: BSD-3-Clause Group: Development/Languages/Python -Url: http://github.com/crazedpsyc/python-duckduckgo/ +URL: https://github.com/crazedpsyc/python-duckduckgo/ Source: https://files.pythonhosted.org/packages/source/d/duckduckgo2/duckduckgo2-%{version}.tar.gz Patch0: add-python3-support.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -44,13 +46,19 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/ddg %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative ddg + +%postun +%python_uninstall_alternative ddg + %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE -%python3_only %{_bindir}/ddg +%python_alternative %{_bindir}/ddg %{python_sitelib}/* %changelog
