forked from pool/python-pyfuse3
* cythonize with latest Cython 0.29.34 (brings Python 3.12 support) * add a minimal pyproject.toml, require setuptools * tests: fix integer overflow on 32-bit arches, fixes #47 * test: Use shutil.which() instead of external which(1) program * setup.py: catch more generic OSError when searching Cython, fixes #63 * setup.py: require Cython >= 0.29 * fix basedir computation in setup.py (fix pip install -e .) * use sphinx < 6.0 due to compatibility issues with more recent versions OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfuse3?expand=0&rev=21
69 lines
2.2 KiB
RPMSpec
69 lines
2.2 KiB
RPMSpec
#
|
|
# spec file
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
%define pname pyfuse3
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-%{pname}
|
|
Version: 3.2.3
|
|
Release: 0
|
|
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
|
|
BuildRequires: %{python_module Cython >= 0.29}
|
|
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
|