Summary: GIT - GNU Interactive Tools
Name: git
Version: 4.3.17
Release: 1
Copyright: GNU
Group: Utilities/File
Source: ftp://prep.ai.mit.edu:/pub/gnu/git-4.3.17.tar.gz
URL: http://www.cs.unh.edu/~tudor
Packager: Tudor Hulubei <tudor@cs.unh.edu>
BuildRoot: /var/tmp/git-root
Prereq: /sbin/install-info

%description
GIT is a set of interactive tools.  It contains an extensible file
system browser, an ascii/hex file viewer, a process viewer/killer and
some other related utilities and shell scripts.  It can be used to
increase the speed and efficiency of most of the daily tasks such as
copying and moving files and directories, invoking editors,
compressing and uncompressing files, creating and expanding archives,
compiling programs, sending mail, etc.

%prep
rm -rf $RPM_BUILD_ROOT

%setup

%build
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS='-s' ./configure --prefix=/usr
make

%install
make prefix=$RPM_BUILD_ROOT/usr/ install-strip
gzip -9nf $RPM_BUILD_ROOT/usr/info/git.info*

%files
%doc COPYING LSM NEWS PLATFORMS PROBLEMS README INSTALL
/usr/bin/*
/usr/man/man1/*
/usr/info/*
/usr/lib/git

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/install-info /usr/info/git.info.gz /usr/info/dir

%preun
if [ "$1" = 0 ]; then
    /sbin/install-info --delete /usr/info/git.info.gz /usr/info/dir
fi
