[packages/python3-xmlschema] - updated to 3.4.5
qboosh
qboosh at pld-linux.org
Wed May 28 07:58:20 CEST 2025
commit 75b1f13cdc329e52bddf63f42d071dc4fdb0fb1c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed May 28 06:37:48 2025 +0200
- updated to 3.4.5
python3-xmlschema.spec | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/python3-xmlschema.spec b/python3-xmlschema.spec
index 8849498..a8fad8d 100644
--- a/python3-xmlschema.spec
+++ b/python3-xmlschema.spec
@@ -6,24 +6,29 @@
Summary: XML Schema validator and decoder
Summary(pl.UTF-8): Biblioteka do sprawdzania poprawności i dekodowania schematów XML
Name: python3-xmlschema
-Version: 3.4.3
+Version: 3.4.5
Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/xmlschema/
Source0: https://files.pythonhosted.org/packages/source/x/xmlschema/xmlschema-%{version}.tar.gz
-# Source0-md5: d6d9fbac420431cbb5d6f6777ac7fdab
+# Source0-md5: 5c58d8bf013208f8ed8137fbb020cdff
Patch0: %{name}-remote-tests.patch
URL: https://pypi.org/project/xmlschema/
-BuildRequires: python3-modules >= 1:3.7
-BuildRequires: python3-setuptools
+%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools >= 1:61.0
%if %{with tests}
BuildRequires: python3-elementpath >= 4.4.0
BuildRequires: python3-elementpath < 5
BuildRequires: python3-lxml
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
BuildRequires: python3-elementpath >= 4.4.0
BuildRequires: python3-elementpath < 5
@@ -31,7 +36,7 @@ BuildRequires: python3-jinja2
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: sphinx-pdg-3
%endif
-Requires: python3-modules >= 1:3.7
+Requires: python3-modules >= 1:3.8
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -59,11 +64,12 @@ Dokumentacja API modułu Pythona xmlschema.
%patch -P 0 -p1
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
-XMLSCHEMA_SKIP_REMOTE_TESTS=1 \
+LC_ALL=C.UTF-8 \
PYTHONPATH=$(pwd) \
+XMLSCHEMA_SKIP_REMOTE_TESTS=1 \
%{__python3} -m unittest
%endif
@@ -75,7 +81,7 @@ PYTHONPATH=$(pwd) \
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
@@ -87,7 +93,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/xmlschema-validate
%attr(755,root,root) %{_bindir}/xmlschema-xml2json
%{py3_sitescriptdir}/xmlschema
-%{py3_sitescriptdir}/xmlschema-%{version}-py*.egg-info
+%{py3_sitescriptdir}/xmlschema-%{version}.dist-info
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-xmlschema.git/commitdiff/75b1f13cdc329e52bddf63f42d071dc4fdb0fb1c
More information about the pld-cvs-commit
mailing list