SHA256
1
0
forked from pool/cgit

Accepting request 401784 from home:AndreasStieger:branches:devel:tools:scm

cgit 1.0

OBS-URL: https://build.opensuse.org/request/show/401784
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/cgit?expand=0&rev=28
This commit is contained in:
2016-06-13 22:47:25 +00:00
committed by Git OBS Bridge
parent db2b3d263a
commit be1b867b76
13 changed files with 37 additions and 911 deletions

View File

@@ -16,29 +16,23 @@
#
%define git_version 2.7.0
%define git_version 2.8.3
Name: cgit
Version: 0.12
Version: 1.0
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
#Git-Clone: https://git.zx2c4.com/cgit
Source: https://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
# PATCH-FIX-UPSTREAM fix remote code execution via buffer overflow (CVE-2016-2324, bsc#971328)
Patch12: 0012-http-push-stop-using-name_path.patch
Patch13: 0013-show_object_with_name-simplify-by-using-path_name.patch
Patch14: 0014-list-objects-convert-name_path-to-a-strbuf.patch
Patch15: 0015-list-objects-drop-name_path-entirely.patch
Patch16: 0016-list-objects-pass-full-pathname-to-callbacks.patch
# Requirements for cgit
BuildRequires: gnu-crypto
BuildRequires: libopenssl-devel
@@ -58,12 +52,6 @@ builtin cache to decrease server I/O pressue.
%patch0 -p1
rm -rf git
ln -s git-%git_version git
cd git
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%build
make V=1 prefix="%_prefix" %{?_smp_mflags}