forked from pool/python-identify
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:
committed by
Git OBS Bridge
parent
1bef28d519
commit
db8f2fb4d4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user