From fd84b96a4d104755d0d6beea74c74c011aa75da0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mar 20 2019 09:18:52 +0000 Subject: luajit is not available on all platform and fails to build on aarch64 --- diff --git a/neovim.spec b/neovim.spec index 4c8142e..18ec100 100644 --- a/neovim.spec +++ b/neovim.spec @@ -1,5 +1,9 @@ %bcond_with jemalloc +%ifarch %{arm} %{ix86} x86_64 %{mips} %bcond_without luajit +%else +%bcond_with luajit +%endif Name: neovim Version: 0.3.4 @@ -12,9 +16,7 @@ Url: http://neovim.io Source0: https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz Source1: sysinit.vim Source2: spec-template -%if ! %{with luajit} Patch0: neovim-0.1.7-bitop.patch -%endif BuildRequires: gcc-c++ BuildRequires: cmake @@ -63,7 +65,11 @@ excisions, Neovim is Vim. It is built for users who want the good parts of Vim, without compromise, and more. %prep -%autosetup -p1 +%setup -q + +%if %{without luajit} +%patch0 -p1 -b .bitop +%endif %build mkdir -p build