%global commit 308953ecbf22dd967f8c6647852835286d8548e8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: neovim Version: 0.0.0 Release: 1.git%{shortcommit}%{?dist} Summary: vim for the 21st century License: ASL 2.0 URL: http://neovim.org/ Source0: https://github.com/neovim/neovim/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz BuildRequires: cmake gcc-c++ BuildRequires: libuv-devel >= 0.11.1 BuildRequires: ncurses-devel luajit-devel lua msgpack-devel BuildRequires: lua-lpeg lua-cmsgpack %description %prep %setup -q -n %{name}-%{commit} mkdir build %build pushd build %cmake ../ -DUSE_BUNDLED=OFF -DLUA_PRG=%{_bindir}/lua popd %install pushd build %make_install popd %files %doc LICENSE README.md %{_bindir}/nvim %changelog * Wed Jul 9 2014 Igor Gnatenko - 0.0.0-1.git308953e - Initial package