]>
Commit | Line | Data |
---|---|---|
e2c1801f | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
e2c1801f MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = git |
edab1dd3 | 7 | version = 1.7.8.2 |
f50cc92e | 8 | release = 3 |
e2c1801f | 9 | |
802ea3af MT |
10 | groups = Development/Tools |
11 | url = http://git-scm.com/ | |
12 | license = GPLv2 | |
13 | summary = Fast Version Control System. | |
e2c1801f | 14 | |
802ea3af | 15 | description |
f50cc92e SS |
16 | Git is a fast, scalable, distributed revision control system with an |
17 | unusually rich command set that provides both high-level operations | |
e2c1801f | 18 | and full access to internals. |
802ea3af MT |
19 | end |
20 | ||
edab1dd3 | 21 | source_dl = http://git-core.googlecode.com/files/ |
802ea3af MT |
22 | |
23 | build | |
24 | requires | |
f50cc92e | 25 | asciidoc |
802ea3af MT |
26 | expat-devel |
27 | gettext | |
28 | libcurl-devel | |
29 | openssl-devel | |
1f9bc2f0 | 30 | perl-ExtUtils-MakeMaker |
802ea3af MT |
31 | perl-devel |
32 | zlib-devel | |
f50cc92e | 33 | xmlto |
802ea3af | 34 | end |
e2c1801f | 35 | |
802ea3af MT |
36 | prepare_cmds |
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 | |
a5248e72 MT |
50 | |
51 | # Remove shebang from bash-completion script. | |
52 | sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash | |
802ea3af | 53 | end |
e2c1801f | 54 | |
802ea3af MT |
55 | build |
56 | make %{PARALLELISMFLAGS} | |
57 | end | |
e2c1801f | 58 | |
802ea3af | 59 | make_install_targets += INSTALLDIRS=vendor |
a5248e72 MT |
60 | |
61 | install_cmds | |
f50cc92e SS |
62 | # Install man pages. |
63 | make install-doc DESTDIR=%{BUILDROOT} | |
64 | ||
a5248e72 MT |
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 | |
69 | end | |
802ea3af | 70 | end |
e2c1801f | 71 | |
802ea3af MT |
72 | packages |
73 | package %{name} | |
74 | requires | |
75 | less | |
76 | openssh-clients | |
77 | rsync | |
78 | /usr/bin/vi | |
79 | end | |
1f9bc2f0 MT |
80 | |
81 | end | |
82 | ||
83 | package %{name}-debuginfo | |
84 | template DEBUGINFO | |
802ea3af MT |
85 | end |
86 | end |