]>
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 |
b40e81d4 | 7 | version = 1.8.1 |
5019890f | 8 | release = 4 |
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 | |
9099585c SS |
69 | |
70 | # Create folder for git-daemon. | |
71 | mkdir -pv %{BUILDROOT}%{sharedstatedir}/git | |
72 | ||
73 | # Create folder for gitweb. | |
74 | mkdir -pv %{BUILDROOT}%{sysconfdir}/httpd/conf.d | |
75 | ||
76 | # Install config files for gitweb. | |
77 | install -pm 0664 %{DIR_SOURCE}/gitweb.conf \ | |
78 | %{BUILDROOT}%{sysconfdir}/gitweb.conf | |
79 | ||
80 | install -pm 0644 %{DIR_SOURCE}/git.conf.httpd \ | |
81 | %{BUILDROOT}%{sysconfdir}/httpd/conf.d/git.conf | |
a5248e72 | 82 | end |
802ea3af | 83 | end |
e2c1801f | 84 | |
802ea3af | 85 | packages |
9099585c SS |
86 | # Define %{gitcoredir} to have a more handy name. |
87 | gitcoredir = %{prefix}/lib/git-core | |
88 | ||
802ea3af MT |
89 | package %{name} |
90 | requires | |
91 | less | |
92 | openssh-clients | |
93 | rsync | |
94 | /usr/bin/vi | |
95 | end | |
1f9bc2f0 | 96 | |
5019890f MT |
97 | recommends |
98 | %{name}-email | |
99 | end | |
1f9bc2f0 MT |
100 | end |
101 | ||
9099585c SS |
102 | package %{name}-daemon |
103 | summary = Git protocol daemon. | |
104 | description | |
105 | The git daemon for supporting git:// access to git repositories. | |
106 | end | |
107 | ||
108 | requires | |
109 | git=%{thisver} | |
110 | end | |
111 | ||
112 | files | |
113 | %{gitcoredir}/git-daemon | |
114 | %{mandir}/man1/git-daemon* | |
115 | %{sharedstatedir}/git | |
116 | end | |
117 | end | |
118 | ||
119 | package %{name}-gitweb | |
120 | arch = noarch | |
121 | ||
122 | summary = Simple web interface to git repositories. | |
123 | description | |
124 | Simple web interface to track changes in git repositories | |
125 | end | |
126 | ||
127 | requires | |
128 | git=%{thisver} | |
129 | end | |
130 | ||
131 | configfiles | |
132 | %{sysconfdir}/gitweb.conf | |
133 | %{sysconfdir}/httpd/conf.d/git.conf | |
134 | end | |
135 | ||
136 | files | |
137 | %{sysconfdir}/gitweb.conf | |
138 | %{sysconfdir}/httpd/conf.d/git.conf | |
139 | %{mandir}/man1/gitweb* | |
140 | %{mandir}/man5/gitweb* | |
141 | %{localstatedir}/www/git | |
142 | end | |
143 | end | |
144 | ||
145 | package %{name}-svn | |
146 | summary = Git tools for importing Subversion repositories. | |
147 | description = %{summary} | |
148 | ||
149 | requires | |
150 | git=%{thisver} | |
151 | subversion | |
152 | end | |
153 | ||
154 | files | |
155 | %{gitcoredir}/*svn* | |
156 | %{mandir}/man1/*svn* | |
157 | end | |
158 | end | |
159 | ||
160 | package %{name}-cvs | |
161 | summary = Git tools for importing CVS repositories. | |
162 | description = %{summary} | |
163 | ||
164 | requires | |
165 | git=%{thisver} | |
166 | end | |
167 | ||
168 | files | |
169 | %{bindir}/git-cvsserver | |
170 | %{gitcoredir}/*cvs* | |
171 | %{mandir}/man1/*cvs* | |
172 | %{mandir}/man7/*cvs* | |
173 | end | |
174 | end | |
175 | ||
176 | package %{name}-p4 | |
177 | arch = noarch | |
178 | ||
179 | summary = Git tools for working with Perforce depots. | |
180 | description = %{summary} | |
181 | ||
182 | requires | |
183 | git=%{thisver} | |
184 | end | |
185 | ||
186 | files | |
187 | %{gitcoredir}/*p4* | |
188 | %{gitcoredir}mergetools/p4merge | |
189 | %{mandir}/man1/*p4* | |
190 | end | |
191 | end | |
192 | ||
193 | package %{name}-email | |
194 | summary = Git tools for sending emails. | |
195 | description = %{summary} | |
196 | ||
197 | requires | |
198 | git=%{thisver} | |
199 | perl-Git=%{thisver} | |
5019890f MT |
200 | perl(Authen::SASL) |
201 | perl(Net::SMTP::SSL) | |
9099585c SS |
202 | end |
203 | ||
204 | files | |
205 | %{gitcoredir}/git-send-email | |
206 | %{mandir}/man1/git-send-email* | |
207 | end | |
208 | end | |
209 | ||
210 | package perl-Git | |
211 | arch = noarch | |
212 | ||
213 | summary = Perl interface to Git. | |
214 | description = %{summary} | |
215 | ||
216 | requires | |
217 | git=%{thisver} | |
218 | end | |
219 | ||
220 | files | |
221 | %{mandir}/man3/Git* | |
222 | %{perl_archlib} | |
223 | %{perl_vendorlib}/*.pm | |
224 | %{perl_vendorlib}/Git/*.pm | |
225 | end | |
226 | end | |
227 | ||
228 | package perl-Git-SVN | |
229 | arch = noarch | |
230 | ||
231 | summary = Perl interface to Git::SVN. | |
232 | description = %{summary} | |
233 | ||
234 | requires | |
235 | git=%{thisver} | |
236 | end | |
237 | ||
238 | files | |
239 | %{mandir}/man3/Git::SVN* | |
6ba1bd00 | 240 | %{perl_vendorlib}/Git/SVN*.pm |
9099585c SS |
241 | %{perl_vendorlib}/Git/SVN/ |
242 | end | |
243 | end | |
244 | ||
1f9bc2f0 MT |
245 | package %{name}-debuginfo |
246 | template DEBUGINFO | |
802ea3af MT |
247 | end |
248 | end |