forked from pool/python-pytesseract
- Don't use %python3_only command, but properly use alternatives.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytesseract?expand=0&rev=17
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 5 22:00:53 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Don't use %python3_only command, but properly use alternatives.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 23 09:25:20 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
|
@@ -44,6 +44,8 @@ BuildRequires: tesseract-traineddata-eng
|
||||
BuildRequires: tesseract-traineddata-fra
|
||||
BuildRequires: pkgconfig(tesseract)
|
||||
# /SECTION
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -67,15 +69,22 @@ sed -i -e '/^#!\//, 1d' src/pytesseract.py
|
||||
|
||||
%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
|
||||
|
Reference in New Issue
Block a user