[packages/python3-llfuse] Up to 1.5.1

arekm arekm at pld-linux.org
Sat May 3 19:07:22 CEST 2025


commit a37a9919eb6329d98e66f413b4c168e623ac32be
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat May 3 18:46:33 2025 +0200

    Up to 1.5.1

 python-llfuse.spec => python3-llfuse.spec | 68 +++++--------------------------
 1 file changed, 11 insertions(+), 57 deletions(-)
---
diff --git a/python-llfuse.spec b/python3-llfuse.spec
similarity index 56%
rename from python-llfuse.spec
rename to python3-llfuse.spec
index fcc33f6..a2998db 100644
--- a/python-llfuse.spec
+++ b/python3-llfuse.spec
@@ -1,46 +1,30 @@
 #
 # Conditional build:
 %bcond_without	tests	# do not perform "make test"
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define		module	llfuse
 Summary:	Python bindings for the low level FUSE API
-Name:		python-%{module}
-Version:	1.3.6
-Release:	9
+Name:		python3-%{module}
+Version:	1.5.1
+Release:	1
 License:	GPL v2
 Group:		Libraries/Python
-Source0:	https://pypi.debian.net/llfuse/%{module}-%{version}.tar.bz2
-# Source0-md5:	4996674fa327c6c93174c1f71961ac6c
+Source0:	https://pypi.debian.net/llfuse/%{module}-%{version}.tar.gz
+# Source0-md5:	8562120ca5cf3efeaac6607b05230037
 Patch0:		x32.patch
 URL:		https://github.com/python-llfuse/python-llfuse
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	libfuse-devel >= 2.8.0
 BuildRequires:	rpm-pythonprov
 BuildRequires:	python-Cython
-%if %{with python2}
-BuildRequires:	python-devel
-BuildRequires:	python-distribute
-BuildRequires:	python-contextlib2
-%endif
-%if %{with python3}
 BuildRequires:	python3-devel
 BuildRequires:	python3-contextlib2
 BuildRequires:	python3-modules
-%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Python bindings for the low level FUSE API.
 
-%package -n python3-%{module}
-Summary:	Python bindings for the low level FUSE API
-Group:		Libraries/Python
-
-%description -n python3-%{module}
-Python bindings for the low level FUSE API.
-
 %package apidocs
 Summary:	%{module} API documentation
 Summary(pl.UTF-8):	Dokumentacja API %{module}
@@ -61,12 +45,13 @@ Dokumentacja API %{module}.
 %build
 ./setup.py build_cython
 
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
+%py3_build
 
-%if %{with python3}
-%py3_build %{?with_tests:test}
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$(echo $PWD/build-3/lib*)" test
 %endif
 
 %if %{with doc}
@@ -78,54 +63,23 @@ rm -rf _build/html/_sources
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
-
-# in case there are examples provided
-%if %{with python2}
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python}\1,' \
-      $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*.py
-%endif
-%if %{with python3}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
 
 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
       $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}/*.py
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc Changes.rst
-%attr(755,root,root) %{py_sitedir}/%{module}.so
-%if "%{py_ver}" > "2.4"
-%{py_sitedir}/llfuse-*.egg-info
-%endif
-%{_examplesdir}/%{name}-%{version}
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc Changes.rst
 %attr(755,root,root) %{py3_sitedir}/%{module}.*.so
 %{py3_sitedir}/%{module}-%{version}-py*.egg-info
 %{_examplesdir}/python3-%{module}-%{version}
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-llfuse.git/commitdiff/a37a9919eb6329d98e66f413b4c168e623ac32be



More information about the pld-cvs-commit mailing list