1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Development/Tools
11 url = http://git-scm.com/
13 summary = Fast Version Control System.
16 Git is a fast, scalable, distributed revision control system with an
17 unusually rich command set that provides both high-level operations
18 and full access to internals.
21 source_dl = http://git-core.googlecode.com/files/
30 perl-ExtUtils-MakeMaker
37 echo "CFLAGS = %{CFLAGS}" > %{DIR_APP}/config.mak
38 echo "BLK_SHA1 = 1" >> %{DIR_APP}/config.mak
39 echo "NEEDS_CRYPTO_WITH_SSL = 1" >> %{DIR_APP}/config.mak
40 echo "NO_PYTHON = 1" >> %{DIR_APP}/config.mak
41 echo "NO_TCLTK = 1" >> %{DIR_APP}/config.mak
42 echo "ETC_GITCONFIG = /etc/gitconfig" >> %{DIR_APP}/config.mak
43 echo "DESTDIR = %{BUILDROOT}" >> %{DIR_APP}/config.mak
44 echo "INSTALL = install -p" >> %{DIR_APP}/config.mak
45 echo "GITWEB_PROJECTROOT = /var/lib/git" >> %{DIR_APP}/config.mak
46 echo "htmldir = /usr/share/doc/%{thisapp}" >> %{DIR_APP}/config.mak
47 echo "prefix = /usr" >> %{DIR_APP}/config.mak
48 echo "gitwebdir = /var/www/git" >> %{DIR_APP}/config.mak
49 echo "gitexecdir = lib/git-core" >> %{DIR_APP}/config.mak
51 # Remove shebang from bash-completion script.
52 sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash
56 make %{PARALLELISMFLAGS}
59 make_install_targets += INSTALLDIRS=vendor
63 make install-doc DESTDIR=%{BUILDROOT}
65 # Install bash completion file.
66 mkdir -pv %{BUILDROOT}%{sysconfdir}/bash_completion.d
67 install -v -m 644 contrib/completion/git-completion.bash \
68 %{BUILDROOT}%{sysconfdir}/bash_completion.d/git
70 # Create folder for git-daemon.
71 mkdir -pv %{BUILDROOT}%{sharedstatedir}/git
73 # Create folder for gitweb.
74 mkdir -pv %{BUILDROOT}%{sysconfdir}/httpd/conf.d
76 # Install config files for gitweb.
77 install -pm 0664 %{DIR_SOURCE}/gitweb.conf \
78 %{BUILDROOT}%{sysconfdir}/gitweb.conf
80 install -pm 0644 %{DIR_SOURCE}/git.conf.httpd \
81 %{BUILDROOT}%{sysconfdir}/httpd/conf.d/git.conf
86 # Define %{gitcoredir} to have a more handy name.
87 gitcoredir = %{prefix}/lib/git-core
99 package %{name}-daemon
100 summary = Git protocol daemon.
102 The git daemon for supporting git:// access to git repositories.
110 %{gitcoredir}/git-daemon
111 %{mandir}/man1/git-daemon*
112 %{sharedstatedir}/git
116 package %{name}-gitweb
119 summary = Simple web interface to git repositories.
121 Simple web interface to track changes in git repositories
129 %{sysconfdir}/gitweb.conf
130 %{sysconfdir}/httpd/conf.d/git.conf
134 %{sysconfdir}/gitweb.conf
135 %{sysconfdir}/httpd/conf.d/git.conf
136 %{mandir}/man1/gitweb*
137 %{mandir}/man5/gitweb*
138 %{localstatedir}/www/git
143 summary = Git tools for importing Subversion repositories.
144 description = %{summary}
158 summary = Git tools for importing CVS repositories.
159 description = %{summary}
166 %{bindir}/git-cvsserver
176 summary = Git tools for working with Perforce depots.
177 description = %{summary}
185 %{gitcoredir}mergetools/p4merge
190 package %{name}-email
191 summary = Git tools for sending emails.
192 description = %{summary}
200 %{gitcoredir}/git-send-email
201 %{mandir}/man1/git-send-email*
208 summary = Perl interface to Git.
209 description = %{summary}
218 %{perl_vendorlib}/*.pm
219 %{perl_vendorlib}/Git/*.pm
226 summary = Perl interface to Git::SVN.
227 description = %{summary}
234 %{mandir}/man3/Git::SVN*
235 %{perl_vendorlib}/Git/SVN*.pm
236 %{perl_vendorlib}/Git/SVN/
240 package %{name}-debuginfo