Hello community,

here is the log from the commit of package python-pycsw for openSUSE:Factory 
checked in at 2020-05-20 18:47:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pycsw (Old)
 and      /work/SRC/openSUSE:Factory/.python-pycsw.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pycsw"

Wed May 20 18:47:37 2020 rev:3 rq:807690 version:2.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pycsw/python-pycsw.changes        
2020-01-08 17:57:06.197721387 +0100
+++ /work/SRC/openSUSE:Factory/.python-pycsw.new.2738/python-pycsw.changes      
2020-05-20 18:47:46.569594208 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:21 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pycsw.spec ++++++
--- /var/tmp/diff_new_pack.gzWtyS/_old  2020-05-20 18:47:47.297595844 +0200
+++ /var/tmp/diff_new_pack.gzWtyS/_new  2020-05-20 18:47:47.297595844 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pycsw
 #
-# Copyright (c) 2020 SUSE LLC.
+# 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
@@ -13,6 +13,7 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -20,14 +21,24 @@
 Name:           python-pycsw
 Version:        2.4.1
 Release:        0
-License:        MIT
 Summary:        OGC CSW server implementation written in Python
-Url:            http://pycsw.org/
+License:        MIT
 Group:          Development/Languages/Python
+URL:            https://pycsw.org/
 Source:         
https://files.pythonhosted.org/packages/source/p/pycsw/pycsw-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:       python-OWSLib >= 0.16.0
+Requires:       python-Shapely >= 1.5.17
+Requires:       python-geolinks >= 0.2.0
+Requires:       python-lxml >= 3.6.2
+Requires:       python-pyproj >= 1.9.5.1
+Requires:       python-six >= 1.10.0
+Requires:       python-xmltodict >= 0.10.2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module OWSLib >= 0.16.0}
 BuildRequires:  %{python_module Shapely >= 1.5.17}
@@ -37,15 +48,6 @@
 BuildRequires:  %{python_module six >= 1.10.0}
 BuildRequires:  %{python_module xmltodict >= 0.10.2}
 # /SECTION
-Requires:       python-OWSLib >= 0.16.0
-Requires:       python-Shapely >= 1.5.17
-Requires:       python-geolinks >= 0.2.0
-Requires:       python-lxml >= 3.6.2
-Requires:       python-pyproj >= 1.9.5.1
-Requires:       python-six >= 1.10.0
-Requires:       python-xmltodict >= 0.10.2
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -64,12 +66,19 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pycsw-admin.py
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%post
+%python_install_alternative pycsw-admin.py
+
+%postun
+%python_uninstall_alternative pycsw-admin.py
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE.txt
-%python3_only %{_bindir}/pycsw-admin.py
+%python_alternative %{_bindir}/pycsw-admin.py
 %{python_sitelib}/*
 
 %changelog


Reply via email to