[packages/python-llfuse] Drop python3 here - see python3-llfuse.spec

arekm arekm at pld-linux.org
Sat May 3 19:12:59 CEST 2025


commit 4e6d152ae2fd5953d343c4752808ce3470121183
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat May 3 18:52:42 2025 +0200

    Drop python3 here - see python3-llfuse.spec

 python-llfuse.spec | 54 +++---------------------------------------------------
 1 file changed, 3 insertions(+), 51 deletions(-)
---
diff --git a/python-llfuse.spec b/python-llfuse.spec
index fcc33f6..7e30bf7 100644
--- a/python-llfuse.spec
+++ b/python-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
+Release:	10
 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,13 +45,7 @@ Dokumentacja API %{module}.
 %build
 ./setup.py build_cython
 
-%if %{with python2}
 %py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
 
 %if %{with doc}
 cd docs
@@ -78,36 +56,20 @@ 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
@@ -116,16 +78,6 @@ rm -rf $RPM_BUILD_ROOT
 %{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/python-llfuse.git/commitdiff/4e6d152ae2fd5953d343c4752808ce3470121183



More information about the pld-cvs-commit mailing list