Hello community,
here is the log from the commit of package python-cymruwhois for
openSUSE:Factory checked in at 2020-05-28 09:20:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cymruwhois (Old)
and /work/SRC/openSUSE:Factory/.python-cymruwhois.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cymruwhois"
Thu May 28 09:20:38 2020 rev:2 rq:809637 version:1.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cymruwhois/python-cymruwhois.changes
2017-11-16 14:01:59.587497388 +0100
+++
/work/SRC/openSUSE:Factory/.python-cymruwhois.new.3606/python-cymruwhois.changes
2020-05-28 09:21:52.733493732 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:55 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cymruwhois.spec ++++++
--- /var/tmp/diff_new_pack.xQKjcn/_old 2020-05-28 09:21:53.277494932 +0200
+++ /var/tmp/diff_new_pack.xQKjcn/_new 2020-05-28 09:21:53.281494941 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-cymruwhois
#
-# Copyright (c) 2017 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-%{**}}
@@ -23,13 +24,15 @@
Summary: Client for the whois.cymrucom service
License: MIT
Group: Development/Languages/Python
-URL: http://packages.python.org/cymruwhois/
+URL: https://packages.python.org/cymruwhois/
Source:
https://files.pythonhosted.org/packages/source/c/cymruwhois/cymruwhois-%{version}.tar.gz
Source1:
https://raw.githubusercontent.com/JustinAzoff/python-cymruwhois/master/docs/cymruwhois.1
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
Provides: cymruwhois
BuildArch: noarch
%python_subpackages
@@ -49,10 +52,18 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
install -d -m0755 %{buildroot}%{_mandir}/man1/
install -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
+%python_clone -a %{buildroot}%{_mandir}/man1/cymruwhois.1
+%python_clone -a %{buildroot}%{_bindir}/cymruwhois
+
+%post
+%python_install_alternative cymruwhois cymruwhois.1
+
+%postun
+%python_uninstall_alternative cymruwhois
%files %{python_files}
%{python_sitelib}/*
-%python3_only %{_bindir}/cymruwhois
-%python3_only %{_mandir}/man1/cymruwhois.1%{ext_man}
+%python_alternative %{_bindir}/cymruwhois
+%python_alternative %{_mandir}/man1/cymruwhois.1%{ext_man}
%changelog