[packages/python3-rfc3987_syntax] - new
qboosh
qboosh at pld-linux.org
Fri Oct 31 17:59:08 CET 2025
commit e63e88f381a48be29a1ed957b431cb94c257319f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 31 17:59:00 2025 +0100
- new
python3-rfc3987_syntax.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/python3-rfc3987_syntax.spec b/python3-rfc3987_syntax.spec
new file mode 100644
index 0000000..9a5dba4
--- /dev/null
+++ b/python3-rfc3987_syntax.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Helper functions to syntactically validate strings according to RFC 3987
+Summary(pl.UTF-8): Funkcje pomocnicze do sprawdzania poprawności składniowej łańcuchów wg RFC 3987
+Name: python3-rfc3987_syntax
+Version: 1.1.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/rfc3987-syntax/
+Source0: https://files.pythonhosted.org/packages/source/r/rfc3987-syntax/rfc3987_syntax-%{version}.tar.gz
+# Source0-md5: b12f9966a7f15414812eb7c55ac13201
+URL: https://pypi.org/project/rfc3987-syntax/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.9
+BuildRequires: python3-hatchling
+%if %{with tests}
+BuildRequires: python3-lark >= 1.2.2
+BuildRequires: python3-pytest >= 8.3.5
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Helper functions to parse and validate the syntax of terms defined in
+RFC 3987 (<https://www.rfc-editor.org/info/rfc3987>) - the IETF
+standard for Internationalized Resource Identifiers (IRIs).
+
+%description -l pl.UTF-8
+Funkcje pomocnicze do analizy i sprawdzania składni wyrażeń
+zdefiniowanych w RFC 3987 (<https://www.rfc-editor.org/info/rfc3987>)
+- standardzie IETF umiędzynarodowionych identyfikatorów zasobów (IRI).
+
+%prep
+%setup -q -n rfc3987_syntax-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/rfc3987_syntax
+%{py3_sitescriptdir}/rfc3987_syntax-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-rfc3987_syntax.git/commitdiff/e63e88f381a48be29a1ed957b431cb94c257319f
More information about the pld-cvs-commit
mailing list