File neovim.spec of Package neovim-dev

#
# spec file for package 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/
#

Name:           neovim-dev
Version:        0.12.0
Release:        dev.934%{?dist}
Summary:        Hyperextensible Vim-based text editor (development build)
License:        Apache-2.0
URL:            https://neovim.io/
Source0:        %{name}-%{version}-dev.tar.gz

BuildRequires:  gcc
BuildRequires:  cmake
BuildRequires:  make
BuildRequires:  git
BuildRequires:  ninja
BuildRequires:  gettext-tools
BuildRequires:  libuv-devel
BuildRequires:  libtermkey-devel
BuildRequires:  msgpack-c-devel
BuildRequires:  tree-sitter-devel
BuildRequires:  lua-devel
BuildRequires:  unzip

%description
Neovim is a refactor of Vim focused on extensibility and usability. This package provides the latest development build.


%prep
%setup -q -n neovim-%{version}-dev

%build
mkdir -p build
cd build 
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}

%install
cd build
make install DESTDIR=%{buildroot}


%files
%{_bindir}/nvim
%{_mandir}/man1/nvim.1*
%{_datadir}/nvim/
%doc runtime/doc/*

%changelog
* %(date +"%a %b %d %Y") Openstandards <a@a.com> - 0.12.0-dev.934
- Development build (commit a9a4c271b)
openSUSE Build Service is sponsored by