Hello community, here is the log from the commit of package python-pythonwhois for openSUSE:Factory checked in at 2020-05-26 17:18:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pythonwhois (Old) and /work/SRC/openSUSE:Factory/.python-pythonwhois.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pythonwhois" Tue May 26 17:18:50 2020 rev:4 rq:807688 version:2.4.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pythonwhois/python-pythonwhois.changes 2019-03-18 10:41:59.387226731 +0100 +++ /work/SRC/openSUSE:Factory/.python-pythonwhois.new.2738/python-pythonwhois.changes 2020-05-26 17:19:09.087953022 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:55 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pythonwhois.spec ++++++ --- /var/tmp/diff_new_pack.ljL7JG/_old 2020-05-26 17:19:09.971954922 +0200 +++ /var/tmp/diff_new_pack.ljL7JG/_new 2020-05-26 17:19:09.975954931 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pythonwhois # -# 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 @@ -24,7 +24,7 @@ Summary: Python whois library License: WTFPL Group: Development/Languages/Python -Url: http://cryto.net/pythonwhois +URL: http://cryto.net/pythonwhois #Source: https://files.pythonhosted.org/packages/source/p/pythonwhois/pythonwhois-%%{version}.tar.gz # github tarball includes docs and tests (which require network) Source: https://github.com/joepie91/python-whois/archive/%{commit}.zip#/%{name}-%{version}.zip @@ -34,11 +34,12 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch %ifpython3 Conflicts: perl-Net-Whois-Raw %endif -BuildArch: noarch - %python_subpackages %description @@ -56,14 +57,19 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pwhois %python_expand %fdupes %{buildroot}%{$python_sitelib} -%python_clone %{buildroot}%{_bindir}/pwhois + +%post +%python_install_alternative pwhois + +%postun +%python_uninstall_alternative pwhois %files %{python_files} %doc README.md doc/*.html %license LICENSE.txt -%{_bindir}/pwhois-%{python_bin_suffix} -%python3_only %{_bindir}/pwhois +%python_alternative %{_bindir}/pwhois %{python_sitelib}/* %changelog
