|
|
|
@ -3,11 +3,11 @@
|
|
|
|
|
%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
|
|
|
|
|
%global with_docs 0
|
|
|
|
|
%bcond_with docs
|
|
|
|
|
|
|
|
|
|
Name: python-%{pkg_name}
|
|
|
|
|
Version: 1.10
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Can add links and perform other custom replacements to rst
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -15,6 +15,16 @@ 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: python3-six
|
|
|
|
|
Requires: python3-dateutil
|
|
|
|
|
|
|
|
|
@ -22,22 +32,17 @@ BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pathspec
|
|
|
|
|
BuildRequires: python3-setuptools_scm >= 1.15.0
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: python3-jaraco-packaging
|
|
|
|
|
%endif
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pkg_name}}
|
|
|
|
|
|
|
|
|
|
%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...
|
|
|
|
|
%description -n python3-%{pkg_name}
|
|
|
|
|
%{description}
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%package -n python-%{pkg_name}-doc
|
|
|
|
|
Summary: rst.linker documentation
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: python3-jaraco-packaging
|
|
|
|
|
|
|
|
|
|
%description -n python-%{pkg_name}-doc
|
|
|
|
|
Documentation for rst.linker
|
|
|
|
|
%endif
|
|
|
|
@ -49,7 +54,7 @@ rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
# generate html docs
|
|
|
|
|
# this package requires itself to build docs :/
|
|
|
|
|
PYTHONPATH=./ sphinx-build docs html
|
|
|
|
@ -66,18 +71,20 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
# BuildRequires: python(2/3)-path does not meet the test-requirement for path.py
|
|
|
|
|
#%%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%files -n python-%{pkg_name}
|
|
|
|
|
%files -n python3-%{pkg_name}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/rst
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%files -n python-%{pkg_name}-doc
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc html
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 1.10-2
|
|
|
|
|
- adding py3 subpackage.
|
|
|
|
|
* Wed May 02 2018 Dan Radez <dradez@redhat.com> - 1.10-1
|
|
|
|
|
- Initial package.
|
|
|
|
|