forked from pool/python-vim-vint
Accepting request 806789 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/806789 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vim-vint?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
1f7630a3ae
commit
f41dec1c5a
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 07:25:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 20 07:27:28 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Mon Apr 20 07:27:28 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -40,6 +40,8 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-PyYAML >= 3.11
|
Requires: python-PyYAML >= 3.11
|
||||||
Requires: python-ansicolor >= 0.2.4
|
Requires: python-ansicolor >= 0.2.4
|
||||||
Requires: python-chardet >= 2.3.0
|
Requires: python-chardet >= 2.3.0
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
BuildRequires: python-enum34 >= 1.0.4
|
BuildRequires: python-enum34 >= 1.0.4
|
||||||
@@ -71,15 +73,22 @@ sed -i -e '/^#!\//, 1d' vint/_bundles/vimlparser.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/vint
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python setup.py test
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python setup.py test
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative vint
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative vint
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%python3_only %{_bindir}/vint
|
%python_alternative %{_bindir}/vint
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user