%bcond_with verbose # verbose build (V=1)
#
Summary: cgit - a fast webinterface to git
-Summary(pl.UTF-8): cgit - szybki interfejs webowy do git-a
+Summary(pl.UTF-8): cgit - szybki interfejs WWW do gita
Name: cgit
-Version: 0.8.1
-Release: 0.0.1
+Version: 0.8.3.1
+Release: 2
License: GPL v2
Group: Development/Tools
Source0: http://hjemli.net/git/cgit/snapshot/%{name}-%{version}.tar.bz2
-# Source0-md5: 654850ded01dd2f6b732aa7c1b0856dc
-Patch0: %{name}-system-git.patch
-Patch1: %{name}-override-cflags.patch
+# Source0-md5: cc61989f702ce77e56137be67e01f3ed
Source1: %{name}.conf
Source2: %{name}-repo.conf
Source3: %{name}-httpd.conf
+Patch0: %{name}-system-git.patch
+Patch1: %{name}-override-cflags.patch
URL: http://hjemli.net/git/cgit
-BuildRequires: git-core-devel >= 1.6.0.5-2
+BuildRequires: git-core-devel >= 1.7.1-2
BuildRequires: openssl-devel
+BuildConflicts: zlib-devel = 1.2.5-1
Requires: webapps
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Cgit is a CGI application implemented in C: it's basically (yet)
-another git command, used to generate html. Cgit is not forking: all
+another git command, used to generate HTML. Cgit is not forking: all
git operations are performed by linking with libgit.a. It uses a
-built-in cache: the generated html is stored on disk for the benefit
+built-in cache: the generated HTML is stored on disk for the benefit
of later requests.
%description -l pl.UTF-8
-Cgit to: napisana w C aplikacja CGI - zasadniczo jest to (kolejny)
-interfejs do git-a, generujący kod html. Cgit jest aplikacją
+Cgit to napisana w C aplikacja CGI - zasadniczo jest to (kolejny)
+interfejs do gita, generujący kod HTML. Cgit jest aplikacją
nieforkującą - wszystkie operacje na repozytoriach wykonywane są z
użyciem biblioteki. Aplikacja ta korzysta z cache - wygenerowany kod
-htl zapisany jest na dysku dla kolejnych żądań.
+HTML zapisany jest na dysku dla kolejnych żądań.
%prep
%setup -q
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -I/usr/include/git-core" \
LDFLAGS="%{rpmldflags}" \
+ LIBDIR=%{_libdir} \
CGIT_CONFIG="%{webappdir}/%{webapp}.conf" \
CGIT_SCRIPT_PATH="%{cgibindir}" \
%{?with_verbose:V=1}