[packages/neovim] build with most of the system libs
glen
glen at pld-linux.org
Sat Sep 17 23:03:40 CEST 2016
commit 7d69921c818b6330734f98c3002e124fadff6005
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Sep 18 00:02:01 2016 +0300
build with most of the system libs
neovim.spec | 50 +++++++++++++++++++++++++++++---------------------
1 file changed, 29 insertions(+), 21 deletions(-)
---
diff --git a/neovim.spec b/neovim.spec
index 3b251bb..26ecdf7 100644
--- a/neovim.spec
+++ b/neovim.spec
@@ -7,7 +7,7 @@
Summary: Vim-fork focused on extensibility and agility
Name: neovim
Version: 0.1.5
-Release: 0.2
+Release: 0.4
License: Apache v2.0
Group: Applications/Editors/Vim
Source0: https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -22,15 +22,15 @@ BuildRequires: jemalloc-devel
BuildRequires: libstdc++-devel
BuildRequires: libtermkey-devel
BuildRequires: libuv-devel
-BuildRequires: msgpack-devel >= 1.2.0
+BuildRequires: libvterm-devel
+BuildRequires: msgpack-devel >= 1.1.0
BuildRequires: pkgconfig
-#BuildRequires: pkgconfig(vterm)
BuildRequires: rpmbuild(macros) >= 1.596
BuildRequires: unibilium-devel
%if %{with lua}
+BuildRequires: lua-lpeg
+BuildRequires: lua-mpack >= 1.0.2
BuildRequires: lua51-BitOp
-BuildRequires: lua51-LPeg
-BuildRequires: lua51-mpack
BuildRequires: luajit-devel
%endif
Requires: desktop-file-utils
@@ -41,8 +41,6 @@ Suggests: python3-neovim
Suggests: xsel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/local
-
%description
Neovim is a refactor - and sometimes redactor - in the tradition of
Vim, which itself derives from Stevie. It is not a rewrite, but a
@@ -65,30 +63,40 @@ sed -i "s/__DATE__/\"$BUILD_DATE\"/" $(grep -rl '__DATE__')
%endif
%build
-%if 0
+install -d .deps build
+cd .deps
%cmake \
- -DLUA_PRG=%{_bindir}/lua \
- -DUSE_BUNDLED=OFF \
- -DLUAJIT_USE_BUNDLED=OFF \
- -DENABLE_JEMALLOC=ON \
-\
- -DUSE_BUNDLED_JEMALLOC=ON \
- -DUSE_BUNDLED_UNIBILIUM=ON \
- -DUSE_BUNDLED_LIBTERMKEY=ON \
- -DUSE_BUNDLED_LIBVTERM=ON \
- -DUSE_BUNDLED_LIBUV=ON \
- -DUSE_BUNDLED_MSGPACK=ON \
+ -DUSE_BUNDLED=OFF \
+ -DUSE_BUNDLED_JEMALLOC=OFF \
+ -DUSE_BUNDLED_UNIBILIUM=OFF \
+ -DUSE_BUNDLED_LIBTERMKEY=OFF \
+ -DUSE_BUNDLED_LIBVTERM=OFF \
+ -DUSE_BUNDLED_LIBUV=OFF \
+ -DUSE_BUNDLED_MSGPACK=OFF \
-DUSE_BUNDLED_LUAJIT=ON \
-DUSE_BUNDLED_LUAROCKS=ON \
-DUSE_BUNDLED_LUV=ON \
+ ../third-party
+%{__make}
-%endif
+cd ../build
+%cmake \
+ -DLUA_PRG=/usr/bin/luajit \
+ -DENABLE_JEMALLOC=ON \
+ -DLUAJIT_USE_BUNDLED=OFF \
+ -DLIBUV_USE_BUNDLED=OFF \
+ -DMSGPACK_USE_BUNDLED=OFF \
+ -DUNIBILIUM_USE_BUNDLED=OFF \
+ -DLIBTERMKEY_USE_BUNDLED=OFF \
+ -DLIBVTERM_USE_BUNDLED=OFF \
+ -DJEMALLOC_USE_BUNDLED=OFF \
+ ..
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_iconsdir}/hicolor/scalable/apps}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/neovim.git/commitdiff/46240029af6be48964ef4129704801240bd56ef3
More information about the pld-cvs-commit
mailing list