Compare commits
No commits in common. "rawhide" and "f26" have entirely different histories.
5 changed files with 76 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/vint-0.3.14.tar.gz
|
||||
|
|
@ -1 +0,0 @@
|
|||
vint fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676191
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (vint-0.3.14.tar.gz) = 61509320e11d410cad56368fcc92d7596bd3e090dfb3950ba01886c37c3b83af69c168a71aeeb0e3221a9802a8e878a4b04a5aa6069189c5027ec1ad7070799b
|
||||
7
vint-python3-typing.patch
Normal file
7
vint-python3-typing.patch
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--- vint-0.3.14/requirements.txt.orig 2017-10-07 16:24:25.674625575 +0200
|
||||
+++ vint-0.3.14/requirements.txt 2017-10-07 16:24:36.573255841 +0200
|
||||
@@ -1,4 +1,3 @@
|
||||
PyYAML ~= 3.11
|
||||
ansicolor ~= 0.2.4
|
||||
chardet >= 2.3.0
|
||||
-typing >= 3.6.2
|
||||
67
vint.spec
Normal file
67
vint.spec
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
Name: vint
|
||||
Version: 0.3.14
|
||||
Release: 1%{?dist}
|
||||
Summary: Lint tool for Vim script Language
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/Kuniwak/%{name}
|
||||
Source0: https://github.com/Kuniwak/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
# https://github.com/Kuniwak/vint/issues/238
|
||||
Patch0: %{name}-python3-typing.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-ansicolor >= 0.2.4
|
||||
BuildRequires: python3-chardet >= 2.3.0
|
||||
BuildRequires: python3-coverage >= 3.7.1
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-pytest-cov >= 1.8.1
|
||||
BuildRequires: python3-PyYAML >= 3.11
|
||||
BuildRequires: python3-setuptools
|
||||
Requires: python3-ansicolor >= 0.2.4
|
||||
Requires: python3-chardet >= 2.3.0
|
||||
Requires: python3-PyYAML >= 3.11
|
||||
|
||||
%description
|
||||
Vint is a Vim script Language Lint. The goal to reach for Vint is:
|
||||
- Highly extensible
|
||||
- Highly customizable
|
||||
- High performance
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
# Remove shebang and preserve timestamp
|
||||
sed -i.orig '1{\@^#!/usr/bin/env python@d}' %{name}/_bundles/vimlparser.py
|
||||
touch -r %{name}/_bundles/vimlparser.py.orig %{name}/_bundles/vimlparser.py
|
||||
rm -f %{name}/_bundles/vimlparser.py.orig
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
PATH=$RPM_BUILD_ROOT%{_bindir}:$PATH \
|
||||
PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} \
|
||||
py.test-%{python3_version} -v test
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc CONTRIBUTING.rst README.rst
|
||||
%{_bindir}/%{name}
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Sat Oct 07 2017 Filip Szymański <fszymanski@fedoraproject.org> - 0.3.14-1
|
||||
- Update to 0.3.14
|
||||
|
||||
* Wed May 31 2017 Filip Szymański <fszymanski@fedoraproject.org> - 0.3.13-1
|
||||
- Update to 0.3.13
|
||||
|
||||
* Sat May 20 2017 Filip Szymański <fszymanski@fedoraproject.org> - 0.3.11-2
|
||||
- Remove shebang from vint/_bundles/vimlparser.py
|
||||
|
||||
* Wed May 17 2017 Filip Szymański <fszymanski@fedoraproject.org> - 0.3.11-1
|
||||
- Initial release
|
||||
Loading…
Add table
Add a link
Reference in a new issue