forked from pool/python-isort
Accepting request 808762 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/808762 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=36
This commit is contained in:
parent
0404c37c3b
commit
b8097c954c
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 25 10:59:30 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 14 08:32:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -37,6 +37,8 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-appdirs >= 1.4.0
|
||||
Recommends: python-pip
|
||||
Recommends: python-pipreqs
|
||||
@ -82,6 +84,7 @@ chmod -x LICENSE
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/isort
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
@ -92,9 +95,15 @@ chmod -x LICENSE
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%post
|
||||
%python_install_alternative isort
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative isort
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/isort*
|
||||
%python3_only %{_bindir}/isort
|
||||
%python_alternative %{_bindir}/isort
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user