[packages/python3-interegular] - new
qboosh
qboosh at pld-linux.org
Fri Oct 31 17:46:36 CET 2025
commit 2c2e2a1867852a7873ecc57c105171241896ef7c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 31 17:46:27 2025 +0100
- new
python3-interegular.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
---
diff --git a/python3-interegular.spec b/python3-interegular.spec
new file mode 100644
index 0000000..e2838d3
--- /dev/null
+++ b/python3-interegular.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Regex intersection checker
+Summary(pl.UTF-8): Biblioteka do sprawdzania przecięć wyrażeń regularnych
+Name: python3-interegular
+Version: 0.3.3
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/interegular/
+Source0: https://files.pythonhosted.org/packages/source/i/interegular/interegular-%{version}.tar.gz
+# Source0-md5: c656976bdca6d6940f842556b0509161
+URL: https://pypi.org/project/interegular/
+BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A library to check a subset of Python regexes for intersections.
+
+%description -l pl.UTF-8
+Biblioteka do sprawdzania podzbiorów wyrażeń regularnych Pythona pod
+kątem przecięć.
+
+%package apidocs
+Summary: API documentation for Python interegular module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona interegular
+Group: Documentation
+
+%description apidocs
+API documentation for Python interegular module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona interegular.
+
+%prep
+%setup -q -n interegular-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+# test_slow_example has time limit too strict for slower machines
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests -k 'not test_slow_example'
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.md
+%{py3_sitescriptdir}/interegular
+%{py3_sitescriptdir}/interegular-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-interegular.git/commitdiff/2c2e2a1867852a7873ecc57c105171241896ef7c
More information about the pld-cvs-commit
mailing list