Hello community,

here is the log from the commit of package python-requirements-detector for 
openSUSE:Factory checked in at 2020-05-19 14:57:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old)
 and      /work/SRC/openSUSE:Factory/.python-requirements-detector.new.2738 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-requirements-detector"

Tue May 19 14:57:35 2020 rev:7 rq:807273 version:0.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes
        2020-01-10 17:51:40.530131094 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-requirements-detector.new.2738/python-requirements-detector.changes
      2020-05-19 14:57:40.637293306 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:42 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-requirements-detector.spec ++++++
--- /var/tmp/diff_new_pack.HTyg0w/_old  2020-05-19 14:57:42.045296429 +0200
+++ /var/tmp/diff_new_pack.HTyg0w/_new  2020-05-19 14:57:42.045296429 +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