2 changed files with 103 additions and 0 deletions
@ -0,0 +1,15 @@
|
||||
Index: src/graph.c
|
||||
--- src/graph.c.orig 2014-04-30 14:18:39.000000000 +0200
|
||||
+++ src/graph.c 2014-04-30 20:31:45.081144542 +0200
|
||||
@@ -15,6 +15,11 @@
|
||||
#include "tig/util.h"
|
||||
#include "tig/graph.h"
|
||||
|
||||
+#undef false
|
||||
+#define false 0
|
||||
+#undef true
|
||||
+#define true !false
|
||||
+
|
||||
DEFINE_ALLOCATOR(realloc_graph_columns, struct graph_column, 32)
|
||||
DEFINE_ALLOCATOR(realloc_graph_symbols, struct graph_symbol, 1)
|
||||
|
||||
@ -0,0 +1,88 @@
|
||||
## |
||||
## tig.spec -- OpenPKG RPM Package Specification |
||||
## Copyright (c) 2000-2014 OpenPKG Foundation e.V. <http://openpkg.net/> |
||||
## |
||||
## Permission to use, copy, modify, and distribute this software for |
||||
## any purpose with or without fee is hereby granted, provided that |
||||
## the above copyright notice and this permission notice appear in all |
||||
## copies. |
||||
## |
||||
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
||||
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||||
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
||||
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
||||
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
## SUCH DAMAGE. |
||||
## |
||||
|
||||
# package information |
||||
Name: tig |
||||
Summary: Git Text-Mode Interface |
||||
URL: http://jonas.nitro.dk/tig/ |
||||
Vendor: Jonas Fonseca |
||||
Packager: OpenPKG Foundation e.V. |
||||
Distribution: OpenPKG Community |
||||
Class: EVAL |
||||
Group: SCM |
||||
License: GPL |
||||
Version: 2.0.1 |
||||
Release: 20140430 |
||||
|
||||
# list of sources |
||||
Source0: http://jonas.nitro.dk/tig/releases/tig-%{version}.tar.gz |
||||
Patch0: tig.patch |
||||
|
||||
# build information |
||||
BuildPreReq: OpenPKG, openpkg >= 20100101 |
||||
PreReq: OpenPKG, openpkg >= 20100101, git |
||||
BuildPreReq: ncurses, libiconv, readline |
||||
PreReq: ncurses, libiconv, readline |
||||
|
||||
%description |
||||
Tig is an NCurses-based text-mode interface for Git. It functions |
||||
mainly as a Git repository browser, but can also assist in staging |
||||
changes for commit at chunk level and act as a pager for output from |
||||
various Git commands. |
||||
|
||||
%track |
||||
prog tig = { |
||||
version = %{version} |
||||
url = http://jonas.nitro.dk/tig/releases/ |
||||
regex = tig-(__VER__)\.tar\.gz |
||||
} |
||||
|
||||
%prep |
||||
%setup -q |
||||
%patch -p0 |
||||
|
||||
%build |
||||
CC="%{l_cc}" \ |
||||
CFLAGS="%{l_cflags -O}" \ |
||||
CPPFLAGS="%{l_cppflags ncurses .}" \ |
||||
LDFLAGS="%{l_ldflags}" \ |
||||
./configure \ |
||||
--prefix=%{l_prefix} \ |
||||
--sysconfdir=%{l_prefix}/etc/tig \ |
||||
--mandir=%{l_prefix}/man \ |
||||
--with-libiconv=%{l_prefix} \ |
||||
--with-ncurses \ |
||||
--without-ncursesw |
||||
%{l_make} %{l_mflags} |
||||
|
||||
%install |
||||
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
||||
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
||||
%{l_files_std} \ |
||||
'%config %{l_prefix}/etc/tig/*' |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
|
||||
Loading…
Reference in new issue