[packages/python3-svgwrite] - python-svgwrite.spec updated to 1.4.3 for python 3.6+
qboosh
qboosh at pld-linux.org
Sat Oct 3 17:48:29 CEST 2026
commit db75a96eb0b627b839ff6e8afc325ddce31933a0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 3 17:48:56 2026 +0200
- python-svgwrite.spec updated to 1.4.3 for python 3.6+
python-svgwrite.spec | 113 --------------------------------------------------
python3-svgwrite.spec | 61 +++++++++++++++++++++++++++
2 files changed, 61 insertions(+), 113 deletions(-)
---
diff --git a/python-svgwrite.spec b/python-svgwrite.spec
deleted file mode 100644
index 3e4ae9d..0000000
--- a/python-svgwrite.spec
+++ /dev/null
@@ -1,113 +0,0 @@
-#
-# Conditional build:
-%bcond_without doc # Sphinx documentation
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-%define module svgwrite
-Summary: Python 2 library to create SVG drawings
-Summary(pl.UTF-8): Biblioteka Pythona 2 do tworzenia rysunków SVG
-Name: python-%{module}
-# keep 1.3.x here for python2 support
-Version: 1.3.1
-Release: 7
-License: MIT
-Group: Libraries/Python
-Source0: https://github.com/mozman/svgwrite/archive/v%{version}/%{module}-%{version}.tar.gz
-# Source0-md5: a3d9311578538ba5acd6bb98d14cae38
-URL: https://github.com/mozman/svgwrite
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pyparsing >= 2.0.1
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-pyparsing >= 2.0.1
-BuildRequires: python3-pytest
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Python 2 library to create SVG drawings.
-
-%description -l pl.UTF-8
-Biblioteka Pythona 2 do tworzenia rysunków SVG.
-
-%package -n python3-%{module}
-Summary: Python 3 library to create SVG drawings
-Summary(pl.UTF-8): Biblioteka Pythona 3 do tworzenia rysunków SVG
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Python 3 library to create SVG drawings.
-
-%description -n python3-%{module} -l pl.UTF-8
-Biblioteka Pythona 3 do tworzenia rysunków SVG.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-# test is hosed and fails on the order of attr in a tag
-%{__rm} tests/test_pretty_xml.py
-# needs network access
-%{__rm} tests/test_style.py
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest discover -s tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc NEWS.rst README.rst LICENSE.TXT
-%{py_sitescriptdir}/svgwrite
-%{py_sitescriptdir}/svgwrite-%{version}-py%{py_ver}.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc NEWS.rst README.rst LICENSE.TXT
-%{py3_sitescriptdir}/svgwrite
-%{py3_sitescriptdir}/svgwrite-%{version}-py%{py3_ver}.egg-info
-%endif
diff --git a/python3-svgwrite.spec b/python3-svgwrite.spec
new file mode 100644
index 0000000..8b56d71
--- /dev/null
+++ b/python3-svgwrite.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
+
+%define module svgwrite
+Summary: Python 3 library to create SVG drawings
+Summary(pl.UTF-8): Biblioteka Pythona 3 do tworzenia rysunków SVG
+Name: python3-%{module}
+Version: 1.4.3
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://github.com/mozman/svgwrite/archive/v%{version}/%{module}-%{version}.tar.gz
+# Source0-md5: 8e9c0c797ebbfd65f44e82c625dc3aa3
+URL: https://github.com/mozman/svgwrite
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python 3 library to create SVG drawings.
+
+%description -l pl.UTF-8
+Biblioteka Pythona 3 do tworzenia rysunków SVG.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# test is hosed and fails on the order of attr in a tag
+#%{__rm} tests/test_pretty_xml.py
+# needs network access
+%{__rm} tests/test_style.py
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS.rst README.rst LICENSE.TXT
+%{py3_sitescriptdir}/svgwrite
+%{py3_sitescriptdir}/svgwrite-%{version}-py%{py3_ver}.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-svgwrite.git/commitdiff/db75a96eb0b627b839ff6e8afc325ddce31933a0
More information about the pld-cvs-commit
mailing list