git/git.spec

395 lines
13 KiB
RPMSpec
Raw Normal View History

#
# spec file for package git (Version 1.5.3.8)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: git
BuildRequires: asciidoc curl-devel libopenssl-devel sgml-skel xmlto
Version: 1.5.3.8
Release: 8
Summary: Fast, scalable, distributed revision control system
License: GPL v2 or later
Group: Development/Tools/Version Control
Url: http://git.or.cz
Source0: http://kernel.org/pub/software/scm/git/%name-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: git-core = %{version} git-svn = %{version} git-cvs = %{version}
Requires: git-arch = %{version} git-email = %{version} gitk = %{version}
%description
Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations and
full access to internals.
This package itself only provides the README of git but with the
packages it requires, it brings you a complete Git environment
including GTK and email interfaces and tools for importing source code
repositories from other revision control systems such as subversion,
CVS, and GNU arch.
Authors:
--------
Linus Torvalds <torvalds@osdl.org>
%package core
Summary: Core git tools
Group: Development/Tools/Version Control
Requires: rsync, curl, less, openssh
%description core
Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations and
full access to internals.
These are the core tools with minimal dependencies.
Authors:
--------
Linus Torvalds <torvalds@osdl.org>
Junio C Hamano <junkio@cox.net>
%package svn
Summary: Git tools for importing Subversion repositories
Group: Development/Tools/Version Control
Requires: git-core = %{version}, subversion
Requires: subversion-perl
%description svn
Tools for importing Subversion repositories to the Git version control
system.
Authors:
--------
Linus Torvalds <torvalds@osdl.org>
Junio C Hamano <junkio@cox.net>
%package cvs
Summary: Git tools for importing CVS repositories
Group: Development/Tools/Version Control
Requires: git-core = %{version}, cvs, cvsps, perl-DBD-SQLite
%description cvs
Tools for importing CVS repositories to the Git version control system.
Authors:
--------
Linus Torvalds <torvalds@osdl.org>
Junio C Hamano <junkio@cox.net>
%package arch
Summary: git-arch - Git tools for importing Arch repositories
Group: Development/Tools/Version Control
Requires: git-core = %{version}, tla
%description arch
Tools for importing GNU Arch repositories to the GIT version control
system.
Authors:
--------
Linus Torvalds <torvalds@osdl.org>
Junio C Hamano <junkio@cox.net>
%package email
Summary: Git tools for sending email
Group: Development/Tools/Version Control
Requires: git-core = %{version}
%description email
Email interface for the GIT version control system.
Authors:
--------
Linus Torvalds <torvalds@osdl.org>
Junio C Hamano <junkio@cox.net>
%package -n gitk
Summary: Git revision tree visualiser
Group: Development/Tools/Version Control
Requires: git-core = %{version}, tk >= 8.4
%description -n gitk
Grapical tool for visualization of revision trees of projects
maintained in the Git version control system. It name gitk indicates
that it's written using the Tk Widget set.
A simple Tk based graphical interface for common Git operations is
found in the package git-gui.
Authors:
--------
Linus Torvalds <torvalds@osdl.org>
Junio C Hamano <junkio@cox.net>
%prep
%setup -q
%build
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
GITWEB_CONFIG="/etc/gitweb.conf" \
GITWEB_PROJECTROOT="/srv/git" \
WITH_OWN_SUBPROCESS_PY=YesPlease NO_EXPAT=1 \
prefix=%{_prefix} mandir=%{_mandir} \
all %{!?without_docs: doc} %{?jobs:-j %jobs}
%install
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease NO_EXPAT=1 \
prefix=%{_prefix} mandir=%{_mandir} \
install %{!?_without_docs: install-doc}
install -d ${RPM_BUILD_ROOT}/srv/git
install -d ${RPM_BUILD_ROOT}/srv/www/cgi-bin
cp gitweb/gitweb.cgi $RPM_BUILD_ROOT/srv/www/cgi-bin/gitweb.cgi
(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
%endif
( pushd perl
perl Makefile.PL
make -f perl.mak DESTDIR=${RPM_BUILD_ROOT} install_vendor
)
rm -rf ${RPM_BUILD_ROOT}/usr/lib/perl5/site_perl
%perl_process_packlist
find $RPM_BUILD_ROOT/%_mandir -type f -print0 | xargs -0 chmod 644
install -m 644 -D contrib/completion/git-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d/git
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
%files svn
%defattr(-,root,root)
%{_bindir}/*svn*
%doc Documentation/*svn*.txt
%{!?_without_docs: %{_mandir}/man1/*svn*.1*}
%{!?_without_docs: %doc Documentation/*svn*.html }
%files cvs
%defattr(-,root,root)
%doc Documentation/*git-cvs*.txt
%{_bindir}/*cvs*
%{!?_without_docs: %{_mandir}/man1/*cvs*.1*}
%{!?_without_docs: %doc Documentation/*git-cvs*.html }
%files arch
%defattr(-,root,root)
%doc Documentation/git-archimport.txt
%{_bindir}/git-archimport
%{!?_without_docs: %{_mandir}/man1/git-archimport.1*}
%{!?_without_docs: %doc Documentation/git-archimport.html }
%files email
%defattr(-,root,root)
%doc Documentation/*email*.txt
%{_bindir}/*email*
%{!?_without_docs: %{_mandir}/man1/*email*.1*}
%{!?_without_docs: %doc Documentation/*email*.html }
%files -n gitk
%defattr(-,root,root)
%doc Documentation/*gitk*.txt
%{_bindir}/*gitk*
%{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
%{!?_without_docs: %doc Documentation/*gitk*.html }
%files core -f bin-man-doc-files
%defattr(-,root,root)
%{_datadir}/git-core/
/srv/git/
/srv/www/cgi-bin/gitweb.cgi
%doc README COPYING Documentation/*.txt
%{!?_without_docs: %doc Documentation/*.html }
/var/adm/perl-modules/%{name}
%{perl_vendorlib}/Error.pm
%{perl_vendorlib}/Git.pm
%{perl_vendorarch}/auto/Git/
/usr/share/git-gui
/etc/bash_completion.d/git
%changelog
* Mon Jan 28 2008 mmarek@suse.de
- added libopenssl-devel to BuildRequires to fix build
* Wed Jan 09 2008 schwab@suse.de
- Update to version 1.5.3.8.
* Some documentation used "email.com" as an example domain.
* git-svn fix to handle funky branch and project names going over
http/https correctly.
* git-svn fix to tone down a needlessly alarming warning message.
* git-clone did not correctly report errors while fetching over http.
* git-send-email added redundant Message-Id: header to the outgoing
e-mail when the patch text already had one.
* a read-beyond-end-of-buffer bug in configuration file updater was fixed.
* git-grep used to show the same hit repeatedly for unmerged paths.
* After amending the patch title in "git-am -i", the command did not
report the patch it applied with the updated title.
* Tue Jan 08 2008 crrodriguez@suse.de
- git-cvsserver was unusable, it produced a perl failed-compilation error
due to missing dependency on perl-DBD-Sqlite.
- update to version 1.5.3.7
* git-send-email added 8-bit contents to the payload without
marking it as 8-bit in a CTE header.
* "git-bundle create a.bndl HEAD" dereferenced the symref and
did not record the ref as 'HEAD'; this prevented a bundle
from being used as a normal source of git-clone.
* The code to reject nonsense command line of the form
"git-commit -a paths..." and "git-commit --interactive
paths..." were broken.
* Adding a signature that is not ASCII-only to an original
commit that is ASCII-only would make the result non-ASCII.
"git-format-patch -s" did not mark such a message correctly
with MIME encoding header.
* git-add sometimes did not mark the resulting index entry
stat-clean. This affected only cases when adding the
contents with the same length as the previously staged
contents, and the previous staging made the index entry
"racily clean".
* git-commit did not honor GIT_INDEX_FILE the user had in the
environment.
* When checking out a revision, git-checkout did not report where the
updated HEAD is if you happened to have a file called HEAD in the
work tree.
* "git-rev-list --objects" mishandled a tree that points at a
submodule.
* "git cvsimport" was not ready for packed refs that "git gc" can
produce and gave incorrect results.
* Many scripted Porcelains were confused when you happened to have a
file called "HEAD" in your work tree.
* Wed Nov 28 2007 dmueller@suse.de
- update to 1.5.3.6:
* various smaller bugfixes
- remove requires on release (#305826)
- install bash completion (#336848)
* Tue Oct 09 2007 dmueller@suse.de
- update to 1.5.3.4:
* submodule support
* many new features and bugfixes
* Tue Aug 07 2007 dmueller@suse.de
- update to 1.5.2.4:
* "git checkout" failed to switch back and forth between
branches, one of which has "frotz -> xyzzy" symlink and
file "xyzzy/filfre", while the other one has a file
"frotz/filfre".
* "git prune" used to segfault upon seeing a commit that is
referred to by a tree object (aka "subproject").
* "git diff --name-status --no-index" mishandled an added file.
* "git apply --reverse --whitespace=warn" still complained
about whitespaces that a forward application would have
introduced.
* Thu Jul 05 2007 dmueller@suse.de
- Update to 1.5.2.3:
* fix many segfaults with the SVN gateway
* various bugfixes
* Fri May 18 2007 dmueller@suse.de
- Update to 1.5.1.4:
* GIT <-> SVN gateway
* New porcelain, much improved index handling
* git-config
* Bare repositories refuse commands that need a working tree
* packed ref support
* 3-way merges can be done without rcs
* python dependency dropped
* Sat Nov 18 2006 pbaudis@suse.cz
- Fix build failure from previous change (trivial omission)
* Fri Nov 17 2006 pbaudis@suse.cz
- Fix git-arch package containing git-archive and git-upload-archive
[#222074]
* Fri Nov 17 2006 pbaudis@suse.cz
- Upgrade to git-1.4.3.4 - only few bugfixes, most importantly
git-apply wouldn't apply creation/deletion patches
* Tue Nov 07 2006 ro@suse.de
- fix permissions for manpages
* Sat Oct 28 2006 meissner@suse.de
- use RPM_OPT_FLAGS also in %%install make
* Thu Oct 26 2006 pbaudis@suse.cz
- Upgrade to git-1.4.3.3 - bugfixes release
* Thu Oct 19 2006 pbaudis@suse.cz
- Update to git-1.4.3 - UI improvements, speedups, random new
features (e.g. git-daemon name-based virtual hosting support),
basic Git.pm
- Fixes build failures due to asciidoc incompatibilities
* Tue Jul 25 2006 pbaudis@suse.cz
- Update to git-1.4.1.1 - includes gitweb, many bugfixes, some
commands are converted from shell to C, aliasing support,
documentation improvements and so on.
- Junio's patch got applied upstream.
- Pre-create /srv/git for bare Git repositories hosting.
- Install gitweb to /srv/www/cgi-bin pre-configured to look
for packages at /srv/git.
* Mon May 15 2006 pbaudis@suse.cz
- Update to git-core-1.3.1 - git-cvsserver pserver interface,
.git/refs/remotes branches support, blame/annotate tools,
builtin diff, faster and better rename detection and number
of other stuff.
- Add Junio's patch for saner handling of symlink refs. This is
an important bugfix since without this, it is impossible to
bisect behind kernel linux-v2.6.15-g117a93d.
- Olaf Hering's cutnpaste patch got applied upstream.
* Mon Mar 13 2006 ro@suse.de
- change requires from "openssh-clients" to "openssh"
(former does not exist)
* Fri Mar 10 2006 pbaudis@suse.cz
- Add Olaf Hering's patch for easier cut'n'pasting.
* Wed Mar 08 2006 pbaudis@suse.cz
- Update to git-core 1.2.4.
- This is a security fix: there was a buffer overflow when checking
out a tree with an insanely long symlink. (No Bugzilla id.)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 pbaudis@suse.cz
- Fix the specfile build (no expat and asciidoc, xmlto problems)
* Tue Jan 17 2006 pbaudis@suse.cz
- Update to git-core 1.1.3.
- Modify the specfile so that it looks more like the stock one.
- Split bits to subpackages
* Sun Dec 04 2005 schwab@suse.de
- Fix embedded paths.
* Thu Oct 06 2005 schwab@suse.de
- Don't build documentation in parallel.
* Mon Sep 19 2005 schwab@suse.de
- Update to git-core 0.99.7.
- Install manpages.
* Fri Aug 05 2005 kasievers@suse.de
- New version 0.99.3git20050905
rename git to git-core, to match the upstream package name
* Sun Jul 03 2005 kasievers@suse.de
- New version 0.7git20050703
* Thu Jun 30 2005 kasievers@suse.de
- New version 20050630
* Fri Jun 24 2005 kasievers@suse.de
- New version 20050624
* Sun Jun 12 2005 kay.sievers@suse.de
- New version 20050612
* Thu Jun 02 2005 kay.sievers@suse.de
- Split git/Cogito into separate packages
- Update git to version 20050602
* Fri May 20 2005 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Specfile cleanup.
* Fri May 20 2005 mmj@suse.de
- %%_libdir -> FHS libexec
* Fri May 20 2005 skh@suse.de
- initial package