Hello community, here is the log from the commit of package python-pytesseract for openSUSE:Factory checked in at 2020-05-06 11:04:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytesseract (Old) and /work/SRC/openSUSE:Factory/.python-pytesseract.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytesseract" Wed May 6 11:04:08 2020 rev:8 rq:800518 version:0.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytesseract/python-pytesseract.changes 2020-03-23 12:53:20.116060962 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytesseract.new.2738/python-pytesseract.changes 2020-05-06 11:04:15.415261350 +0200 @@ -1,0 +2,5 @@ +Tue May 5 22:00:53 UTC 2020 - Matej Cepl <[email protected]> + +- Don't use %python3_only command, but properly use alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytesseract.spec ++++++ --- /var/tmp/diff_new_pack.U38st7/_old 2020-05-06 11:04:16.531263746 +0200 +++ /var/tmp/diff_new_pack.U38st7/_new 2020-05-06 11:04:16.531263746 +0200 @@ -44,6 +44,8 @@ BuildRequires: tesseract-traineddata-fra BuildRequires: pkgconfig(tesseract) # /SECTION +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -67,15 +69,22 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pytesseract %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative pytesseract + +%postun +%python_uninstall_alternative pytesseract + %files %{python_files} %doc README.rst %license LICENSE -%python3_only %{_bindir}/pytesseract +%python_alternative %{_bindir}/pytesseract %{python_sitelib}/* %changelog
