mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 01:42:18 +00:00
47 lines
1.2 KiB
RPMSpec
47 lines
1.2 KiB
RPMSpec
%define debug_package %nil
|
|
|
|
Name: neovide
|
|
Version: 0.14.0
|
|
Release: 1%?dist
|
|
Summary: No Nonsense Neovim Client in Rust
|
|
License: MIT
|
|
URL: https://neovide.dev/
|
|
Source0: https://github.com/neovide/neovide/archive/refs/tags/%version.tar.gz
|
|
Requires: fontconfig freetype libglvnd
|
|
Requires: neovim > 0.9.5
|
|
BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24 cmake gtk3 python3 SDL2
|
|
BuildRequires: fontconfig-devel freetype-devel libX11-xcb libX11-devel libstdc++-static libstdc++-devel
|
|
ExclusiveArch: x86_64
|
|
|
|
%description
|
|
This is a simple graphical user interface for Neovim.
|
|
Where possible there are some graphical improvements,
|
|
but functionally it should act like the terminal UI.
|
|
|
|
%prep
|
|
%autosetup
|
|
%cargo_prep_online
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%dnl install -Dm755 -t %buildroot%_bindir target/rpm/%name
|
|
install -Dm644 -t %buildroot%_datadir/applications/ assets/%name.desktop
|
|
for px in 16 32 48 256; do
|
|
install -Dm644 assets/%name-${px}x${px}.png %buildroot%_datadir/icons/hicolor/${px}x${px}/apps/%name.png
|
|
done
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%_bindir/%name
|
|
%_datadir/icons/hicolor/*/apps/%name.png
|
|
%_datadir/applications/%name.desktop
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|