77 lines
2.3 KiB
RPMSpec
77 lines
2.3 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-neovim
|
||
|
#
|
||
|
# Copyright (c) 2025 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 skip_python311 1
|
||
|
%define skip_python312 1
|
||
|
%define modname pynvim
|
||
|
%define dev_version 0.6.1.dev0
|
||
|
|
||
|
Name: python-neovim
|
||
|
Version: 0.6.0+git20250916.fdaae82
|
||
|
Release: 0
|
||
|
Summary: Python client to Neovim
|
||
|
License: Apache-2.0
|
||
|
Group: Productivity/Text/Editors
|
||
|
URL: https://github.com/neovim/pynvim
|
||
|
#Source: https://github.com/neovim/%%{modname}/archive/%%{version}/%%{modname}-%%{version}.tar.gz
|
||
|
Source: %{modname}-%{version}.tar.gz
|
||
|
BuildRequires: %{python_module pip}
|
||
|
BuildRequires: %{python_module pytest}
|
||
|
BuildRequires: %{python_module pytest-asyncio}
|
||
|
BuildRequires: %{python_module pytest-timeout}
|
||
|
BuildRequires: %{python_module typing_extensions}
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: lua51-lpeg
|
||
|
BuildRequires: python-rpm-macros
|
||
|
BuildRequires: %{python_module msgpack}
|
||
|
BuildRequires: %{python_module greenlet}
|
||
|
BuildRequires: neovim >= 0.11.0
|
||
|
Requires: neovim >= 0.11.0
|
||
|
Requires: python3-greenlet
|
||
|
Requires: python3-msgpack
|
||
|
Requires: python3-typing_extensions
|
||
|
Provides: python-nvim
|
||
|
BuildArch: noarch
|
||
|
%python_subpackages
|
||
|
|
||
|
%description
|
||
|
Library for scripting Nvim processes through its msgpack-rpc API.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -p0 -n %{modname}-%{version}
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
||
|
%check
|
||
|
%pytest -k 'not (test_broadcast or test_options or test_get_exceptions)'
|
||
|
|
||
|
%files %{python_files}
|
||
|
%license LICENSE
|
||
|
%doc README.md
|
||
|
%{_bindir}/%{modname}-python
|
||
|
%{python_sitelib}/neovim/
|
||
|
%{python_sitelib}/%{modname}/
|
||
|
%{python_sitelib}/%{modname}-%{dev_version}.dist-info/
|
||
|
|
||
|
%changelog
|