## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname sphinxcontrib-svg2pdfconverter Name: python-%{srcname} Version: 1.2.0 Release: %autorelease Summary: Sphinx SVG to PDF Converter Extension # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: https://pypi.org/project/sphinxcontrib-svg2pdfconverter/ Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) 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 %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 Requires: /usr/bin/inkscape Requires: python3-%{srcname}-common = %{version}-%{release} %if 0%{?fedora} == 32 %py_provides python3-sphinxcontrib-inkscapeconverter %endif %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 Requires: /usr/bin/rsvg-convert Requires: python3-%{srcname}-common = %{version}-%{release} %if 0%{?fedora} == 32 %py_provides python3-sphinxcontrib-rsvgconverter %endif %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. %package -n python3-sphinxcontrib-cairosvgconverter Summary: Sphinx SVG to PDF Converter Extension - CairoSVG converter Requires: %{py3_dist CairoSVG} Requires: python3-%{srcname}-common = %{version}-%{release} %if 0%{?fedora} == 32 %py_provides python3-sphinxcontrib-cairosvgconverter %endif %description -n python3-sphinxcontrib-cairosvgconverter Converts SVG images to PDF in case the builder does not support SVG images natively (e.g. LaTeX). This package contains converter using CairoSVG. %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 %files -n python3-sphinxcontrib-cairosvgconverter %{python3_sitelib}/sphinxcontrib/__pycache__/cairosvgconverter.*.pyc %{python3_sitelib}/sphinxcontrib/cairosvgconverter.py %changelog ## START: Generated by rpmautospec * Wed Sep 04 2024 Miroslav Suchý - 1.2.0-12 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.2.0-10 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 1.2.0-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.2.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 08 2021 Julian Sikorski - 1.2.0-1 - Update to 1.2.0 * Fri Jul 23 2021 Fedora Release Engineering - 1.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.1.1-4 - Rebuilt for Python 3.10 * Fri Mar 05 2021 Julian.Sikorski - 1.1.1-3 - Modernise the .spec file * Wed Jan 27 2021 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 8 20:59:59 CET 2021 Julian Sikorski - 1.1.1-1 - Update to 1.1.1 * Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 Julian Sikorski - 1.1.0-1 - Update to 1.1.0 - Add -cairosvgconverter subpackage - Move BuildRequires to main package section - Add python3-setuptools to BuildRequires * Tue May 26 2020 Miro Hrončok - 1.0.1-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * 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 ## END: Generated by rpmautospec