forked from pool/python-svglib
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 95979252e2 | |||
| e2f9fd0a48 | |||
| 4a26de0ef6 | |||
| dff83e6bef |
@@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 28 13:07:57 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.6.0
|
||||||
|
* Replace setup.py with pyproject.toml, rework GitHub workflows (#405).
|
||||||
|
* Drop support for Python 3.8.
|
||||||
|
* Modernize codebase, added type annotations, expanded docstrings, etc.
|
||||||
|
* Add a Makefile.
|
||||||
|
* Add publishing workflows.
|
||||||
|
* Remove dunder constants and use importlib.metadata to get the version number.
|
||||||
|
- Install vg2pdf.1 as /usr/share/man//man1/svg2pdf.1
|
||||||
|
- Invoke chmod to fix permissions for src/svglib/__init__.py
|
||||||
|
- Remove sed command to remove shebang from svglib/svglib.py
|
||||||
|
- Remove touch command to create tests/__init__.py
|
||||||
|
- Update BuildRequires from pyproject.toml
|
||||||
|
- Use Python 3.11 on SLE-15 by default
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 16 06:40:32 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Sep 16 06:40:32 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -15,14 +15,15 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-svglib
|
Name: python-svglib
|
||||||
Version: 1.5.1
|
Version: 1.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library for reading and converting SVG
|
Summary: Python library for reading and converting SVG
|
||||||
License: LGPL-3.0-only
|
License: LGPL-3.0-only
|
||||||
URL: https://github.com/deeplook/svglib
|
URL: https://github.com/deeplook/svglib
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/svglib/svglib-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/svglib/svglib-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module hatchling}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
@@ -39,6 +40,7 @@ BuildRequires: yudit
|
|||||||
Requires: python-cssselect2 >= 0.2.0
|
Requires: python-cssselect2 >= 0.2.0
|
||||||
Requires: python-lxml
|
Requires: python-lxml
|
||||||
Requires: python-reportlab
|
Requires: python-reportlab
|
||||||
|
Requires: python-rlpycairo >= 0.4.0
|
||||||
Requires: python-tinycss2 >= 0.6.0
|
Requires: python-tinycss2 >= 0.6.0
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
@@ -50,16 +52,14 @@ Pure Python library for reading and converting SVG.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n svglib-%{version}
|
%setup -q -n svglib-%{version}
|
||||||
# Remove hashbang
|
chmod ugo-x src/svglib/__init__.py
|
||||||
sed -i '1{/^#!/d}' svglib/svglib.py
|
|
||||||
# Make tests a module
|
|
||||||
touch tests/__init__.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
install -Dm0644 svg2pdf.1 %{buildroot}%{_mandir}/man1/svg2pdf.1
|
||||||
%{python_clone -a %{buildroot}%{_bindir}/svg2pdf}
|
%{python_clone -a %{buildroot}%{_bindir}/svg2pdf}
|
||||||
%{python_clone -a %{buildroot}%{_mandir}/man1/svg2pdf.1}
|
%{python_clone -a %{buildroot}%{_mandir}/man1/svg2pdf.1}
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3ae765d3a9409ee60c0fb4d24c2deb6a80617aa927054f5bcd7fc98f0695e587
|
|
||||||
size 913900
|
|
||||||
3
svglib-1.6.0.tar.gz
Normal file
3
svglib-1.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4c38a274a744ef0d1677f55d5d62fc0fb798819f813e52872a796e615741733d
|
||||||
|
size 1318276
|
||||||
Reference in New Issue
Block a user