File goneovim.spec of Package goneovim
#
# spec file for package specRPM_CREATION_NAME
#
# Copyright (c) 2022 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: goneovim
Version: 0.6.3
Release: 0
Summary: A GUI frontend for neovim
License: MIT
Group: Productivity/Text/Editors
Url: https://github.com/akiyosi/goneovim
Source0: https://github.com/akiyosi/goneovim/releases/download/v%{version}/goneovim-v%{version}-linux.tar.bz2
Source1: goneovim.desktop
Source2: goneovim.ico
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A GUI frontend for neovim.
%prep
%setup -c -q
%build
%install
mkdir -p %{buildroot}%{_bindir}
cd %{name}-v%{version}-linux
# install desktop file
install -p -m 0644 -D %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
# install icon
install -p -m 0644 -D %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.ico
# install binary
install -m 0755 %{name} %{buildroot}%{_bindir}
%files
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.ico
%{_datadir}/applications/%{name}.desktop
%changelog