Hello community,

here is the log from the commit of package python-ara for openSUSE:Factory 
checked in at 2020-06-10 00:43:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ara (Old)
 and      /work/SRC/openSUSE:Factory/.python-ara.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ara"

Wed Jun 10 00:43:35 2020 rev:7 rq:809817 version:1.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ara/python-ara.changes    2020-05-07 
14:55:59.630455404 +0200
+++ /work/SRC/openSUSE:Factory/.python-ara.new.3606/python-ara.changes  
2020-06-10 00:43:40.262223054 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:03 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ara.spec ++++++
--- /var/tmp/diff_new_pack.8UrS4f/_old  2020-06-10 00:43:41.734226728 +0200
+++ /var/tmp/diff_new_pack.8UrS4f/_new  2020-06-10 00:43:41.734226728 +0200
@@ -24,7 +24,6 @@
 %define psuffix %{nil}
 %bcond_with test
 %endif
-
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-ara
@@ -38,6 +37,19 @@
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:       python-pbr >= 2.0.0
+Requires:       python-requests >= 2.14.2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+Recommends:     python-Django >= 2.1.5
+Recommends:     python-django-cors-headers
+Recommends:     python-django-filter
+Recommends:     python-djangorestframework >= 3.9.1
+Recommends:     python-dynaconf
+Recommends:     python-whitenoise
+BuildArch:      noarch
 %if %{with test}
 BuildRequires:  %{python_module Django >= 2.1.5}
 BuildRequires:  %{python_module ara >= %{version}}
@@ -52,18 +64,6 @@
 BuildRequires:  %{python_module tzlocal}
 BuildRequires:  %{python_module whitenoise}
 %endif
-BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
-Requires:       python-pbr >= 2.0.0
-Requires:       python-requests >= 2.14.2
-Recommends:     python-Django >= 2.1.5
-Recommends:     python-django-cors-headers
-Recommends:     python-django-filter
-Recommends:     python-djangorestframework >= 3.9.1
-Recommends:     python-dynaconf
-Recommends:     python-whitenoise
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -80,6 +80,7 @@
 %install
 %if !%{with test}
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/ara-manage
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
@@ -89,10 +90,16 @@
 %endif
 
 %if !%{with test}
+%post
+%python_install_alternative ara-manage
+
+%postun
+%python_uninstall_alternative ara-manage
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/ara-manage
+%python_alternative %{_bindir}/ara-manage
 %{python_sitelib}/*
 %endif
 


Reply via email to