This commit is contained in:
parent
cbdb432029
commit
86aaceb23f
10
apache2-gitweb.conf
Normal file
10
apache2-gitweb.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Alias /git/ "/usr/share/git-web/"
|
||||||
|
|
||||||
|
<Directory "/usr/share/git-web">
|
||||||
|
Options ExecCGI
|
||||||
|
AllowOverride None
|
||||||
|
AddHandler cgi-script .cgi
|
||||||
|
DirectoryIndex gitweb.cgi
|
||||||
|
Order allow,deny
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 20 15:18:40 CEST 2008 - lnussel@suse.de
|
||||||
|
|
||||||
|
- install gitweb icons, style sheet and README (bnc#359882)
|
||||||
|
- build using V=1 so use of cflags can be verified by brp scripts
|
||||||
|
- fix build using --without docs
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 7 16:40:38 CEST 2008 - dmueller@suse.de
|
Mon Apr 7 16:40:38 CEST 2008 - dmueller@suse.de
|
||||||
|
|
||||||
|
32
git.spec
32
git.spec
@ -14,12 +14,13 @@
|
|||||||
Name: git
|
Name: git
|
||||||
BuildRequires: asciidoc curl-devel libopenssl-devel sgml-skel xmlto
|
BuildRequires: asciidoc curl-devel libopenssl-devel sgml-skel xmlto
|
||||||
Version: 1.5.4.5
|
Version: 1.5.4.5
|
||||||
Release: 1
|
Release: 21
|
||||||
Summary: Fast, scalable, distributed revision control system
|
Summary: Fast, scalable, distributed revision control system
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: Development/Tools/Version Control
|
Group: Development/Tools/Version Control
|
||||||
Url: http://git.or.cz
|
Url: http://git.or.cz
|
||||||
Source0: http://kernel.org/pub/software/scm/git/%name-%{version}.tar.bz2
|
Source0: http://kernel.org/pub/software/scm/git/%name-%{version}.tar.bz2
|
||||||
|
Source1: apache2-gitweb.conf
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: git-core = %{version} git-svn = %{version} git-cvs = %{version}
|
Requires: git-core = %{version} git-svn = %{version} git-cvs = %{version}
|
||||||
Requires: git-arch = %{version} git-email = %{version} gitk = %{version}
|
Requires: git-arch = %{version} git-email = %{version} gitk = %{version}
|
||||||
@ -157,20 +158,28 @@ make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
GITWEB_CONFIG="/etc/gitweb.conf" \
|
GITWEB_CONFIG="/etc/gitweb.conf" \
|
||||||
GITWEB_PROJECTROOT="/srv/git" \
|
GITWEB_PROJECTROOT="/srv/git" \
|
||||||
WITH_OWN_SUBPROCESS_PY=YesPlease NO_EXPAT=1 \
|
WITH_OWN_SUBPROCESS_PY=YesPlease NO_EXPAT=1 \
|
||||||
|
V=1 \
|
||||||
prefix=%{_prefix} mandir=%{_mandir} \
|
prefix=%{_prefix} mandir=%{_mandir} \
|
||||||
all %{!?without_docs: doc} %{?jobs:-j %jobs}
|
all %{!?_without_docs: doc} %{?jobs:-j %jobs}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease NO_EXPAT=1 \
|
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease NO_EXPAT=1 \
|
||||||
prefix=%{_prefix} mandir=%{_mandir} \
|
prefix=%{_prefix} mandir=%{_mandir} \
|
||||||
install %{!?_without_docs: install-doc}
|
install %{!?_without_docs: install-doc}
|
||||||
install -d ${RPM_BUILD_ROOT}/srv/git
|
install -d ${RPM_BUILD_ROOT}/srv/git
|
||||||
install -d ${RPM_BUILD_ROOT}/srv/www/cgi-bin
|
### git-web
|
||||||
cp gitweb/gitweb.cgi $RPM_BUILD_ROOT/srv/www/cgi-bin/gitweb.cgi
|
cp gitweb/INSTALL INSTALL.gitweb
|
||||||
|
cp gitweb/README README.gitweb
|
||||||
|
install -d ${RPM_BUILD_ROOT}/usr/share/git-web
|
||||||
|
install -d ${RPM_BUILD_ROOT}/etc/apache2/conf.d
|
||||||
|
install -m 755 gitweb/gitweb.cgi $RPM_BUILD_ROOT/usr/share/git-web/gitweb.cgi
|
||||||
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/apache2/conf.d/gitweb.conf
|
||||||
|
for i in git-favicon.png git-logo.png gitweb.css; do
|
||||||
|
install -m 644 gitweb/$i $RPM_BUILD_ROOT/usr/share/git-web
|
||||||
|
done
|
||||||
|
###
|
||||||
(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
|
(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
|
||||||
%if %{!?_without_docs:1}0
|
|
||||||
(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
|
(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
|
||||||
%endif
|
|
||||||
( pushd perl
|
( pushd perl
|
||||||
perl Makefile.PL
|
perl Makefile.PL
|
||||||
make -f perl.mak DESTDIR=${RPM_BUILD_ROOT} install_vendor
|
make -f perl.mak DESTDIR=${RPM_BUILD_ROOT} install_vendor
|
||||||
@ -227,7 +236,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_datadir}/git-core/
|
%{_datadir}/git-core/
|
||||||
/srv/git/
|
/srv/git/
|
||||||
/srv/www/cgi-bin/gitweb.cgi
|
|
||||||
%doc README COPYING Documentation/*.txt
|
%doc README COPYING Documentation/*.txt
|
||||||
%{!?_without_docs: %doc Documentation/*.html }
|
%{!?_without_docs: %doc Documentation/*.html }
|
||||||
/var/adm/perl-modules/%{name}
|
/var/adm/perl-modules/%{name}
|
||||||
@ -236,8 +244,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{perl_vendorarch}/auto/Git/
|
%{perl_vendorarch}/auto/Git/
|
||||||
/usr/share/git-gui
|
/usr/share/git-gui
|
||||||
/etc/bash_completion.d/git
|
/etc/bash_completion.d/git
|
||||||
|
#TODO: split into subpackage
|
||||||
|
%doc README.gitweb INSTALL.gitweb
|
||||||
|
%dir /etc/apache2
|
||||||
|
%dir /etc/apache2/conf.d
|
||||||
|
%config(noreplace) /etc/apache2/conf.d/gitweb.conf
|
||||||
|
/usr/share/git-web
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 20 2008 lnussel@suse.de
|
||||||
|
- install gitweb icons, style sheet and README (bnc#359882)
|
||||||
|
- build using V=1 so use of cflags can be verified by brp scripts
|
||||||
|
- fix build using --without docs
|
||||||
* Mon Apr 07 2008 dmueller@suse.de
|
* Mon Apr 07 2008 dmueller@suse.de
|
||||||
- update to 1.5.4.5:
|
- update to 1.5.4.5:
|
||||||
* http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.5.4.5.txt
|
* http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.5.4.5.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user