forked from pool/python-restructuredtext_lint
Accepting request 807232 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807232 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-restructuredtext_lint?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
c0e139d9a6
commit
6cee66806a
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 19 09:27:43 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 25 03:03:34 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
Mon Mar 25 03:03:34 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-restructuredtext_lint
|
# spec file for package python-restructuredtext_lint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -23,17 +23,18 @@ Release: 0
|
|||||||
Summary: Linter for reStructuredText
|
Summary: Linter for reStructuredText
|
||||||
License: Unlicense
|
License: Unlicense
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/twolfson/restructuredtext-lint
|
URL: https://github.com/twolfson/restructuredtext-lint
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/restructuredtext_lint/restructuredtext_lint-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/restructuredtext_lint/restructuredtext_lint-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-docutils >= 0.11
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module docutils >= 0.11}
|
BuildRequires: %{python_module docutils >= 0.11}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-docutils >= 0.11
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -52,6 +53,8 @@ find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/rst-lint
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/restructuredtext-lint
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -59,11 +62,19 @@ find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
|
|||||||
$python -m unittest discover
|
$python -m unittest discover
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative rst-lint
|
||||||
|
%python_install_alternative restructuredtext-lint
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative rst-lint
|
||||||
|
%python_uninstall_alternative restructuredtext-lint
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.rst README.rst
|
%doc CHANGELOG.rst README.rst
|
||||||
%license UNLICENSE
|
%license UNLICENSE
|
||||||
%python3_only %{_bindir}/restructuredtext-lint
|
%python_alternative %{_bindir}/restructuredtext-lint
|
||||||
%python3_only %{_bindir}/rst-lint
|
%python_alternative %{_bindir}/rst-lint
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user