SHA256
1
0
forked from pool/cgit

Accepting request 305288 from home:jengelh:branches:devel:tools:scm

- Update to new upstream release 0.11.2
* addition of a Lua scripting engine
* fine-grained authentication support through the new Lua
  scripting system
* support for the "rawdiff" command was added
* sendfile() is now used when available (Linux systems) instead
  of a loop of read() and write(). This should significantly
  increase performance for high volume sites which make heavy use
  of the caching feature, as it saves copies to and from
  user-space.
* Caching granularity is now improved with the introduction of
  the cache-snapshot-ttl option, which allows configuration of
  the ttl for tarball and zip snapshots of repositories.
* When filtering in the index, make the sorting links point to
  the same filtered page of results
* Take into account leading slashes when comptuing links

OBS-URL: https://build.opensuse.org/request/show/305288
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/cgit?expand=0&rev=21
This commit is contained in:
2015-05-11 19:15:08 +00:00
committed by Git OBS Bridge
parent 6fb8e56506
commit ed042c7bcd
13 changed files with 228 additions and 254 deletions

View File

@@ -16,71 +16,67 @@
#
%define git_version 1.7.6.4
%define git_version 2.4.0
Name: cgit
Version: 0.9.1
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/Libraries/C and C++
Source0: %{name}-%{version}.tar.xz
Source1: git-%{git_version}.tar.gz
Source2: cgitrc
Patch: cgit-optflags.diff
Patch1: cgit-git-1.7.6_build_fix.patch
Patch3: cgit-fix-print-tree.diff
Patch4: cgit-fix-more-read_tree_recursive-invocations.diff
Patch5: cgit-CVE-2013-2117-disallow-directory-traversal.patch
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 libopenssl-devel libzip-devel
BuildRequires: gnu-crypto
BuildRequires: libopenssl-devel
BuildRequires: libzip-devel
# Requirements for cgitrc man page generation
BuildRequires: asciidoc libxslt xz
BuildRequires: asciidoc
BuildRequires: libxslt
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is an attempt to create a fast web interface for the git scm, using a
builtin cache to decrease server io-pressure.
This is an attempt to create a fast web interface for the Git SCM, using a
builtin cache to decrease server I/O pressue.
Authors:
--------
Lars Hjemli (hjemli@gmail.com)
%prep
%setup -q
%setup -q -T -D -a 1
%patch -p1
%patch1 -p1
%patch3
%patch4
%patch5 -p1
%setup -qa2
%patch0 -p1
rm -rf git
mv git-%{git_version} git
ln -s git-%git_version git
%build
make V=1 %{?_smp_mflags}
make V=1 prefix="%_prefix" %{?_smp_mflags}
%install
make install DESTDIR="%{buildroot}" CGIT_SCRIPT_PATH=/srv/www/htdocs/cgit
make install-man DESTDIR="%{buildroot}"
make install install-man DESTDIR="%buildroot" prefix="%_prefix" \
CGIT_SCRIPT_PATH="/srv/www/htdocs/cgit"
mkdir -p "%{buildroot}"/srv/www/cgi-bin/cgit/
mkdir -p "%buildroot/srv/www/cgi-bin/cgit/"
mv "%{buildroot}"/srv/www/{htdocs,cgi-bin}/cgit/cgit.cgi
mkdir -p "%{buildroot}"/etc
cp %{SOURCE2} "%{buildroot}"/etc/cgitrc
cp %{SOURCE9} "%{buildroot}"/etc/cgitrc
%files
%defattr(-,root,root)
%doc README COPYING
%doc %{_mandir}/man5/cgitrc.5.gz
%dir /srv/www/htdocs/cgit
%dir /srv/www/cgi-bin/cgit
/srv/www/cgi-bin/cgit/cgit.cgi
/srv/www/htdocs/cgit/cgit.css
/srv/www/htdocs/cgit/cgit.png
/usr/lib/cgit
%_mandir/man5/cgitrc.5.gz
/srv/www/cgi-bin/cgit/
/srv/www/htdocs/cgit/
/usr/lib/cgit/
%config(noreplace) /etc/cgitrc
%changelog