forked from pool/python-restructuredtext_lint
- Add patch to build with python 3.7:
* python37.patch - Update to 1.2.1: * Added directory support via @dhruvsomani in #48. Fixes #38 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-restructuredtext_lint?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
a0683400ed
commit
2c0ba80c86
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-restructuredtext_lint
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -18,20 +18,20 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-restructuredtext_lint
|
||||
Version: 1.1.3
|
||||
Version: 1.2.1
|
||||
Release: 0
|
||||
Summary: Linter for reStructuredText
|
||||
License: Unlicense
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/twolfson/restructuredtext-lint
|
||||
Source: https://files.pythonhosted.org/packages/source/r/restructuredtext_lint/restructuredtext_lint-%{version}.tar.gz
|
||||
Patch0: python37.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module docutils >= 0.11}
|
||||
BuildRequires: %{python_module nose}
|
||||
# /SECTION
|
||||
Requires: python-PyYAML
|
||||
Requires: python-docutils >= 0.11
|
||||
@@ -48,6 +48,7 @@ in junction with a Sublime Text linter.
|
||||
|
||||
%prep
|
||||
%setup -q -n restructuredtext_lint-%{version}
|
||||
%patch0 -p1
|
||||
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
|
||||
|
||||
%build
|
||||
@@ -59,7 +60,7 @@ find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
|
||||
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
$python -B -m nose
|
||||
$python -m unittest discover
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
|
Reference in New Issue
Block a user