forked from pool/python-CairoSVG
Compare commits
16 Commits
Author | SHA256 | Date | |
---|---|---|---|
1e2f1f412e | |||
0205c68092 | |||
3b57becf71 | |||
9e7b3781a0 | |||
4fecdcb105 | |||
3f554898e7 | |||
248a5789fd | |||
b69f6a145a | |||
|
3cea8f0a1f | ||
cacb700980 | |||
df19be4707 | |||
6697a7a968 | |||
e282379d03 | |||
7f75ad253a | |||
|
af1e5a797e | ||
25f16217b2 |
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 17 09:23:10 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 2 03:00:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- Add patch use-underscore-in-setup.cfg.patch:
|
||||||
|
* Use 'console_scripts' in setup.cfg.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 6 10:08:53 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
Wed Sep 6 10:08:53 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-CairoSVG
|
# spec file for package python-CairoSVG
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,32 +16,34 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-CairoSVG
|
Name: python-CairoSVG
|
||||||
Version: 2.7.1
|
Version: 2.7.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python SVG converter based on Cairo
|
Summary: A Python SVG converter based on Cairo
|
||||||
License: LGPL-3.0-or-later
|
License: LGPL-3.0-or-later
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: http://www.cairosvg.org/
|
URL: http://www.cairosvg.org/
|
||||||
Source: CairoSVG-%{version}.tar.xz
|
Source: CairoSVG-%{version}.tar.xz
|
||||||
|
# PATCH-FIX-UPSTREAM gh#Kozea/CairoSVG#8ecb0806c4ed0813eb5dc6f27b36d9005acfa725
|
||||||
|
Patch0: use-underscore-in-setup.cfg.patch
|
||||||
BuildRequires: %{python_module Pillow}
|
BuildRequires: %{python_module Pillow}
|
||||||
BuildRequires: %{python_module cairocffi}
|
BuildRequires: %{python_module cairocffi}
|
||||||
BuildRequires: %{python_module cssselect2}
|
BuildRequires: %{python_module cssselect2}
|
||||||
BuildRequires: %{python_module defusedxml}
|
BuildRequires: %{python_module defusedxml}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module tinycss2}
|
BuildRequires: %{python_module tinycss2}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-Pillow
|
Requires: python-Pillow
|
||||||
Requires: python-cairocffi
|
Requires: python-cairocffi
|
||||||
Requires: python-cssselect2
|
Requires: python-cssselect2
|
||||||
Requires: python-defusedxml
|
Requires: python-defusedxml
|
||||||
Requires: python-tinycss2
|
Requires: python-tinycss2
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -52,7 +54,7 @@ PostScript and PNG files.
|
|||||||
For further information, please visit the CairoSVG website, http://www.cairosvg.org.
|
For further information, please visit the CairoSVG website, http://www.cairosvg.org.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n CairoSVG-%{version}
|
%autosetup -p1 -n CairoSVG-%{version}
|
||||||
# remove needless pytest dependencies
|
# remove needless pytest dependencies
|
||||||
sed -i setup.cfg \
|
sed -i setup.cfg \
|
||||||
-e '/pytest-runner/d' \
|
-e '/pytest-runner/d' \
|
||||||
@@ -60,26 +62,24 @@ sed -i setup.cfg \
|
|||||||
-e '/--isort/d'
|
-e '/--isort/d'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_clone -a %{buildroot}/%{_bindir}/cairosvg
|
%python_clone -a %{buildroot}/%{_bindir}/cairosvg
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative cairosvg
|
%python_libalternatives_reset_alternative cairosvg
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative cairosvg
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/cairosvg
|
%python_alternative %{_bindir}/cairosvg
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/cairosvg
|
||||||
|
%{python_sitelib}/[Cc]airo[Ss][Vv][Gg]-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
22
use-underscore-in-setup.cfg.patch
Normal file
22
use-underscore-in-setup.cfg.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
From 8ecb0806c4ed0813eb5dc6f27b36d9005acfa725 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Guillaume Ayoub <guillaume@courtbouillon.org>
|
||||||
|
Date: Sat, 5 Aug 2023 11:03:35 +0200
|
||||||
|
Subject: [PATCH] Use underscore in setup.cfg instead of deprecated dash
|
||||||
|
|
||||||
|
---
|
||||||
|
setup.cfg | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/setup.cfg b/setup.cfg
|
||||||
|
index 05fa3742..c624e583 100644
|
||||||
|
--- a/setup.cfg
|
||||||
|
+++ b/setup.cfg
|
||||||
|
@@ -52,7 +52,7 @@ install_requires =
|
||||||
|
python_requires = >= 3.5
|
||||||
|
|
||||||
|
[options.entry_points]
|
||||||
|
-console-scripts =
|
||||||
|
+console_scripts =
|
||||||
|
cairosvg = cairosvg.__main__:main
|
||||||
|
|
||||||
|
[options.package_data]
|
Reference in New Issue
Block a user