2 # - -rt subpackage? -lang subpackage?
3 Summary: Vim-fork focused on extensibility and agility
8 Group: Applications/Editors/Vim
9 Source0: https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz
10 URL: https://neovim.io/
11 Source1: %{name}.desktop
15 BuildRequires: hicolor-icon-theme
16 BuildRequires: jemalloc-devel
17 BuildRequires: libmsgpack-devel >= 1.2.0
18 BuildRequires: libmsgpackc-devel >= 1.2.0
19 BuildRequires: libstdc++-devel
20 BuildRequires: libuv-devel
21 BuildRequires: lua51-BitOp
22 BuildRequires: lua51-LPeg
23 BuildRequires: lua51-mpack
24 BuildRequires: luajit-devel
25 BuildRequires: pkgconfig
26 BuildRequires: pkgconfig(termkey)
27 BuildRequires: pkgconfig(unibilium)
28 BuildRequires: pkgconfig(vterm)
29 BuildRequires: update-desktop-files
30 Suggests: python-neovim
31 Suggests: python3-neovim
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Neovim is a refactor - and sometimes redactor - in the tradition of
37 Vim, which itself derives from Stevie. It is not a rewrite, but a
38 continuation and extension of Vim. Many rewrites, clones, emulators
39 and imitators exist; some are very clever, but none are Vim. Neovim
40 strives to be a superset of Vim, notwithstanding some intentionally
41 removed misfeatures; excepting those few and carefully-considered
42 excisions, Neovim is Vim. It is built for users who want the good
43 parts of Vim, without compromise, and more.
48 # Remove __DATE__ and __TIME__.
49 BUILD_TIME=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%{H}:%{M}')
50 BUILD_DATE=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%{b} %{d} %{Y}')
51 sed -i "s/__TIME__/\"$BUILD_TIME\"/" $(grep -rl '__TIME__')
52 sed -i "s/__DATE__/\"$BUILD_DATE\"/" $(grep -rl '__DATE__')
56 -DLUA_PRG=%{_bindir}/lua \
58 -DLUAJIT_USE_BUNDLED=OFF \
64 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
68 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/neovim.desktop
69 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/neovim.svg
74 rm -rf $RPM_BUILD_ROOT
77 %update_desktop_database
78 %icon_theme_cache_post
81 %update_desktop_database
82 %icon_theme_cache_postun
85 %defattr(644,root,root,755)
86 %doc BACKERS.md CONTRIBUTING.md LICENSE README.md
87 %attr(755,root,root) %{_bindir}/nvim
89 %{_desktopdir}/%{name}.desktop
90 %{_iconsdir}/hicolor/*/apps/%{name}.svg
91 %{_mandir}/man1/nvim.1*