%define gitexecdir %{_libexecdir}/git
Name: git
-Version: 1.8.1.3
+Version: 2.0.1
Release: 0
License: GPL-2.0
Summary: Fast, scalable, distributed revision control system
Url: http://git-scm.com
-Group: Development/Tools
+Group: Platform Development/Utilities
Source: %{name}-%{version}.tar.gz
Source1001: git.manifest
BuildRequires: asciidoc
%package core
Summary: Core git tools
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: less
Requires: openssh
Requires: perl-Error
%package svn
Summary: Git tools for importing Subversion repositories
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: git-core = %{version}
Requires: subversion
Requires: subversion-perl
%package cvs
Summary: Git tools for importing CVS repositories
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: cvs
Requires: cvsps
Requires: git-core = %{version}
%package arch
Summary: Git tools for importing Arch repositories
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: git-core = %{version}
# Requires: tla
%package email
Summary: Git tools for sending email
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: git-core = %{version}
# For sending mails over secure SMTP:
Recommends: perl-Authen-SASL
%package daemon
Summary: Simple Server for Git Repositories
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires(pre): /usr/sbin/useradd
Requires: git-core = %{version}
'git-daemon-export-ok' file.
%package -n gitk
Summary: Git revision tree visualiser
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: git-core = %{version}
Requires: tk >= 8.4
Supplements: packageand(git-core:tk)
%package gui
Summary: Grapical tool for common git operations
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: git-core = %{version}
Requires: tk >= 8.4
Supplements: packageand(git-core:tk)
%package web
Summary: Git Web Interface
-Group: Development/Tools
+Group: Platform Development/Utilities
Requires: git-core = %{version}
Supplements: packageand(git-core:apache2)
The apache2 configuration contained in this package installs a virtual
directory /git/ that calls the cgi script.
-%package remote-helpers
-Summary: Python package for remote helper scripts
-Group: Development/Tools
-Requires: git-core = %{version}
-Requires: python
-
-%description remote-helpers
-This package contains the building blocks for remote helpers written in Python.
%prep
%setup -q
cp %{SOURCE1001} .
+
%build
cat > .make <<'EOF'
#!/bin/bash
%check
make %{?_smp_mflags} test
+
%install
./.make install install-doc
###
-(find %{buildroot}%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk|daemon|gui" | sed -e s@^%{buildroot}@@) > bin-man-doc-files
-(find %{buildroot}%{gitexecdir} -mindepth 1 | grep -vE "archimport|svn|cvs|email|gitk|daemon|gui" | sed -e s@^%{buildroot}@@) >> bin-man-doc-files
+(find %{buildroot}%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk|daemon|gui" | sed -e s@^%{buildroot}@@) > bin-man-doc-files
+(find %{buildroot}%{gitexecdir} -mindepth 1 | grep -vE "archimport|svn|cvs|email|gitk|daemon|gui" | sed -e s@^%{buildroot}@@) >> bin-man-doc-files
(find %{buildroot}%{_mandir} %{buildroot}/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk|daemon|gui" | sed -e s@^%{buildroot}@@ -e 's/$/*/' ) >> bin-man-doc-files
( pushd perl
perl Makefile.PL
rm -rf %{buildroot}/usr/lib/perl5/site_perl
%perl_process_packlist
find %{buildroot}/%{_mandir} -type f -print0 | xargs -0 chmod 644
-find %{buildroot}/%python_sitelib/ -type f -name *.pyc -print0 | xargs -0 rm
install -m 644 -D contrib/completion/git-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/git.sh
-sed -i "s#$RPM_BUILD_ROOT##g" %{buildroot}/%{gitexecdir}/git-remote-testgit
%find_lang %{name}
cat %{name}.lang >>bin-man-doc-files
# use symlinks instead of hardlinks in sub-commands
rm -rf %{buildroot}/Documentation/*.html
rm -rf %{buildroot}/Documentation/*.txt
-%fdupes -s %{buildroot}
+%fdupes -s %{buildroot}/%{_prefix}
%files
%{_datadir}/git-gui
%{_mandir}/man1/*gui*.1*
-%files remote-helpers
-%manifest %{name}.manifest
-%python_sitelib/*
-
%files core -f bin-man-doc-files
%manifest %{name}.manifest
%license COPYING
%{perl_vendorlib}/Git/
%{perl_vendorlib}/Git/*.pm
%{perl_vendorarch}/auto/Git/
-%attr(0644, root, root) %{_sysconfdir}/bash_completion.d/git.sh
-
-%changelog
+%attr(0644, root, root) %config %{_sysconfdir}/bash_completion.d/git.sh