2011-10-18 13:42:50 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-06-11 13:54:00 +02:00
|
|
|
%define git_version 2.4.3
|
2011-10-18 13:42:50 +02:00
|
|
|
|
|
|
|
Name: cgit
|
2015-05-11 21:15:08 +02:00
|
|
|
Version: 0.11.2
|
2014-10-16 21:36:22 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A web frontend for git repositories
|
2012-11-20 12:18:29 +01:00
|
|
|
Url: http://git.zx2c4.com/cgit/
|
2012-02-14 09:35:50 +01:00
|
|
|
License: GPL-2.0
|
2015-05-11 21:15:08 +02:00
|
|
|
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
|
2011-10-18 13:42:50 +02:00
|
|
|
# Requirements for cgit
|
2015-05-11 21:15:08 +02:00
|
|
|
BuildRequires: gnu-crypto
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libzip-devel
|
2011-10-18 13:42:50 +02:00
|
|
|
# Requirements for cgitrc man page generation
|
2015-05-11 21:15:08 +02:00
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: xz
|
2011-10-18 13:42:50 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2015-05-11 21:15:08 +02:00
|
|
|
This is an attempt to create a fast web interface for the Git SCM, using a
|
|
|
|
builtin cache to decrease server I/O pressue.
|
2011-10-18 13:42:50 +02:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Lars Hjemli (hjemli@gmail.com)
|
|
|
|
|
|
|
|
%prep
|
2015-05-11 21:15:08 +02:00
|
|
|
%setup -qa2
|
|
|
|
%patch0 -p1
|
2011-10-18 13:42:50 +02:00
|
|
|
rm -rf git
|
2015-05-11 21:15:08 +02:00
|
|
|
ln -s git-%git_version git
|
2011-10-18 13:42:50 +02:00
|
|
|
|
|
|
|
%build
|
2015-05-11 21:15:08 +02:00
|
|
|
make V=1 prefix="%_prefix" %{?_smp_mflags}
|
2011-10-18 13:42:50 +02:00
|
|
|
|
|
|
|
%install
|
2015-05-11 21:15:08 +02:00
|
|
|
make install install-man DESTDIR="%buildroot" prefix="%_prefix" \
|
|
|
|
CGIT_SCRIPT_PATH="/srv/www/htdocs/cgit"
|
2011-10-18 13:42:50 +02:00
|
|
|
|
2015-05-11 21:15:08 +02:00
|
|
|
mkdir -p "%buildroot/srv/www/cgi-bin/cgit/"
|
2011-10-18 13:42:50 +02:00
|
|
|
mv "%{buildroot}"/srv/www/{htdocs,cgi-bin}/cgit/cgit.cgi
|
|
|
|
|
|
|
|
mkdir -p "%{buildroot}"/etc
|
2015-05-11 21:15:08 +02:00
|
|
|
cp %{SOURCE9} "%{buildroot}"/etc/cgitrc
|
2011-10-18 13:42:50 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README COPYING
|
2015-05-11 21:15:08 +02:00
|
|
|
%_mandir/man5/cgitrc.5.gz
|
|
|
|
/srv/www/cgi-bin/cgit/
|
|
|
|
/srv/www/htdocs/cgit/
|
|
|
|
/usr/lib/cgit/
|
2011-10-18 13:42:50 +02:00
|
|
|
%config(noreplace) /etc/cgitrc
|
|
|
|
|
|
|
|
%changelog
|