LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cgit.spec of Package cgit (Project devel:tools:scm)

# spec file for package cgit
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%define git_version	2.6.1

Name:           cgit
Version:        0.11.2
Release:        0
Summary:        A web frontend for git repositories
Url:            http://git.zx2c4.com/cgit/
License:        GPL-2.0
Group:          Development/Tools/Version Control

#Git-Clone:	git://git.zx2c4.com/cgit
Source:         http://git.zx2c4.com/cgit/snapshot/%name-%version.tar.xz
Source2:        https://www.kernel.org/pub/software/scm/git/git-%git_version.tar.xz
Source3:        https://www.kernel.org/pub/software/scm/git/git-%git_version.tar.sign
Source4:        %name.keyring
Source9:        cgitrc
Patch0:         cgit-optflags.diff
# Requirements for cgit
BuildRequires:  gnu-crypto
BuildRequires:  libopenssl-devel
BuildRequires:  libzip-devel
# Requirements for cgitrc man page generation
BuildRequires:  asciidoc
BuildRequires:  libxslt
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is an attempt to create a fast web interface for the Git SCM, using a
builtin cache to decrease server I/O pressue.

    Lars Hjemli (hjemli@gmail.com)

%setup -qa2
%patch0 -p1
rm -rf git
ln -s git-%git_version git

make V=1 prefix="%_prefix" %{?_smp_mflags}

make install install-man DESTDIR="%buildroot" prefix="%_prefix" \

mkdir -p "%buildroot/srv/www/cgi-bin/cgit/"
mv "%{buildroot}"/srv/www/{htdocs,cgi-bin}/cgit/cgit.cgi

mkdir -p "%buildroot/%_sysconfdir"
cp %{SOURCE9} "%buildroot/%_sysconfdir/cgitrc"

%config(noreplace) %_sysconfdir/cgitrc