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
|
Mon Mar 23 09:25:20 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -44,6 +44,8 @@ BuildRequires: tesseract-traineddata-eng
|
|||||||
BuildRequires: tesseract-traineddata-fra
|
BuildRequires: tesseract-traineddata-fra
|
||||||
BuildRequires: pkgconfig(tesseract)
|
BuildRequires: pkgconfig(tesseract)
|
||||||
# /SECTION
|
# /SECTION
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -67,15 +69,22 @@ sed -i -e '/^#!\//, 1d' src/pytesseract.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/pytesseract
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pytesseract
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pytesseract
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/pytesseract
|
%python_alternative %{_bindir}/pytesseract
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user