Hello community,

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

Package is "python-rq"

Tue May 19 14:57:55 2020 rev:4 rq:807281 version:1.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rq/python-rq.changes      2020-03-19 
19:53:55.708276896 +0100
+++ /work/SRC/openSUSE:Factory/.python-rq.new.2738/python-rq.changes    
2020-05-19 14:58:04.581346405 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:47 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-rq.spec ++++++
--- /var/tmp/diff_new_pack.OYGR4z/_old  2020-05-19 14:58:07.773353484 +0200
+++ /var/tmp/diff_new_pack.OYGR4z/_new  2020-05-19 14:58:07.777353493 +0200
@@ -36,6 +36,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-click >= 3.0
 Requires:       python-redis >= 3.0.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %python_subpackages
 
 %description
@@ -51,20 +53,37 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/rq
+%python_clone -a %{buildroot}%{_bindir}/rqinfo
+%python_clone -a %{buildroot}%{_bindir}/rqworker
 %python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # test_failure_capture - circular dependency on sentry-sdk
+# test_worker - update-alternatives: only rqworker-%{python_version} is
+#               available, skip test for simplicity
 export PATH="$PATH:%{buildroot}%{_bindir}"
 %{_sbindir}/redis-server --port 6379 &
-%pytest -k 'not test_failure_capture'
+%pytest -k 'not (test_failure_capture or test_worker)'
 killall redis-server
 
+%post
+%python_install_alternative rq
+%python_install_alternative rqinfo
+%python_install_alternative rqworker
+
+%postun
+%python_uninstall_alternative rq
+%python_uninstall_alternative rqinfo
+%python_uninstall_alternative rqworker
+
 %files %{python_files}
 %doc README.md CHANGES.md
 %license LICENSE
 %{python_sitelib}/*
-%python3_only %{_bindir}/rq*
+%python_alternative %{_bindir}/rq
+%python_alternative %{_bindir}/rqinfo
+%python_alternative %{_bindir}/rqworker
 
 %changelog


Reply via email to