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 = https://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 = https://www.kernel.org/pub/software/scm/git/
33 perl-ExtUtils-MakeMaker
41 cat <<EOF > config.mak
44 NEEDS_CRYPTO_WITH_SSL = 1
46 ETC_GITCONFIG = %{sysconfdir}/gitconfig
47 DESTDIR = %{BUILDROOT}
50 NO_CROSS_DIRECTORY_HARDLINKS = 1
51 PYTHON_PATH = %{python3}
53 gitexecdir = lib/git-core
54 htmldir = %{datadir}/doc
58 # Remove shebang from bash-completion script.
59 sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash
63 make %{PARALLELISMFLAGS}
66 make_install_targets += INSTALLDIRS=vendor
70 make install-doc DESTDIR=%{BUILDROOT}
72 # Install bash completion file.
73 mkdir -pv %{BUILDROOT}%{sysconfdir}/bash_completion.d
74 install -v -m 644 contrib/completion/git-completion.bash \
75 %{BUILDROOT}%{sysconfdir}/bash_completion.d/git
77 # Remove git-daemon related files
78 rm -rvf %{BUILDROOT}/usr/lib/git-core/git-daemon
79 rm -rvf %{BUILDROOT}%{mandir}/man1/git-daemon*
81 # Remove SVN related files
82 rm -rvf %{BUILDROOT}/usr/lib/git-core/git-svn
83 rm -rvf %{BUILDROOT}%{mandir}/man1/git-svn*
84 rm -rvf %{BUILDROOT}%{perl_vendorlib}/Git/SVN*.pm
85 rm -rvf %{BUILDROOT}%{perl_vendorlib}/Git/SVN/
86 rm -rvf %{BUILDROOT}%{datadir}/perl5/Git/SVN/
87 rm -rvf %{BUILDROOT}%{datadir}/perl5/Git/SVN*.pm
89 # Remove CVS related files
90 rm -rvf %{BUILDROOT}%{bindir}/git-cvsserver
91 rm -rvf %{BUILDROOT}/usr/lib/git-core/*cvs*
92 rm -rvf %{BUILDROOT}%{mandir}/man1/*cvs*
93 rm -rvf %{BUILDROOT}%{mandir}/man7/*cvs*
95 # Remove Perforce depots related files.
96 rm -rvf %{BUILDROOT}/usr/lib/git-core/*p4*
97 rm -rvf %{BUILDROOT}/usr/lib/git-core/mergetools/p4*
98 rm -rvf %{BUILDROOT}%{mandir}/man1/*p4*
100 # Fix file permissions of the hook examples.
101 find %{BUILDROOT}%{datadir}/git-core/ -type f -iname "*.sample" \
102 -exec chmod 644 {} \;
120 package %{name}-email
121 summary = Git tools for sending emails.
122 description = %{summary}
132 /usr/lib/git-core/git-send-email
133 %{mandir}/man1/git-send-email*
140 summary = Perl interface to Git.
141 description = %{summary}
150 %{perl_vendorlib}/*.pm
151 %{perl_vendorlib}/Git/*.pm
156 package %{name}-debuginfo