Last active
January 2, 2022 14:18
-
-
Save juanpabloaj/62cd3f1a5bad97e19e1e1e9bc5dc2672 to your computer and use it in GitHub Desktop.
neovim centos 6 spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yum install -y rpm-build rpmdevtools yum-utils centos-release-scl-rh | |
# rpmdev-setuptree | |
# mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp} | |
# spectool -g -R rpmbuild/SPECS/neovim.spec | |
# yum-builddep -y rpmbuild/SPECS/neovim.spec | |
# source scl_source enable devtoolset-6 | |
# rpmbuild -ba rpmbuild/SPECS/neovim.spec | |
%define build_timestamp %(date +"%Y%m%d%H%M") | |
%define _topdir /root/rpmbuild | |
%define name neovim | |
%define release nightly.%{build_timestamp}%{?dist} | |
%define version 0.4.0 | |
%define buildroot %{_topdir}/neovim-nightly | |
#BuildRoot: %{buildroot} | |
Summary: Neovim | |
License: Apache | |
Name: %{name} | |
Version: %{version} | |
Release: %{release} | |
#Source: neovim-nightly.tar.gz | |
Source0: https://github.com/neovim/neovim/archive/nightly.tar.gz | |
Prefix: /usr | |
Group: Development/Tools | |
BuildRequires: centos-release-scl-rh | |
BuildRequires: devtoolset-6-gcc | |
BuildRequires: libtool | |
BuildRequires: autoconf | |
BuildRequires: automake | |
BuildRequires: cmake | |
BuildRequires: gcc | |
BuildRequires: gcc-c++ | |
BuildRequires: make | |
BuildRequires: pkgconfig | |
BuildRequires: unzip | |
BuildRequires: patch | |
BuildRequires: gettext | |
%description | |
Neovim, Vim-fork focused on extensibility and usability | |
%prep | |
%setup -n neovim-nightly | |
%build | |
make | |
%install | |
make CMAKE_INSTALL_PREFIX=$RPM_BUILD_ROOT/usr/local install | |
%files | |
%defattr(-,root,root) | |
/usr/local/bin/nvim | |
/usr/local/share |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment