# Directory where the application icon will be installed %global xdg_icon_dir %{_datadir}/icons/hicolor/scalable/apps # Directory where the desktop entry will be installed %global xdg_application_dir %{_datadir}/applications Name: neovide Summary: No Nonsense Neovim Client in Rust License: MIT URL: https://github.com/Kethku/neovide Source0: neovide.tar.gz Source1: build-macros.inc # Include macros generated by the build script. This must happen after Source1 # is defined. %include %{SOURCE1} # These macros are defined in the included file, so we have to wait to set # version and release. Version: %{build_version} Release: %{build_release} # Tools BuildRequires: cargo BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: gcc-c++ # Libraries BuildRequires: SDL2-devel BuildRequires: expat-devel BuildRequires: fontconfig-devel BuildRequires: freetype-devel BuildRequires: libXext-devel BuildRequires: openssl-devel BuildRequires: vulkan-devel # Base Requires: google-noto-sans-mono-fonts Requires: neovim >= 0.4.0 # Libraries Requires: SDL2 Requires: expat Requires: fontconfig Requires: freetype Requires: libXext Requires: openssl Requires: vulkan %description This is a simple graphical user interface for Neovim. Where possible there are some graphical improvements, but it should act functionally like the terminal UI. %prep %setup %build cargo build --release --verbose %install install --mode=755 --directory "%{buildroot}%{_bindir}" install --mode=755 'target/release/neovide' "%{buildroot}%{_bindir}/neovide" install --mode=755 --directory "%{buildroot}%{xdg_icon_dir}" install --mode=644 'assets/neovide.svg' "%{buildroot}%{xdg_icon_dir}/neovide.svg" install --mode=755 --directory "%{buildroot}%{xdg_application_dir}" desktop-file-install --dir="%{buildroot}%{xdg_application_dir}" \ 'assets/neovide.desktop' %files %license LICENSE %{_bindir}/neovide %{xdg_icon_dir}/neovide.svg %{xdg_application_dir}/neovide.desktop %changelog * %{build_timestamp} Chris Bouchard - Nightly build from git main