%global snapshotdate 20140410 %global commit ad89dc2611d9b631aa7f905e9266f290c8a21c8f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global checkout %{snapshotdate}git%{shortcommit} Name: dex Version: 0 Release: 0.2.%{checkout}%{?dist} Summary: Dextrous text editor License: GPLv2 URL: https://github.com/tihirvon/dex Source0: %{url}/archive/%{commit}/dex-%{commit}.tar.gz %description dex is a small and easy to use text editor. Colors and bindings can be fully customized to your liking. It has some features useful to programmers, like ctags support and it can parse compiler errors, but it does not aim to become an IDE. %prep %setup -qn dex-%{commit} %build cat > Config.mk << END CC = gcc CFLAGS = %{optflags} INSTALL = install -p prefix = %{_prefix} bindir = %{_bindir} datadir = %{_datadir} mandir = %{_mandir} END make %{?_smp_mflags} V=1 %install %make_install %files %doc README FAQ COPYING %{_bindir}/%{name} %{_datadir}/%{name}/ %{_mandir}/man1/dex.1* %{_mandir}/man7/dex-syntax.7* %changelog * Thu Apr 10 2014 Craig Barnes - 0-0.2.20140410gitad89dc2 - Enable verbose build, so that flags are fully visible during compilation - Simplify %%files section * Thu Apr 10 2014 Craig Barnes - 0-0.1.20140410gitad89dc2 - Initial package