Accepting request 1139060 from devel:languages:python
- Add patch no-more-distutils.patch: * Stop using distutils unilaterally. - Switch to autosetup and pyproject macros. - Be more clear about files in %files. OBS-URL: https://build.opensuse.org/request/show/1139060 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fuse?expand=0&rev=13
This commit is contained in:
commit
f26c8a6aaf
29
no-more-distutils.patch
Normal file
29
no-more-distutils.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 24039401245c6ba3bfb991e690a8ad85480845a4 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Kowalik <steven@wedontsleep.org>
|
||||
Date: Tue, 16 Jan 2024 15:43:17 +1100
|
||||
Subject: [PATCH] Do not unilaterally import distutils in setup.py
|
||||
|
||||
Python 3.12 removed distutils completly, so also attempt to import
|
||||
Extension from setuptools, and if that fails, to import it from
|
||||
distutils.
|
||||
---
|
||||
setup.py | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 1d420b8..292ea8f 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -7,10 +7,9 @@
|
||||
# part of the icecast project, http://svn.xiph.org/icecast/trunk/shout-python)
|
||||
|
||||
try:
|
||||
- from setuptools import setup
|
||||
+ from setuptools import setup, Extension
|
||||
except ImportError:
|
||||
- from distutils.core import setup
|
||||
-from distutils.core import Extension
|
||||
+ from distutils.core import setup, Extension
|
||||
import os
|
||||
import sys
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 16 04:58:18 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch no-more-distutils.patch:
|
||||
* Stop using distutils unilaterally.
|
||||
- Switch to autosetup and pyproject macros.
|
||||
- Be more clear about files in %files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 4 14:37:12 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-fuse
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -22,10 +22,14 @@ Version: 1.0.7
|
||||
Release: 0
|
||||
Summary: Python bindings for FUSE
|
||||
License: LGPL-2.1-only
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://github.com/libfuse/python-fuse
|
||||
Source: https://github.com/libfuse/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#libfuse/python-fuse#58
|
||||
Patch0: no-more-distutils.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: fuse-devel
|
||||
BuildRequires: pkgconfig
|
||||
@ -36,14 +40,14 @@ BuildRequires: python-rpm-macros
|
||||
Python bindings for FUSE (User space File System)
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
@ -52,7 +56,9 @@ export CFLAGS="%{optflags}"
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%doc README.* FAQ AUTHORS
|
||||
%{python_sitearch}/fuse*
|
||||
%pycache_only %{python_sitearch}/__pycache__
|
||||
%{python_sitearch}/fuse.py
|
||||
%pycache_only %{python_sitearch}/__pycache__/fuse*.py*
|
||||
%{python_sitearch}/fuseparts
|
||||
%{python_sitearch}/fuse_python-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user