14
0

Accepting request 806802 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vim-vint?expand=0&rev=5
This commit is contained in:
2020-05-19 12:46:33 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -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>

View File

@@ -40,6 +40,8 @@ BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 3.11
Requires: python-ansicolor >= 0.2.4
Requires: python-chardet >= 2.3.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with python2}
BuildRequires: python-enum34 >= 1.0.4
@@ -71,15 +73,22 @@ sed -i -e '/^#!\//, 1d' vint/_bundles/vimlparser.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/vint
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python setup.py test
%post
%python_install_alternative vint
%postun
%python_uninstall_alternative vint
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%python3_only %{_bindir}/vint
%python_alternative %{_bindir}/vint
%{python_sitelib}/*
%changelog