File neovide.spec of Package neovide
#
# spec file for package neovide
#
# Copyright (c) 2024 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: neovide
Version: 0.12.2
Release: 0
Summary: Neovim gui client
License: MIT
URL: https://github.com/neovide/neovide
# https://archlinux.org/packages/extra/x86_64/neovide/download/
Source0: %{name}-%{version}-1-x86_64.pkg.tar.zst
BuildRequires: zstd
ExclusiveArch: x86_64
%description
No Nonsense Neovim Client in Rust
%prep
%__tar -xvf %{SOURCE0}
%build
%install
%{__install} -m 0755 -D -t %{buildroot}%{_bindir} usr/bin/neovide
mkdir -p %{buildroot}%{_datadir}
cp -r usr/share/icons %{buildroot}%{_datadir}
cp -r usr/share/applications %{buildroot}%{_datadir}
%files
%license usr/share/licenses/neovide/LICENSE
%{_bindir}/neovide
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/256x256
%dir %{_datadir}/icons/hicolor/256x256/apps
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%{_datadir}/icons/hicolor/*/apps/neovide.png
%{_datadir}/applications/neovide.desktop
%changelog