Hello community,
here is the log from the commit of package python-pypiserver for
openSUSE:Factory checked in at 2020-05-28 09:08:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pypiserver (Old)
and /work/SRC/openSUSE:Factory/.python-pypiserver.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pypiserver"
Thu May 28 09:08:21 2020 rev:3 rq:807682 version:1.3.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pypiserver/python-pypiserver.changes
2020-03-27 00:28:44.104361283 +0100
+++
/work/SRC/openSUSE:Factory/.python-pypiserver.new.3606/python-pypiserver.changes
2020-05-28 09:08:28.455899319 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:39 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pypiserver.spec ++++++
--- /var/tmp/diff_new_pack.saKCyC/_old 2020-05-28 09:08:30.931905409 +0200
+++ /var/tmp/diff_new_pack.saKCyC/_new 2020-05-28 09:08:30.935905419 +0200
@@ -39,6 +39,8 @@
BuildRequires: python-rpm-macros
Requires: python-passlib >= 1.6
Requires: python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
%if %{with python2}
BuildRequires: python-mock
@@ -58,6 +60,7 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/pypi-server
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -66,10 +69,16 @@
# (see centodeps-setup.py)
%pytest tests -k "not (test_pipInstall_openOk or test_pipInstall_authedOk or
test_hash_algos)"
+%post
+%python_install_alternative pypi-server
+
+%postun
+%python_uninstall_alternative pypi-server
+
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitelib}/*
-%python3_only %{_bindir}/pypi-server
+%python_alternative %{_bindir}/pypi-server
%changelog