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
102 package %{name}-daemon
103 summary = Git protocol daemon.
105 The git daemon for supporting git:// access to git repositories.
113 %{gitcoredir}/git-daemon
114 %{mandir}/man1/git-daemon*
115 %{sharedstatedir}/git
119 package %{name}-gitweb
122 summary = Simple web interface to git repositories.
124 Simple web interface to track changes in git repositories
132 %{sysconfdir}/gitweb.conf
133 %{sysconfdir}/httpd/conf.d/git.conf
137 %{sysconfdir}/gitweb.conf
138 %{sysconfdir}/httpd/conf.d/git.conf
139 %{mandir}/man1/gitweb*
140 %{mandir}/man5/gitweb*
141 %{localstatedir}/www/git
146 summary = Git tools for importing Subversion repositories.
147 description = %{summary}
161 summary = Git tools for importing CVS repositories.
162 description = %{summary}
169 %{bindir}/git-cvsserver
179 summary = Git tools for working with Perforce depots.
180 description = %{summary}
188 %{gitcoredir}mergetools/p4merge
193 package %{name}-email
194 summary = Git tools for sending emails.
195 description = %{summary}
205 %{gitcoredir}/git-send-email
206 %{mandir}/man1/git-send-email*
213 summary = Perl interface to Git.
214 description = %{summary}
223 %{perl_vendorlib}/*.pm
224 %{perl_vendorlib}/Git/*.pm
231 summary = Perl interface to Git::SVN.
232 description = %{summary}
239 %{mandir}/man3/Git::SVN*
240 %{perl_vendorlib}/Git/SVN*.pm
241 %{perl_vendorlib}/Git/SVN/
245 package %{name}-debuginfo