Hello community,

here is the log from the commit of package python-requirements-detector for 
openSUSE:Leap:15.2 checked in at 2020-05-28 20:08:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-requirements-detector (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-requirements-detector.new.3606 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-requirements-detector"

Thu May 28 20:08:11 2020 rev:12 rq:807325 version:0.6

Changes:
--------
--- 
/work/SRC/openSUSE:Leap:15.2/python-requirements-detector/python-requirements-detector.changes
      2020-03-16 12:20:53.843706942 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-requirements-detector.new.3606/python-requirements-detector.changes
    2020-05-28 20:08:14.550657233 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:42 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-requirements-detector.spec ++++++
--- /var/tmp/diff_new_pack.2LVcVF/_old  2020-05-28 20:08:16.442662864 +0200
+++ /var/tmp/diff_new_pack.2LVcVF/_new  2020-05-28 20:08:16.442662864 +0200
@@ -28,18 +28,19 @@
 # https://github.com/landscapeio/requirements-detector/issues/25
 Source:         
https://github.com/landscapeio/requirements-detector/archive/%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-astroid >= 1.0.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module astroid}
 BuildRequires:  %{python_module nose}
 # /SECTION
-Requires:       python-astroid >= 1.0.0
-BuildRequires:  fdupes
-BuildArch:      noarch
 %ifpython3
 Conflicts:      %{oldpython}-requirements-detector < 0.6
 %endif
-
 %python_subpackages
 
 %description
@@ -58,15 +59,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/detect-requirements
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} 
nosetests-%{$python_bin_suffix}
 
+%post
+%python_install_alternative detect-requirements
+
+%postun
+%python_uninstall_alternative detect-requirements
+
 %files %{python_files}
 %doc README.md
 %license LICENSE
 %{python_sitelib}/*
-%python3_only %{_bindir}/detect-requirements
+%python_alternative %{_bindir}/detect-requirements
 
 %changelog


Reply via email to