14
0
Files
python-rstcheck/python-rstcheck.spec
Steve Kowalik ff3f508689 - Update to 6.2.5:
* Dropped support for python 3.8
  * Added python 3.13 to tox config.
  * Dropped support for sphinx 5
  * Add sphinx 8 to test pool for python version > 3.9
- Drop patch support-click-8.2.patch, included upstream.
- Update URL.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rstcheck?expand=0&rev=21
2025-06-04 02:07:37 +00:00

85 lines
2.4 KiB
RPMSpec

#
# spec file for package python-rstcheck
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: python-rstcheck
Version: 6.2.5
Release: 0
Summary: Python module to check syntax of reStructuredText
License: MIT
URL: https://github.com/rstcheck/rstcheck
Source: https://files.pythonhosted.org/packages/source/r/rstcheck/rstcheck-%{version}.tar.gz
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rstcheck-core >= 1.2}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module typer >= 0.4.1}
BuildRequires: %{python_module wheel}
BuildRequires: bash
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
Requires: python-rstcheck-core >= 1.2
Requires: python-typer >= 0.4.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: bash
Recommends: gcc
Recommends: gcc-c++
Recommends: python-Sphinx
Provides: rstcheck = %{version}
Obsoletes: rstcheck < %{version}
BuildArch: noarch
%python_subpackages
%description
A Python module to check the syntax of reStructuredText and code
blocks nested within it.
%prep
%autosetup -p1 -n rstcheck-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/rstcheck
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
%post
%python_install_alternative rstcheck
%postun
%python_uninstall_alternative rstcheck
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst README.rst
%python_alternative %{_bindir}/rstcheck
%{python_sitelib}/rstcheck
%{python_sitelib}/rstcheck-%{version}.dist-info
%changelog