forked from pool/python-pyVows
Accepting request 807640 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807640 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyVows?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
66036669a5
commit
7f1e89bafd
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 07:26:56 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 11 05:04:44 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -35,6 +35,8 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-Unidecode
|
||||
Requires: python-gevent >= 1.2.2
|
||||
Requires: python-preggy >= 1.3.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-colorama >= 0.3.7
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -53,6 +55,7 @@ export LANG="en_US.UTF-8"
|
||||
%install
|
||||
export LANG="en_US.UTF-8"
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyvows
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -61,8 +64,14 @@ export PYTHONPATH=.
|
||||
export PATH=%{buildroot}%{_bindir}:$PATH
|
||||
%python_exec pyvows/cli.py -x tests/
|
||||
|
||||
%post
|
||||
%python_install_alternative pyvows
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pyvows
|
||||
|
||||
%files %{python_files}
|
||||
%python3_only %{_bindir}/pyvows
|
||||
%python_alternative %{_bindir}/pyvows
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user