2018-12-30 12:26:53 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-readme_renderer
|
|
|
|
#
|
2024-03-16 13:55:18 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-12-30 12:26:53 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-30 12:32:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-12-30 12:26:53 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 15:37:57 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-12-30 12:26:53 +01:00
|
|
|
Name: python-readme_renderer
|
2024-03-16 13:55:18 +01:00
|
|
|
Version: 43.0
|
2018-12-30 12:26:53 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A library for rendering "readme" descriptions
|
|
|
|
License: Apache-2.0
|
2020-03-14 10:45:36 +01:00
|
|
|
URL: https://github.com/pypa/readme_renderer
|
2018-12-30 12:26:53 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-%{version}.tar.gz
|
2021-03-22 23:13:51 +01:00
|
|
|
BuildRequires: %{python_module Pygments >= 2.5.1}
|
2022-02-09 13:07:12 +01:00
|
|
|
BuildRequires: %{python_module cmarkgfm >= 0.7.0}
|
2018-12-30 12:26:53 +01:00
|
|
|
BuildRequires: %{python_module docutils >= 0.13.1}
|
2023-12-27 17:47:03 +01:00
|
|
|
BuildRequires: %{python_module nh3 >= 0.2.14}
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-12-30 12:26:53 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-12-27 17:47:03 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-04 06:23:22 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-03-22 23:13:51 +01:00
|
|
|
Requires: python-Pygments >= 2.5.1
|
2018-12-30 12:26:53 +01:00
|
|
|
Requires: python-docutils >= 0.13.1
|
2023-12-27 17:47:03 +01:00
|
|
|
Requires: python-nh3 >= 0.2.14
|
2022-02-09 13:07:12 +01:00
|
|
|
Recommends: python-cmarkgfm >= 0.7.0
|
2018-12-30 12:26:53 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Readme Renderer is a library that will safely render arbitrary ``README`` files
|
|
|
|
into HTML. It is designed to be used in Warehouse to render the
|
|
|
|
long_description for packages.
|
|
|
|
|
|
|
|
%prep
|
2021-03-22 23:13:51 +01:00
|
|
|
%autosetup -p1 -n readme_renderer-%{version}
|
2018-12-30 12:26:53 +01:00
|
|
|
|
|
|
|
%build
|
2023-12-27 17:47:03 +01:00
|
|
|
%pyproject_wheel
|
2018-12-30 12:26:53 +01:00
|
|
|
|
|
|
|
%install
|
2023-12-27 17:47:03 +01:00
|
|
|
%pyproject_install
|
2018-12-30 12:26:53 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2022-11-11 14:10:59 +01:00
|
|
|
%pytest
|
2018-12-30 12:26:53 +01:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-30 12:32:21 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES.rst README.rst
|
2023-01-04 17:26:26 +01:00
|
|
|
%{python_sitelib}/readme_renderer
|
2023-12-27 17:47:03 +01:00
|
|
|
%{python_sitelib}/readme_renderer-%{version}.dist-info
|
2018-12-30 12:26:53 +01:00
|
|
|
|
|
|
|
%changelog
|