# # 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/ # %define skia_version m126-0.74.2 %define wuffs_commit e3f919ccfe3ef542cfc983a82146070258fb57f8 Name: neovide Version: 0.13.3 Release: 0 Summary: Neovim gui License: MIT URL: https://github.com/neovide/neovide Source0: %{name}-%{version}.tar.zst Source1: vendor.tar.zst Source2: https://github.com/rust-skia/skia/archive/m126-0.74.2/skia-%{skia_version}.tar.gz Source3: https://github.com/google/wuffs-mirror-release-c/archive/%{wuffs_commit}/wuffs-%{wuffs_commit}.tar.gz BuildRequires: cargo-packaging BuildRequires: clang BuildRequires: gcc-c++ BuildRequires: gn BuildRequires: ninja BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(zlib) %description No Nonsense Neovim Client in Rust %prep %setup -q -a 1 -a 2 -a 3 mkdir -p skia-%{skia_version}/third_party/externals/ mv wuffs-mirror-release-c-%{wuffs_commit} skia-%{skia_version}/third_party/externals/wuffs %build # Don't build neovide here, otherwise it will be rebuild during install and fail to build. %install export SKIA_SOURCE_DIR=${PWD}/skia-%{skia_version} export SKIA_USE_SYSTEM_LIBRARIES=true export SKIA_NINJA_COMMAND=ninja export SKIA_GN_COMMAND=gn %{cargo_install} install -Dm644 assets/neovide.desktop %{buildroot}%{_datadir}/applications/neovide.desktop install -Dm644 assets/neovide.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/neovide.svg %files %doc README.md %license LICENSE %{_bindir}/neovide %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/scalable %dir %{_datadir}/icons/hicolor/scalable/apps %{_datadir}/icons/hicolor/scalable/apps/neovide.svg %{_datadir}/applications/neovide.desktop %changelog