# Created by pyp2rpm-3.2.2 %global pypi_name rst.linker %global pkg_name rst-linker # This package is interdependant on jaraco-packaging to build docs # will build both with out docs and add docs in later %bcond_with docs Name: python-%{pkg_name} Version: 2.4.0 Release: 5%{?dist} Summary: Can add links and perform other custom replacements to rst License: MIT URL: https://github.com/jaraco/rst.linker Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description rst.linker provides a routine for adding links and performing other custom replacements to restructured text files as a Sphinx extension.License License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation < In your sphinx configuration file, include rst.linker as an extension and then add a link_files configuration section... %package -n python3-%{pkg_name} Summary: %{summary} Requires: python3dist(six) Requires: python3-dateutil BuildRequires: python3-devel BuildRequires: python3-dateutil BuildRequires: python3dist(pathspec) BuildRequires: python3dist(path) >= 13 BuildRequires: python3dist(pip) BuildRequires: python3dist(pytest) BuildRequires: python3-setuptools_scm >= 1.15.0 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(toml) BuildRequires: python3dist(wheel) %{?python_provide:%python_provide python3-%{pkg_name}} %description -n python3-%{pkg_name} %{description} %if %{with docs} %package -n python-%{pkg_name}-doc Summary: rst.linker documentation BuildRequires: python3dist(sphinx) BuildRequires: python3dist(jaraco-packaging) %description -n python-%{pkg_name}-doc Documentation for rst.linker %endif %prep %autosetup -n %{pypi_name}-%{version} %build %pyproject_wheel %if %{with docs} # generate html docs # this package requires itself to build docs :/ PYTHONPATH=./ sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %endif %install %pyproject_install %check %pytest %files -n python3-%{pkg_name} %license LICENSE %doc README.rst %{python3_sitelib}/rst %{python3_sitelib}/rst.linker-%{version}.dist-info %if %{with docs} %files -n python-%{pkg_name}-doc %license LICENSE %doc html %endif %changelog * Fri Jan 26 2024 Fedora Release Engineering - 2.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 2.4.0-2 - Rebuilt for Python 3.12 * Wed Feb 08 2023 Dan Radez - 2.4.0-1 - update to 2.4.0 rhbz#2165203 * Fri Jan 20 2023 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Aug 28 2022 Dan Radez - 2.3.1-1 Update to 2.3.1 * Fri Jul 22 2022 Fedora Release Engineering - 2.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.3.0-2 - Rebuilt for Python 3.11 * Thu Mar 31 2022 Dan Radez - 2.3.0-1 Update to 2.3.0 * Tue Feb 08 2022 Dan Radez - 2.2.0-6 - Don't delete egginfo * Tue Jan 25 2022 Dan Radez - 2.2.0-5 - re-enabling checks * Fri Jan 21 2022 Fedora Release Engineering - 2.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.2.0-2 - Rebuilt for Python 3.10 * Fri Apr 30 2021 Dan Radez - 2.2.0-1 - Update to 2.2.0 * Wed Jan 27 2021 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Dec 09 2020 Dan Radez - 2.1.1-1 - Update to 2.1.1 * Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 2.0.0-2 - Rebuilt for Python 3.9 * Wed Feb 12 2020 Dan Radez - 2.0.0-1 - Update to 2.0 * Thu Jan 30 2020 Fedora Release Engineering - 1.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.11-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Tue Aug 20 2019 Dan Radez - 1.11-2 - removing the sed . to _ it's confusing and not needed * Mon Aug 19 2019 Miro Hrončok - 1.11-2 - Rebuilt for Python 3.8 * Fri Aug 16 2019 Dan Radez - 1.11-1 - updating to 1.11 * Fri Jul 26 2019 Fedora Release Engineering - 1.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 08 2019 Dan Radez - 1.10-4 - fixing egg info * Mon Apr 08 2019 Dan Radez - 1.10-3 - fixing dep to prep for enabling docs build * Fri Apr 05 2019 Dan Radez - 1.10-2 - adding py3 subpackage. * Wed May 02 2018 Dan Radez - 1.10-1 - Initial package.