2aa79abc71
- updated to git 1.7.7; see git changelog for more details - updated to 1.7.7: major update from 1.7.6.x, including i18n/l10n prepartion, updates of git-p4, gitweb, improved coloring, various updates of git-am, git-bisect, git-cherck-attr, etc. See Documentation/RelNotes/1.7.7.txt for details. (forwarded request 86877 from tiwai) OBS-URL: https://build.opensuse.org/request/show/86897 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=74
88 lines
2.3 KiB
RPMSpec
88 lines
2.3 KiB
RPMSpec
#
|
|
# 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
%define git_version 1.7.7
|
|
|
|
Name: cgit
|
|
Url: http://hjemli.net/git/cgit/
|
|
License: GPLv2
|
|
Group: Development/Libraries/C and C++
|
|
AutoReqProv: on
|
|
Version: 0.9
|
|
Release: 9
|
|
Summary: A web frontend for git repositories
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source1: git-%{git_version}.tar.gz
|
|
Source2: cgitrc
|
|
Patch: cgit-optflags.diff
|
|
Patch1: cgit-git-1.7.5.x-build-fix.diff
|
|
Patch2: cgit-CVE-2011-2711-fix.diff
|
|
# Requirements for cgit
|
|
BuildRequires: gnu-crypto libopenssl-devel libzip-devel
|
|
# Requirements for cgitrc man page generation
|
|
BuildRequires: asciidoc libxslt
|
|
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.
|
|
|
|
Authors:
|
|
--------
|
|
Lars Hjemli (hjemli@gmail.com)
|
|
|
|
%prep
|
|
%setup -q
|
|
%setup -q -T -D -a 1
|
|
%patch -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
rm -rf git
|
|
mv git-%{git_version} git
|
|
|
|
%build
|
|
make V=1
|
|
|
|
%install
|
|
make install DESTDIR="%{buildroot}" CGIT_SCRIPT_PATH=/srv/www/htdocs/cgit
|
|
make install-man DESTDIR="%{buildroot}"
|
|
|
|
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
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%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
|
|
%config(noreplace) /etc/cgitrc
|
|
|
|
%changelog
|