%bcond_without python3 # CPython 3.x module
%define module neovim
-%define egg_name neovim
+%define egg_name pynvim
Summary: Python client to neovim
Name: python-%{module}
-Version: 0.1.9
+Version: 0.4.3
Release: 1
License: Apache v2.0
Group: Libraries/Python
Source0: https://github.com/neovim/python-client/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: a79bca20b8e4876e059a4190e68e881b
+# Source0-md5: b7370a5b3d2177d2b97ca48695ba1ae3
URL: https://github.com/neovim/python-client
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: python3-modules
BuildRequires: python3-setuptools
%endif
-Requires: python-greenlet
-Requires: python-msgpack
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%package -n python3-neovim
Summary: Python client to neovim
Group: Libraries/Python
-Requires: python3-greenlet
-Requires: python3-msgpack
%description -n python3-neovim
Implements support for Python plugins in nvim
%prep
-%setup -q -n python-client-%{version}
+%setup -q -n pynvim-%{version}
%build
%if %{with python2}
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python3}
+%if %{with python2}
%files
%defattr(644,root,root,755)
%doc README.md
%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/pynvim
%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
%endif
%defattr(644,root,root,755)
%doc README.md
%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/pynvim
%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
%endif