14
0

Accepting request 808756 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808756
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=13
This commit is contained in:
Tomáš Chvátal
2020-05-25 13:34:27 +00:00
committed by Git OBS Bridge
parent 1bef28d519
commit db8f2fb4d4
2 changed files with 15 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests: python-editdistance
BuildArch: noarch
%python_subpackages
@@ -46,15 +48,22 @@ File identification library for Python, including license file SPDX identifier.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/identify-cli
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py pytest
%post
%python_install_alternative identify-cli
%postun
%python_uninstall_alternative identify-cli
%files %{python_files}
%doc README.md
%license LICENSE
%python3_only %{_bindir}/identify-cli
%python_alternative %{_bindir}/identify-cli
%{python_sitelib}/*
%changelog