File python-cairosvg.spec of Package python-cairosvg
# Created by pyp2rpm-3.3.10
%global pypi_name cairosvg
%global pypi_version 2.8.2
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: A Simple SVG Converter based on Cairo
License: LGPL-3.0-or-later
URL: https://courtbouillon.org/cairosvg
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(cairocffi)
BuildRequires: python3dist(cssselect2)
BuildRequires: python3dist(defusedxml)
BuildRequires: python3dist(flake8)
BuildRequires: python3dist(isort)
BuildRequires: python3dist(pillow)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(sphinx)
BuildRequires: python3dist(sphinx-rtd-theme)
BuildRequires: python3dist(tinycss2)
%description
CairoSVG is an SVG converter based on Cairo. It can export SVG files to PDF,
EPS, PS, and PNG files.* Free software: LGPL license * For Python 3.9+ *
Documentation: * Changelog: * Code, issues, tests: * Code of conduct: *
Professional support: * Donation: has been created and developed by Kozea ().
Professional support, maintenance and community management is provided by
CourtBouillon ().
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3dist(cairocffi)
Requires: python3dist(cssselect2)
Requires: python3dist(defusedxml)
Requires: python3dist(flake8)
Requires: python3dist(isort)
Requires: python3dist(pillow)
Requires: python3dist(pytest)
Requires: python3dist(setuptools)
Requires: python3dist(tinycss2)
%description -n python3-%{pypi_name}
CairoSVG is an SVG converter based on Cairo. It can export SVG files to PDF,
EPS, PS, and PNG files.* Free software: LGPL license * For Python 3.9+ *
Documentation: * Changelog: * Code, issues, tests: * Code of conduct: *
Professional support: * Donation: has been created and developed by Kozea ().
Professional support, maintenance and community management is provided by
CourtBouillon ().
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-%{pypi_name}
%license LICENSE test_non_regression/LICENSE
%doc README.rst test_non_regression/README.rst test_non_regression/fail/README.rst test_non_regression/fail/cap/README.rst test_non_regression/fail/color/README.rst test_non_regression/fail/css/README.rst test_non_regression/fail/draft/README.rst test_non_regression/fail/filter/README.rst test_non_regression/fail/font/README.rst test_non_regression/fail/image/README.rst test_non_regression/fail/linking/README.rst test_non_regression/fail/marker/README.rst test_non_regression/fail/mask/README.rst test_non_regression/fail/na/README.rst test_non_regression/fail/na/animation/README.rst test_non_regression/fail/na/interaction/README.rst test_non_regression/fail/na/script/README.rst test_non_regression/fail/path/README.rst test_non_regression/fail/text/README.rst test_non_regression/fail/use/README.rst test_non_regression/fail/viewbox/README.rst
%{_bindir}/cairosvg
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info
%changelog
* Sun Aug 24 2025 Kristopher John Gamrat - 2.8.2-1
- Initial package.