[packages/python-rfc3339_validator] - new

qboosh qboosh at pld-linux.org
Fri Oct 31 17:47:50 CET 2025


commit eabb7055dab7198c4fdbcd8dac016d5b460c63b4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 31 17:47:41 2025 +0100

    - new

 python-rfc3339_validator.spec | 117 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 117 insertions(+)
---
diff --git a/python-rfc3339_validator.spec b/python-rfc3339_validator.spec
new file mode 100644
index 0000000..030aad7
--- /dev/null
+++ b/python-rfc3339_validator.spec
@@ -0,0 +1,117 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Pure Python RFC3339 validator
+Summary(pl.UTF-8):	Sprawdzanie zgodności z RFC3339 w czystym Pythonie
+Name:		python-rfc3339_validator
+Version:	0.1.4
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/rfc3339-validator/
+Source0:	https://files.pythonhosted.org/packages/source/r/rfc3339-validator/rfc3339_validator-%{version}.tar.gz
+# Source0-md5:	6b0c9ec10d03946b91924ee871c91212
+URL:		https://pypi.org/project/rfc3339-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-pytest-runner
+BuildRequires:	python-six
+BuildRequires:	python-strict_rfc3339
+%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-pytest-runner
+BuildRequires:	python3-six
+BuildRequires:	python3-strict_rfc3339
+%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 RFC3339 validator.
+
+%description -l pl.UTF-8
+Sprawdzanie zgodności z RFC3339 w czystym Pythonie.
+
+%package -n python3-rfc3339_validator
+Summary:	Pure Python RFC3339 validator
+Summary(pl.UTF-8):	Sprawdzanie zgodności z RFC3339 w czystym Pythonie
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.5
+
+%description -n python3-rfc3339_validator
+Pure Python RFC3339 validator.
+
+%description -n python3-rfc3339_validator -l pl.UTF-8
+Sprawdzanie zgodności z RFC3339 w czystym Pythonie.
+
+%prep
+%setup -q -n rfc3339_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}/rfc3339_validator.py[co]
+%{py_sitescriptdir}/rfc3339_validator-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-rfc3339_validator
+%defattr(644,root,root,755)
+%doc AUTHORS.rst HISTORY.rst LICENSE README.md
+%{py3_sitescriptdir}/rfc3339_validator.py
+%{py3_sitescriptdir}/__pycache__/rfc3339_validator.cpython-*.py[co]
+%{py3_sitescriptdir}/rfc3339_validator-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-rfc3339_validator.git/commitdiff/eabb7055dab7198c4fdbcd8dac016d5b460c63b4



More information about the pld-cvs-commit mailing list