From e1411a07bcfeb8991a19a93c8531fef412a6ec68 Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 25 Dec 2024 22:50:15 +0300 Subject: [PATCH] import python-inkex-1.3.1-3.el10 --- .gitignore | 1 + .python-inkex.metadata | 1 + SOURCES/scour-version.patch | 24 ++++++++ SPECS/python-inkex.spec | 110 ++++++++++++++++++++++++++++++++++++ 4 files changed, 136 insertions(+) create mode 100644 .gitignore create mode 100644 .python-inkex.metadata create mode 100644 SOURCES/scour-version.patch create mode 100644 SPECS/python-inkex.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..199025a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/inkex-1.3.1.tar.gz diff --git a/.python-inkex.metadata b/.python-inkex.metadata new file mode 100644 index 0000000..ff07704 --- /dev/null +++ b/.python-inkex.metadata @@ -0,0 +1 @@ +da5ef30300aeff2d8182dc0f04fd21acf51897f5 SOURCES/inkex-1.3.1.tar.gz diff --git a/SOURCES/scour-version.patch b/SOURCES/scour-version.patch new file mode 100644 index 0000000..d75970d --- /dev/null +++ b/SOURCES/scour-version.patch @@ -0,0 +1,24 @@ +diff -ruN inkex-1.3.0/PKG-INFO inkex-1.3.0-scour-ver/PKG-INFO +--- inkex-1.3.0/PKG-INFO 1970-01-01 03:00:00.000000000 +0300 ++++ inkex-1.3.0-scour-ver/PKG-INFO 2023-09-08 09:56:58.040880049 +0300 +@@ -29,7 +29,7 @@ + Requires-Dist: packaging (>=20.3) + Requires-Dist: pySerial (>=3.4,<4.0) + Requires-Dist: pyparsing (>=3.0.9) +-Requires-Dist: scour (>=0.37,<0.38) ++Requires-Dist: scour (>=0.37) + Project-URL: Repository, https://gitlab.com/inkscape/extensions + Description-Content-Type: text/markdown + +diff -ruN inkex-1.3.0/pyproject.toml inkex-1.3.0-scour-ver/pyproject.toml +--- inkex-1.3.0/pyproject.toml 2023-08-13 17:16:07.143500300 +0300 ++++ inkex-1.3.0-scour-ver/pyproject.toml 2023-09-08 09:56:27.006994937 +0300 +@@ -33,7 +33,7 @@ + {version = "^1.21.2", python = "^3.10"}, + ] + Pillow = ">=7.0.0" # Used by RasterOutputExtension +-scour = "^0.37" # Used by Optimized SVG Extension ++scour = ">=0.37" # Used by Optimized SVG Extension + packaging = ">=20.3" # Used by Optimized SVG Extension to compare scour versions + pyparsing = ">=3.0.9" + [tool.poetry.dev-dependencies] diff --git a/SPECS/python-inkex.spec b/SPECS/python-inkex.spec new file mode 100644 index 0000000..9e05573 --- /dev/null +++ b/SPECS/python-inkex.spec @@ -0,0 +1,110 @@ +%global srcname inkex +%global forgeurl https://gitlab.com/inkscape/extensions +Version: 1.3.1 +%global tag v%{version} +%forgemeta + +Name: python-%{srcname} +Release: 3%{?dist} +Summary: Python extensions for Inkscape core + +License: GPL-2.0-or-later +URL: %forgeurl +Source: %{pypi_source %{srcname}} +Patch: scour-version.patch +BuildRequires: python3-devel +# Tests +BuildRequires: python3dist(pytest) +BuildRequires: python3-gobject-devel +BuildRequires: python3-gobject +BuildRequires: python3-gobject-base +BuildRequires: python3-gobject-base-noarch +BuildRequires: gtk3-devel +BuildArch: noarch + +%global _description %{expand: +This package supports Inkscape extensions. + +It provides +- a simplification layer for SVG manipulation through lxml +- base classes for common types of Inkscape extensions +- simplified testing of those extensions +- a user interface library based on GTK3 + +At its core, Inkscape extensions take in a file, and output a file. +- For effect extensions, those two files are SVG files. +- For input extensions, the input file may be any arbitrary + file and the output is an SVG. +- For output extensions, the input is an SVG file while the + output is an arbitrary file. +- Some extensions (e.g. the extensions manager) don't manipulate files. + +This folder also contains the stock Inkscape extensions, i.e. the scripts +that implement some commands that you can use from within Inkscape. +Most of these commands are in the Extensions menu, or in the Open / +Save dialogs.} + +%description %_description + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + + +%prep +%autosetup -p1 -n %{srcname}-%{version} +# Remove version limit from lxml +sed -i "s/lxml = .*/lxml = '\*'/" pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{srcname} +# Executable fix +sed -i /env\ python/d %{buildroot}%{python3_sitelib}/inkex/tester/inx.py + +%check +%pyproject_check_import + + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc package-readme.md +%license LICENSE.txt + +%changelog +* Wed Dec 25 2024 Arkady L. Shane - 1.3.1-3 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 1.3.1-2 +- Rebuilt for Python 3.13 + +* Wed Apr 10 2024 Benson Muite - 1.3.1-1 +- Update to latest release on Pypi + +* Fri Jan 26 2024 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 15 2024 Lumír Balhar - 1.3.0-3 +- Remove version limit from lxml + +* Sun Dec 24 2023 Benson Muite - 1.3.0-2 +- Enable building with Python 3.13 + +* Fri Sep 08 2023 Benson Muite - 1.3.0-1 +- Initial package +