[packages/python3-pathspec] Up to 0.12.1 (python3 only)

arekm arekm at pld-linux.org
Fri Feb 7 18:06:47 CET 2025


commit 8a7ee7aef16826fd7e7c152c276829a0e04da119
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Feb 7 17:39:44 2025 +0100

    Up to 0.12.1 (python3 only)

 python-pathspec.spec  | 116 --------------------------------------------------
 python3-pathspec.spec |  59 +++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 116 deletions(-)
---
diff --git a/python-pathspec.spec b/python-pathspec.spec
deleted file mode 100644
index 5175995..0000000
--- a/python-pathspec.spec
+++ /dev/null
@@ -1,116 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-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:		python-pathspec
-# keep 0.9.x here for python2 support
-Version:	0.9.0
-Release:	4
-License:	MPL v2.0
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/pathspec/
-Source0:	https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz
-# Source0-md5:	9b6b70fa5ffc31e6f5700522880140c0
-URL:		https://pypi.org/project/pathspec/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%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
-pathspec is a utility library for pattern matching of file paths. So
-far this only includes Git's wildmatch pattern matching which itself
-is derived from Rsync's wildmatch. Git uses wildmatch for its
-gitignore files.
-
-%description -l pl.UTF-8
-pathspec to biblioteka narzędziowa do dopasowywania wzorców ścieżek
-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 -n python3-pathspec
-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
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-pathspec
-pathspec is a utility library for pattern matching of file paths. So
-far this only includes Git's wildmatch pattern matching which itself
-is derived from Rsync's wildmatch. Git uses wildmatch for its
-gitignore files.
-
-%description -n python3-pathspec -l pl.UTF-8
-pathspec to biblioteka narzędziowa do dopasowywania wzorców ścieżek
-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.
-
-%prep
-%setup -q -n pathspec-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s pathspec/tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest discover -s pathspec/tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/pathspec/tests
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pathspec/tests
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGES.rst README.rst
-%{py_sitescriptdir}/pathspec
-%{py_sitescriptdir}/pathspec-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pathspec
-%defattr(644,root,root,755)
-%doc CHANGES.rst README.rst
-%{py3_sitescriptdir}/pathspec
-%{py3_sitescriptdir}/pathspec-%{version}-py*.egg-info
-%endif
diff --git a/python3-pathspec.spec b/python3-pathspec.spec
new file mode 100644
index 0000000..25c7614
--- /dev/null
+++ b/python3-pathspec.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%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:	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
+URL:		https://pypi.org/project/pathspec/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pathspec is a utility library for pattern matching of file paths. So
+far this only includes Git's wildmatch pattern matching which itself
+is derived from Rsync's wildmatch. Git uses wildmatch for its
+gitignore files.
+
+%description -l pl.UTF-8
+pathspec to biblioteka narzędziowa do dopasowywania wzorców ścieżek
+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.
+
+%prep
+%setup -q -n pathspec-%{version}
+
+%build
+%{__python3} -m build --wheel --no-isolation --outdir build-3
+
+%if %{with tests}
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python3} -m installer --destdir=$RPM_BUILD_ROOT build-3/*.whl
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst README.rst
+%{py3_sitescriptdir}/pathspec
+%{py3_sitescriptdir}/pathspec-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pathspec.git/commitdiff/8a7ee7aef16826fd7e7c152c276829a0e04da119



More information about the pld-cvs-commit mailing list