2019-05-15 15:54:34 +00:00
|
|
|
#
|
2023-01-07 23:29:52 +00:00
|
|
|
# spec file
|
2019-05-15 15:54:34 +00:00
|
|
|
#
|
2023-01-07 23:29:52 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-05-15 15:54:34 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-05-15 15:55:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-05-15 15:54:34 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define skip_python2 1
|
|
|
|
%define pname pyfuse3
|
|
|
|
Name: python-%{pname}
|
2023-01-07 23:29:52 +00:00
|
|
|
Version: 3.2.2
|
2019-05-15 15:54:34 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Bindings for the low-level FUSE3 API
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: https://github.com/libfuse/pyfuse3
|
2021-05-16 09:33:06 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/%{pname}/%{pname}-%{version}.tar.gz
|
2019-05-15 15:54:34 +00:00
|
|
|
BuildRequires: %{python_module Cython}
|
2021-05-16 09:33:06 +00:00
|
|
|
BuildRequires: %{python_module devel >= 3.5}
|
2021-03-15 18:13:04 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 3.4.0}
|
2021-05-16 09:33:06 +00:00
|
|
|
# upstream use: pytest-trio >= 0.15
|
2019-05-15 15:54:34 +00:00
|
|
|
BuildRequires: %{python_module pytest-trio}
|
2019-05-15 15:55:58 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-08-07 17:11:02 +00:00
|
|
|
BuildRequires: %{python_module trio}
|
2019-05-15 15:54:34 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fuse3-devel >= 3.3.0
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-08-07 17:11:02 +00:00
|
|
|
Requires: python-trio
|
2019-05-15 15:54:34 +00:00
|
|
|
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
|
2021-05-16 09:33:06 +00:00
|
|
|
%autosetup -p1 -n %{pname}-%{version}
|
2019-05-15 15:54:34 +00:00
|
|
|
|
|
|
|
%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.
|
2019-05-15 15:55:58 +00:00
|
|
|
%pytest_arch
|
2019-05-15 15:54:34 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc Changes.rst README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitearch}
|
|
|
|
|
|
|
|
%changelog
|