2010-09-27 16:02:12 +02:00
|
|
|
#
|
2011-02-25 09:47:03 +01:00
|
|
|
# spec file for package cgit
|
2010-09-27 16:02:12 +02:00
|
|
|
#
|
2011-02-25 09:47:03 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-09-27 16:02:12 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2011-06-07 09:13:36 +02:00
|
|
|
%define git_version 1.7.5.4
|
2010-09-27 16:02:12 +02:00
|
|
|
|
|
|
|
Name: cgit
|
|
|
|
Url: http://hjemli.net/git/cgit/
|
|
|
|
License: GPLv2
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
AutoReqProv: on
|
2011-04-21 13:26:23 +02:00
|
|
|
Version: 0.9
|
2011-06-07 09:13:47 +02:00
|
|
|
Release: 3
|
2010-09-27 16:02:12 +02:00
|
|
|
Summary: A web frontend for git repositories
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: git-%{git_version}.tar.bz2
|
|
|
|
Source2: cgitrc
|
2011-04-21 13:26:23 +02:00
|
|
|
Patch: cgit-optflags.diff
|
2011-06-07 09:13:36 +02:00
|
|
|
Patch1: cgit-git-1.7.5.x-build-fix.diff
|
2010-09-27 16:02:12 +02:00
|
|
|
# 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
|
2011-04-21 13:26:23 +02:00
|
|
|
%patch -p1
|
2011-06-07 09:13:36 +02:00
|
|
|
%patch1 -p1
|
2010-09-27 16:02:12 +02:00
|
|
|
rm -rf git
|
|
|
|
mv git-%{git_version} git
|
|
|
|
|
|
|
|
%build
|
2011-04-21 13:26:23 +02:00
|
|
|
make V=1
|
2010-09-27 16:02:12 +02:00
|
|
|
|
|
|
|
%install
|
2011-04-21 13:26:23 +02:00
|
|
|
make install DESTDIR="%{buildroot}" CGIT_SCRIPT_PATH=/srv/www/htdocs/cgit
|
|
|
|
make install-man DESTDIR="%{buildroot}"
|
2010-09-27 16:02:12 +02:00
|
|
|
|
|
|
|
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
|
2011-04-21 13:26:23 +02:00
|
|
|
rm -rf %{buildroot}
|
2010-09-27 16:02:12 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-04-21 13:26:23 +02:00
|
|
|
%doc README COPYING
|
|
|
|
%doc %{_mandir}/man5/cgitrc.5.gz
|
2010-09-27 16:02:12 +02:00
|
|
|
%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
|
2011-04-21 13:26:23 +02:00
|
|
|
/usr/lib/cgit
|
2010-09-27 16:02:12 +02:00
|
|
|
%config(noreplace) /etc/cgitrc
|
|
|
|
|
|
|
|
%changelog
|