# # spec file for package python-pyfuse3 # # Copyright (c) 2021 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 %define skip_python39 1 %define pname pyfuse3 Name: python-%{pname} Version: 3.2.0 Release: 2.3 Summary: Python Bindings for the low-level FUSE3 API License: LGPL-2.1-or-later URL: https://github.com/libfuse/pyfuse3 Source: https://files.pythonhosted.org/packages/source/p/%{pname}/%{pname}-%{version}.tar.gz Patch0: 0001-timestamp-rounding-tests-avoid-y2038-issue.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.5} BuildRequires: %{python_module pytest >= 3.4.0} # upstream use: pytest-trio >= 0.15 BuildRequires: %{python_module pytest-trio} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module trio} BuildRequires: fdupes BuildRequires: fuse3-devel >= 3.3.0 BuildRequires: libattr-devel BuildRequires: python-rpm-macros Requires: python-trio Recommends: fuse3 >= 3.3.0 %python_subpackages %description pyfuse3 is a set of Python 3 bindings for libfuse 3. It provides an asynchronous API compatible with Trio and asyncio, and enables you to easily write a full-featured Linux filesystem in Python. %prep %autosetup -p1 -n %{pname}-%{version} %build %python_expand $python setup.py build_cython %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check # Note: There are some tests that are skipped because the user that # runs rpmbuild should be able to run fusermount but there's no way # to add it to the trusted group. %pytest_arch %files %{python_files} %doc Changes.rst README.rst %license LICENSE %{python_sitearch} %changelog * Mon May 17 2021 Antonio Larrosa - Add patch from upstream to fix build in i586 where a test fails due to the y2038 issue: * 0001-timestamp-rounding-tests-avoid-y2038-issue.patch * Sun May 16 2021 ecsos - Update to 3.2.0 - Fix long-standing rounding error in file date handling when the nanosecond part of file dates were > 999999500. - There is a new pyfuse3.terminate() function to gracefully end the main loop. - Changes from 3.1.1 - No source changes. Regenerated Cython files with Cython 0.29.21 for Python 3.9 compatibility. - Changes from 3.1.0 - Made compatible with newest Trio module. - Drop fix_catch_log_handler.patch because now in upstream. - Change source url to pythonhosted. * Mon Mar 15 2021 Matej Cepl - Add fix_catch_log_handler.patch to make tests compatible with pytest >= 6.0.0, which removed never documented attribute .catch_log_handler of log item (gh#libfuse/pyfuse3#27). * Fri Aug 7 2020 Marketa Calabkova - Update to 3.0.0 * Changed create handler to return a FileInfo struct to allow for modification of certain kernel file attributes, e.g. direct_io. * Thu Oct 10 2019 Tomáš Chvátal - Update to 2.0.0: * Changed open handler to return the new FileInfo struct to allow for modification of certain kernel file attributes, e.g. direct_io. * Tue Jul 23 2019 Tomáš Chvátal - Update to 1.3.1: * Fixed a bug in the :file:`hello_asyncio.py` example. * Mon Jun 17 2019 Tomáš Chvátal - Update to 1.3: * Fixed a bug in the tmpfs.py and passthroughfs.py example file systems * Wed May 15 2019 Tomáš Chvátal - Fix source URL * Sat May 11 2019 Torsten Gruner - Initial release version 1.2