[packages/python-rfc3986_validator] - new
qboosh
qboosh at pld-linux.org
Fri Oct 31 17:51:07 CET 2025
commit edae3dbb58cbe21c219dd99cf26234f0e0f4afaa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 31 17:50:57 2025 +0100
- new
python-rfc3986_validator.spec | 113 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 113 insertions(+)
---
diff --git a/python-rfc3986_validator.spec b/python-rfc3986_validator.spec
new file mode 100644
index 0000000..7d2becb
--- /dev/null
+++ b/python-rfc3986_validator.spec
@@ -0,0 +1,113 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Pure Python RFC3986 validator
+Summary(pl.UTF-8): Sprawdzanie zgodności z RFC3986 w czystym Pythonie
+Name: python-rfc3986_validator
+Version: 0.1.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/rfc3986-validator/
+Source0: https://files.pythonhosted.org/packages/source/r/rfc3986-validator/rfc3986_validator-%{version}.tar.gz
+# Source0-md5: 47f7657b790aaf6011a1ab3d86c6be95
+URL: https://pypi.org/project/rfc3986-validator/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-hypothesis
+BuildRequires: python-pytest >= 3
+BuildRequires: python-rfc3987
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-hypothesis
+BuildRequires: python3-pytest >= 3
+BuildRequires: python3-rfc3987
+%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
+Pure Python RFC3986 validator.
+
+%description -l pl.UTF-8
+Sprawdzanie zgodności z RFC3986 w czystym Pythonie.
+
+%package -n python3-rfc3986_validator
+Summary: Pure Python RFC3986 validator
+Summary(pl.UTF-8): Sprawdzanie zgodności z RFC3986 w czystym Pythonie
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.5
+
+%description -n python3-rfc3986_validator
+Pure Python RFC3986 validator.
+
+%description -n python3-rfc3986_validator -l pl.UTF-8
+Sprawdzanie zgodności z RFC3986 w czystym Pythonie.
+
+%prep
+%setup -q -n rfc3986_validator-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.rst HISTORY.rst LICENSE README.md
+%{py_sitescriptdir}/rfc3986_validator.py[co]
+%{py_sitescriptdir}/rfc3986_validator-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-rfc3986_validator
+%defattr(644,root,root,755)
+%doc AUTHORS.rst HISTORY.rst LICENSE README.md
+%{py3_sitescriptdir}/rfc3986_validator.py
+%{py3_sitescriptdir}/__pycache__/rfc3986_validator.cpython-*.py[co]
+%{py3_sitescriptdir}/rfc3986_validator-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-rfc3986_validator.git/commitdiff/edae3dbb58cbe21c219dd99cf26234f0e0f4afaa
More information about the pld-cvs-commit
mailing list