[packages/python3-pathspec] - updated to 1.0.4
qboosh
qboosh at pld-linux.org
Mon Mar 9 21:43:59 CET 2026
commit a53ff612cebfc746dc15cbef39ceaf99ab0849e9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 9 21:44:03 2026 +0100
- updated to 1.0.4
python3-pathspec.spec | 49 +++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 41 insertions(+), 8 deletions(-)
---
diff --git a/python3-pathspec.spec b/python3-pathspec.spec
index 94208b9..c72329f 100644
--- a/python3-pathspec.spec
+++ b/python3-pathspec.spec
@@ -1,27 +1,36 @@
-# TODO: docs (BR: sphinx-pdg-3 >= 7.2.6)
#
# Conditional build:
+%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
Summary: Utility library for gitignore style pattern matching of file paths
Summary(pl.UTF-8): Biblioteka narzędzioawa do dopasowywania wzorców ścieżek plików w stylu gitignore
Name: python3-pathspec
-Version: 0.12.1
-Release: 3
+Version: 1.0.4
+Release: 1
License: MPL v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pathspec/
Source0: https://pypi.debian.net/pathspec/pathspec-%{version}.tar.gz
-# Source0-md5: 2b26ad1981bfa23748e115f00085624c
+# Source0-md5: 18d9e6adb72e544b56a88c3e53094b4e
URL: https://pypi.org/project/pathspec/
BuildRequires: python3-build
BuildRequires: python3-flit_core >= 3.2
-BuildRequires: python3-flit_core < 4
+BuildRequires: python3-flit_core < 5
BuildRequires: python3-installer
-BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-modules >= 1:3.9
+%if %{with tests}
+# TODO: 9
+BuildRequires: python3-pytest >= 8.4
+BuildRequires: python3-typing_extensions >= 4.15
+%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
-Requires: python3-modules >= 1:3.8
+%if %{with doc}
+# TODO: 9.1.0
+BuildRequires: sphinx-pdg-3 >= 8.3
+%endif
+Requires: python3-modules >= 1:3.9
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,6 +46,17 @@ plików. Obecnie obejmuje to tylko algorytm dopasowywania wildmatch
Gita, wywodzący się z wildmatch programu Rsync. Git wykorzystuje
wildmatch na potrzeby plików gitignore.
+%package apidocs
+Summary: API documentation for Python pathspec module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona pathspec
+Group: Documentation
+
+%description apidocs
+API documentation for Python pathspec module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pathspec.
+
%prep
%setup -q -n pathspec-%{version}
@@ -44,9 +64,16 @@ wildmatch na potrzeby plików gitignore.
%py3_build_pyproject
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest tests
%endif
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+%{__make} -C doc html \
+ SPHINXBUILD=sphinx-build-3
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -57,6 +84,12 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES.rst README.rst
+%doc CHANGES.rst README.rst UPGRADING.rst
%{py3_sitescriptdir}/pathspec
%{py3_sitescriptdir}/pathspec-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/build/html/{_modules,_static,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pathspec.git/commitdiff/a53ff612cebfc746dc15cbef39ceaf99ab0849e9
More information about the pld-cvs-commit
mailing list