Hello community,
here is the log from the commit of package python-pykwalify for
openSUSE:Factory checked in at 2020-05-26 17:17:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pykwalify (Old)
and /work/SRC/openSUSE:Factory/.python-pykwalify.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pykwalify"
Tue May 26 17:17:51 2020 rev:4 rq:807666 version:1.7.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pykwalify/python-pykwalify.changes
2019-02-13 10:09:17.961501674 +0100
+++
/work/SRC/openSUSE:Factory/.python-pykwalify.new.2738/python-pykwalify.changes
2020-05-26 17:18:29.339867570 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:32 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pykwalify.spec ++++++
--- /var/tmp/diff_new_pack.dMZHBQ/_old 2020-05-26 17:18:30.259869548 +0200
+++ /var/tmp/diff_new_pack.dMZHBQ/_new 2020-05-26 17:18:30.263869556 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pykwalify
#
-# 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,7 @@
# 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/
#
@@ -24,10 +24,18 @@
Summary: Python lib/cli for JSON/YAML schema validation
License: MIT
Group: Development/Languages/Python
-Url: http://github.com/grokzen/pykwalify
+URL: https://github.com/grokzen/pykwalify
Source:
https://files.pythonhosted.org/packages/source/p/pykwalify/pykwalify-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-PyYAML >= 3.11
+Requires: python-docopt >= 0.6.2
+Requires: python-python-dateutil >= 2.4.2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+Suggests: python-ruamel.yaml >= 0.11.0
+BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module PyYAML >= 3.11}
BuildRequires: %{python_module docopt >= 0.6.2}
@@ -35,13 +43,6 @@
BuildRequires: %{python_module python-dateutil >= 2.4.2}
BuildRequires: %{python_module testfixtures}
%endif
-BuildRequires: fdupes
-Requires: python-PyYAML >= 3.11
-Requires: python-docopt >= 0.6.2
-Requires: python-python-dateutil >= 2.4.2
-Suggests: python-ruamel.yaml >= 0.11.0
-BuildArch: noarch
-
%python_subpackages
%description
@@ -59,17 +60,23 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/pykwalify
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
+%post
+%python_install_alternative pykwalify
+
+%postun
+%python_uninstall_alternative pykwalify
+
%files %{python_files}
-%defattr(-,root,root,-)
%doc README.md
%license LICENSE
-%python3_only %{_bindir}/pykwalify
+%python_alternative %{_bindir}/pykwalify
%{python_sitelib}/*
%changelog