%{?python_enable_dependency_generator} %{?python_enable_dependency_generator} %global srcname sphinxcontrib-svg2pdfconverter Name: python-%{srcname} Version: 1.0.1 Release: 1%{?dist} Summary: Sphinx SVG to PDF Converter Extension License: BSD URL: https://pypi.org/project/sphinxcontrib-svg2pdfconverter/ Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description Converts SVG images to PDF in case the builder does not support SVG images natively (e.g. LaTeX). %package -n python3-%{srcname}-common Summary: Sphinx SVG to PDF Converter Extension - common files BuildRequires: python3-devel BuildRequires: %{py3_dist sphinx} %description -n python3-%{srcname}-common Converts SVG images to PDF in case the builder does not support SVG images natively (e.g. LaTeX). This package contains common files. %package -n python3-sphinxcontrib-inkscapeconverter Summary: Sphinx SVG to PDF Converter Extension - Inkscape converter BuildRequires: python3-devel BuildRequires: %{py3_dist sphinx} Requires: /usr/bin/inkscape Requires: python3-%{srcname}-common = %{version}-%{release} %{?python_provide:%python_provide python3-sphinxcontrib-inkscapeconverter} %description -n python3-sphinxcontrib-inkscapeconverter Converts SVG images to PDF in case the builder does not support SVG images natively (e.g. LaTeX). This package contains converter using Inkscape. %package -n python3-sphinxcontrib-rsvgconverter Summary: Sphinx SVG to PDF Converter Extension - libRSVG converter BuildRequires: python3-devel BuildRequires: %{py3_dist sphinx} Requires: /usr/bin/rsvg-convert Requires: python3-%{srcname}-common = %{version}-%{release} %{?python_provide:%python_provide python3-sphinxcontrib-rsvgconverter} %description -n python3-sphinxcontrib-rsvgconverter Converts SVG images to PDF in case the builder does not support SVG images natively (e.g. LaTeX). This package contains converter using libRSVG. %prep %autosetup -n %{srcname}-%{version} %build %py3_build %install %py3_install %check %{__python3} setup.py test # Note that there is no %%files section for the unversioned python module %files -n python3-%{srcname}-common %license LICENSE.txt %doc README.rst %{python3_sitelib}/sphinxcontrib_svg2pdfconverter*nspkg.pth %{python3_sitelib}/sphinxcontrib_svg2pdfconverter-*.egg-info %files -n python3-sphinxcontrib-inkscapeconverter %{python3_sitelib}/sphinxcontrib/__pycache__/inkscapeconverter.*.pyc %{python3_sitelib}/sphinxcontrib/inkscapeconverter.py %files -n python3-sphinxcontrib-rsvgconverter %{python3_sitelib}/sphinxcontrib/__pycache__/rsvgconverter.*.pyc %{python3_sitelib}/sphinxcontrib/rsvgconverter.py %changelog * Sun Sep 15 2019 Julian Sikorski - 1.0.1-1 - Update to 1.0.1 * Mon Aug 19 2019 Miro HronĨok - 0.1.0-4 - Rebuilt for Python 3.8 * Sun Aug 04 2019 Julian Sikorski - 0.1.0-3 - Correct the dependencies between subpackages * Fri Jul 26 2019 Fedora Release Engineering - 0.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Feb 27 2019 Julian Sikorski - 0.1.0-1 - Initial RPM release