From 3dad1e394e6d02f4dfa9f759c2d2778f9fe9b137baa4a74f26dad85fb75241be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Sep 2024 12:04:33 +0000 Subject: [PATCH] - update to 1.0.8: * Add README.cups.md * Do not unilaterally import distutils in setup.py * Add support for objects that support buffer protocol for "read" calls * Remove trailing space on files * CI: Add workflow to build Python wheels * Fix setup.py uninitialized variables issue * Build sdist in CI * Add cp310 wheel to CI * CI: Add workaround for broken py 3.5 in GitHub Actions. - dropped patch: no-more-distutils.patch - no longer needed. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fuse?expand=0&rev=22 --- .gitattributes | 23 +++++++++ .gitignore | 1 + no-more-distutils.patch | 29 +++++++++++ python-fuse-1.0.7.tar.gz | 3 ++ python-fuse-1.0.8.tar.gz | 3 ++ python-fuse.changes | 105 +++++++++++++++++++++++++++++++++++++++ python-fuse.spec | 62 +++++++++++++++++++++++ 7 files changed, 226 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 no-more-distutils.patch create mode 100644 python-fuse-1.0.7.tar.gz create mode 100644 python-fuse-1.0.8.tar.gz create mode 100644 python-fuse.changes create mode 100644 python-fuse.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/no-more-distutils.patch b/no-more-distutils.patch new file mode 100644 index 0000000..5814313 --- /dev/null +++ b/no-more-distutils.patch @@ -0,0 +1,29 @@ +From 24039401245c6ba3bfb991e690a8ad85480845a4 Mon Sep 17 00:00:00 2001 +From: Steve Kowalik +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 + diff --git a/python-fuse-1.0.7.tar.gz b/python-fuse-1.0.7.tar.gz new file mode 100644 index 0000000..14b93e8 --- /dev/null +++ b/python-fuse-1.0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6273b1eb99259923fbae4e56257359d01a893243e1804a8bd23a72528c7ee1c6 +size 46947 diff --git a/python-fuse-1.0.8.tar.gz b/python-fuse-1.0.8.tar.gz new file mode 100644 index 0000000..0539ba3 --- /dev/null +++ b/python-fuse-1.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50fd95dc966adf419d6afccf69bf8cb4814bf4b5b93c051308da6fc9de982912 +size 54289 diff --git a/python-fuse.changes b/python-fuse.changes new file mode 100644 index 0000000..2920d3a --- /dev/null +++ b/python-fuse.changes @@ -0,0 +1,105 @@ +------------------------------------------------------------------- +Wed Sep 4 08:16:03 UTC 2024 - Frantisek Simorda + +- update to 1.0.8: + * Add README.cups.md + * Do not unilaterally import distutils in setup.py + * Add support for objects that support buffer protocol for "read" calls + * Remove trailing space on files + * CI: Add workflow to build Python wheels + * Fix setup.py uninitialized variables issue + * Build sdist in CI + * Add cp310 wheel to CI + * CI: Add workaround for broken py 3.5 in GitHub Actions. +- dropped patch: no-more-distutils.patch - no longer needed. + +------------------------------------------------------------------- +Tue Jan 16 04:58:18 UTC 2024 - Steve Kowalik + +- 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 + +- update to 1.0.7: + * Suppress SyntaxWarnings in python3.12 + * Doc: Minor spelling fixes +- update to 1.0.6: + * Python 3.12 compatibility. + +------------------------------------------------------------------- +Thu Jul 6 10:57:43 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Jan 4 20:07:28 UTC 2023 - Dirk Müller + +- update to v1.0.5: + * Fix issue with python 3.10 + +------------------------------------------------------------------- +Sun Jan 23 16:21:16 UTC 2022 - Dirk Müller + +- update to 1.0.4: + * Improve path handling for Python >= 3.6 + * fix race in xmp.py + * fix surrogateescape handling in fsyncdir/readdir/write + * unbreak xmp.py for python2 + * fix object leak in open_func() + * fix temporary objects leak + +------------------------------------------------------------------- +Sat Dec 5 08:38:10 UTC 2020 - andy great + +- Update to version 1.0.0. + * Add poll support. + * Use bytes objects for read and write data: please note that + while this has no effect on Python 2,it is a breaking change in + Python 3; it's worth it however since it fixes a serious + usability bug that arbitrarily limited file content to valid + UTF-8 data. + +------------------------------------------------------------------- +Wed Jun 20 16:36:09 UTC 2018 - mcepl@suse.com + +- Clean SPEC file + +------------------------------------------------------------------- +Thu Aug 24 13:39:13 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- +Tue Jan 31 14:51:13 UTC 2012 - saschpe@suse.de + +- Fix SLE_11 build + +------------------------------------------------------------------- +Fri Jan 27 22:24:31 UTC 2012 - Greg.Freemyer@gmail.com + +- upgrade to version 0.2.1 + * make_release.sh: + Fix generation of MANIFEST.in in make_release.sh + + * fuse.py, fuseparts/__init__.py: + Fix previous fix for ctors of Timespec and Flock to be backwards + compatible, bump version to 0.2.1 + + * fuseparts/_fusemodule.c: + Fix incorrect handling of getxattr for the size=0 case + + * fuse.py: + absolutify the mount path when "fetch_mp" is set + +------------------------------------------------------------------- +Fri Jun 27 10:53:42 CEST 2008 - prusnak@suse.cz + +- created package (v 0.2) + + python-fuse provides python bindings to the fuse library (fuse = userspace filesystem) + + diff --git a/python-fuse.spec b/python-fuse.spec new file mode 100644 index 0000000..c6b424f --- /dev/null +++ b/python-fuse.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-fuse +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-fuse +Version: 1.0.8 +Release: 0 +Summary: Python bindings for FUSE +License: LGPL-2.1-only +URL: https://github.com/libfuse/python-fuse +Source: https://github.com/libfuse/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: fuse-devel +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +%python_subpackages + +%description +Python bindings for FUSE (User space File System) + +%prep +%autosetup -p1 + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +# Can not figured how to do it. + +%files %{python_files} +%license COPYING +%doc README.* FAQ AUTHORS +%{python_sitearch}/fuse.py +%pycache_only %{python_sitearch}/__pycache__/fuse*.py* +%{python_sitearch}/fuseparts +%{python_sitearch}/fuse_python-%{version}.dist-info + +%changelog