Skip to content

Instantly share code, notes, and snippets.

@jkonecny12
Last active May 11, 2016 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkonecny12/bb24546bb1e06400c809d50fa564b29e to your computer and use it in GitHub Desktop.
Save jkonecny12/bb24546bb1e06400c809d50fa564b29e to your computer and use it in GitHub Desktop.
Spec file for Kakoune builds
# TODO: automate this to get new GitHub version everytime
%global commit 48007d5de22f57175115fc72fe9cb592e6b0efb2
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: kakoune
Version: 0
Release: 2.%{shortcommit}git%{?dist}
Summary: Vim inspired editor
License: Unlicense
URL: http://kakoune.org/
Source0: https://github.com/mawww/kakoune/archive/%{commit}/kakoune-%{commit}.tar.gz
BuildRequires: boost-devel >= 1.50
BuildRequires: ncurses-devel >= 5.3
Requires: boost >= 1.50
Requires: ncurses-libs >= 5.3
%description
Kakoune is a code editor heavily inspired by Vim
%prep
%setup -qn %{name}-%{commit}
%build
cd src
make %{?_smp_mflags}
%check
cd src
LANG=en_US.utf8 make test
%install
cd src
%make_install PREFIX=/usr
%files
%doc
%{_bindir}/*
%{_datadir}/doc/kak/*
%{_datadir}/kak/*
%changelog
* Wed May 11 2016 jkonecny <jkonecny@redhat.com> - 0-208.20160511git84f62e6f
- Add LANG=en_US.UTF-8 to fix tests
- Update to git: 84f62e6f
* Tue Mar 24 2015 Jiri Konecny <jkonecny@redhat.com> 0-1.7eaa697git
- Add tests
* Tue Mar 17 2015 Jiri Konecny <jkonecny@redhat.com> 0-1.12a732dgit
- Create first rpm for kakoune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment