14
0
Files
python-vim-vint/python-vim-vint.spec

79 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-vim-vint
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-vim-vint
Version: 0.3.19
Release: 0
License: MIT
Summary: Lint tool for Vim script Language
Url: https://github.com/Kuniwak/vint
Group: Development/Languages/Python
Source: https://github.com/Kuniwak/vint/archive/v0.3.19.tar.gz
Patch0: test-sys-executable.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module ansicolor >= 0.2.4}
BuildRequires: %{python_module chardet >= 2.3.0}
BuildRequires: %{python_module PyYAML >= 3.11}
BuildRequires: %{python_module coverage >= 3.7.1}
BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module pytest >= 2.6.4}
BuildRequires: %{python_module pytest-cov >= 1.8.1}
BuildRequires: python-enum34 >= 1.0.4
BuildRequires: python2-mock >= 1.0.1
BuildRequires: python-typing >= 3.6.2
Requires: python-ansicolor >= 0.2.4
Requires: python-chardet >= 2.3.0
Requires: python-PyYAML >= 3.11
%ifpython2
Requires: python-enum34 >= 1.0.4
Requires: python-pathlib >= 1.0.1
Requires: python-typing >= 3.6.2
%endif
BuildArch: noarch
%python_subpackages
%description
A lint tool for the Vim script Language.
%prep
%setup -q -n vint-%{version}
%patch0 -p1
sed -i 's/==/>=/g' setup.py test-requirements.txt
sed -i -e '/^#!\//, 1d' vint/_bundles/vimlparser.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python setup.py test
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%python3_only %{_bindir}/vint
%{python_sitelib}/*
%changelog