# 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: 1.11 Release: 4%{?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: python3dist(pathspec) BuildRequires: python3-setuptools_scm >= 1.15.0 BuildRequires: python3dist(setuptools) %{?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: python3-jaraco-packaging %description -n python-%{pkg_name}-doc Documentation for rst.linker %endif %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %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 # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %check # BuildRequires: python(2/3)-path does not meet the test-requirement for path.py #%%{__python3} setup.py test %files -n python3-%{pkg_name} %license LICENSE %doc README.rst %{python3_sitelib}/rst %{python3_sitelib}/rst.linker-%{version}-py?.?.egg-info %if %{with docs} %files -n python-%{pkg_name}-doc %license LICENSE %doc html %endif %changelog * 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.