summaryrefslogtreecommitdiff
path: root/contrib/kakoune.spec
diff options
context:
space:
mode:
authorJiří Konečný <DragonLichcz@gmail.com>2015-03-24 21:13:27 +0100
committerJiří Konečný <DragonLichcz@gmail.com>2015-03-24 21:36:00 +0100
commit925efb9c857936d26229fff1196e52dec0699ebc (patch)
tree79bf47ec444ab2724af944a5795918db9ae2b3b1 /contrib/kakoune.spec
parent48b2e43cb8a437815c2c072859ee693ed51e42ea (diff)
Add Fedora support to kakoune project
Kakoune is now distributed to Fedora 21/22/rawhide by the copr repository. Add spec file which is used to build kakoune.
Diffstat (limited to 'contrib/kakoune.spec')
-rw-r--r--contrib/kakoune.spec47
1 files changed, 47 insertions, 0 deletions
diff --git a/contrib/kakoune.spec b/contrib/kakoune.spec
new file mode 100644
index 00000000..0216358a
--- /dev/null
+++ b/contrib/kakoune.spec
@@ -0,0 +1,47 @@
+# 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: 1.%{shortcommit}git%{?dist}
+Summary: Vim inspired editor
+
+License: Unlicense
+URL: https://github.com/mawww/kakoune
+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
+make test
+
+%install
+cd src
+%make_install PREFIX=/usr
+
+%changelog
+* 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
+
+%files
+%doc
+%{_bindir}/*
+%{_datadir}/doc/kak/*
+%{_datadir}/kak/*