]>
Commit | Line | Data |
---|---|---|
84013e7c | 1 | # |
891d0b05 | 2 | # Conditional build: |
f74aede9 JB |
3 | %bcond_without tests # don't perform make test |
4 | %bcond_with tests_cvs # perform tests which use CVS | |
843d1d47 | 5 | %bcond_without tests_svn # perform tests which use subversion |
f74aede9 | 6 | %bcond_without doc # skip building/packaging docs/manuals (takes some time) |
f1ced26c | 7 | %bcond_without pcre # perl-compatible regexes support |
cdeb0400 | 8 | |
89a476f8 | 9 | %include /usr/lib/rpm/macros.perl |
479de23d AM |
10 | Summary: Distributed version control system focused on speed, effectivity and usability |
11 | Summary(pl.UTF-8): Rozproszony system śledzenia treści skupiony na szybkości, wydajności i użyteczności | |
51c3b977 | 12 | Name: git-core |
5d132744 | 13 | Version: 1.9.0 |
d1d05a7a | 14 | Release: 2 |
51c3b977 | 15 | License: GPL v2 |
16 | Group: Development/Tools | |
5013f7fc | 17 | Source0: http://git-core.googlecode.com/files/git-%{version}.tar.gz |
5d132744 | 18 | # Source0-md5: e16c14b27c644b8e0dd72bdb5ff77450 |
be2ccf99 | 19 | Source1: %{name}-gitweb.conf |
814a047c | 20 | Source2: %{name}-gitweb-httpd.conf |
51ce768a KK |
21 | Source3: %{name}-gitweb-lighttpd.conf |
22 | Source4: %{name}.sysconfig | |
23 | Source5: %{name}.inet | |
24 | Source6: %{name}.init | |
642ee6ff | 25 | Source7: gitolite.pl |
6b1e62ae | 26 | Patch0: %{name}-tests.patch |
b2c254f3 | 27 | Patch1: %{name}-key-bindings.patch |
d12d8532 | 28 | Patch2: %{name}-sysconfdir.patch |
8ce45cec | 29 | Patch3: cherry-picked-commitlog.patch |
b11f61e5 | 30 | Patch4: %{name}-svn-exit-errors.patch |
e699dd89 | 31 | URL: http://git-scm.com/ |
fdf2ed38 | 32 | BuildRequires: autoconf >= 2.59 |
11856720 | 33 | BuildRequires: automake |
51c3b977 | 34 | BuildRequires: curl-devel |
115484e9 | 35 | BuildRequires: expat-devel |
72ec88fd | 36 | BuildRequires: gettext-devel |
51c3b977 | 37 | BuildRequires: openssl-devel |
202eeb4b | 38 | %{?with_pcre:BuildRequires: pcre-devel} |
0f1e5795 | 39 | BuildRequires: perl-Error > 0.15 |
51c3b977 | 40 | BuildRequires: perl-base |
db444c11 | 41 | BuildRequires: python-devel |
89a476f8 | 42 | BuildRequires: rpm-perlprov >= 4.1-13 |
c841a4fc | 43 | BuildRequires: rpm-pythonprov |
be2ccf99 | 44 | BuildRequires: rpmbuild(macros) >= 1.264 |
b64915e8 | 45 | BuildRequires: tcl |
51c3b977 | 46 | BuildRequires: zlib-devel |
08cc92d7 ER |
47 | %if %{with doc} |
48 | BuildRequires: asciidoc >= 7.1.2-3 | |
c841a4fc | 49 | BuildRequires: docbook-dtd45-xml |
08cc92d7 ER |
50 | BuildRequires: xmlto |
51 | %endif | |
2c50f007 | 52 | %if %{with tests} |
db032591 | 53 | %if %{with tests_cvs} |
dfed7e92 | 54 | # tests failed sometimes when using nserver/cvsnt client so enforce pure cvs here |
3554b1a3 | 55 | BuildRequires: cvs-gnu-client < 1.13 |
2c0376c9 | 56 | BuildRequires: cvs-gnu-client >= 1.12 |
db032591 | 57 | %endif |
843d1d47 | 58 | %{?with_tests_svn:BuildRequires: subversion} |
1b3085ff | 59 | Conflicts: pdksh < 5.2.14-46 |
2c50f007 | 60 | %endif |
3f245fc5 | 61 | Requires: coreutils |
11856720 | 62 | Requires: diffutils |
3f245fc5 AM |
63 | Requires: findutils |
64 | Requires: grep | |
11856720 | 65 | Requires: openssh-clients |
f266cd28 | 66 | Requires: perl-Error |
7a437e6a | 67 | Requires: perl-Git = %{version}-%{release} |
3f245fc5 | 68 | Requires: sed |
0d2db069 | 69 | Suggests: git-core-bzr |
26361b03 | 70 | Suggests: git-core-cvs |
0d2db069 ER |
71 | Suggests: git-core-hg |
72 | Suggests: git-core-p4 | |
26361b03 | 73 | Suggests: git-core-svn |
d82521ea ER |
74 | Suggests: less |
75 | Suggests: rsync | |
a77c0aad | 76 | Obsoletes: python-Git |
51c3b977 | 77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
78 | ||
19936745 AM |
79 | # html docs have links to txt files |
80 | %define _noautocompressdoc *.txt | |
81 | ||
be2ccf99 AG |
82 | %define webapp gitweb |
83 | %define webappdir %{_sysconfdir}/webapps/%{webapp} | |
84 | %define appdir %{_datadir}/%{webapp} | |
85 | %define cgibindir %{_prefix}/lib/cgi-bin | |
1db8400f | 86 | %define bash_compdir %{_datadir}/bash-completion/completions |
be2ccf99 | 87 | |
51c3b977 | 88 | %description |
89 | "git" can mean anything, depending on your mood. | |
90 | ||
d52424f5 | 91 | - random three-letter combination that is pronounceable, and not |
92 | actually used by any common UNIX command. The fact that it is a | |
93 | mispronunciation of "get" may or may not be relevant. | |
94 | - stupid. contemptible and despicable. simple. Take your pick from the | |
95 | dictionary of slang. | |
96 | - "global information tracker": you're in a good mood, and it actually | |
97 | works for you. Angels sing, and a light suddenly fills the room. | |
98 | - "goddamn idiotic truckload of sh*t": when it breaks | |
51c3b977 | 99 | |
c751087d | 100 | This is a stupid (but extremely fast) directory content manager. It |
51c3b977 | 101 | doesn't do a whole lot, but what it 'does' do is track directory |
102 | contents efficiently. | |
103 | ||
ea061c99 JR |
104 | %description -l pl.UTF-8 |
105 | "git" może oznaczać cokolwiek, w zależności od nastroju. | |
106 | ||
d52424f5 | 107 | - losową kombinację trzech liter, która jest wymawialna i właściwie |
108 | nie używana przez żadne popularne polecenie uniksowe. Fakt, że jest to | |
109 | błędna pisownia słowa "get" może mieć lub nie mieć znaczenia. | |
110 | - głupi, pogardliwy, prosty. Można wybrać ze słownika slangu. | |
111 | - "global information tracker" (narzędzie do globalnego śledzenia | |
112 | informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa. | |
113 | Anioły śpiewają, a światło niespodziewanie wypełnia pokój. | |
114 | - "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek | |
115 | g*) - kiedy się zepsuje. | |
ea061c99 JR |
116 | |
117 | Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej. | |
118 | Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości | |
c751087d JB |
119 | katalogu. |
120 | ||
a8655d02 ER |
121 | %package doc |
122 | Summary: Documentation for git-core | |
123 | Summary(pl.UTF-8): Dokumentacja do git-core | |
124 | Group: Documentation | |
125 | ||
126 | %description doc | |
127 | Documentation for git-core. | |
128 | ||
129 | %description doc -l pl.UTF-8 | |
130 | Dokumentacja do git-core. | |
131 | ||
132 | %description doc -l fr.UTF-8 | |
133 | Javadoc pour git-core. | |
134 | ||
b11ada2c AG |
135 | %package daemon-inetd |
136 | Summary: Files necessary to run git-daemon as an inetd service | |
5db07614 | 137 | Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd |
b11ada2c AG |
138 | Group: Networking/Daemons |
139 | Requires: %{name} = %{version}-%{release} | |
140 | Requires: setup >= 2.4.11-1 | |
141 | Provides: git-core-daemon | |
142 | Obsoletes: git-core-daemon | |
143 | Obsoletes: git-core-daemon-standalone | |
144 | ||
145 | %description daemon-inetd | |
146 | Git-daemon is a really simple TCP git daemon that can serve git | |
147 | repositories. This package provides all necessarry files to run | |
148 | git-daemon as an inetd service. | |
149 | ||
150 | %description daemon-inetd -l pl.UTF-8 | |
5db07614 JB |
151 | Git-daemon to prosty demon git korzystający z protokołu TCP do |
152 | udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne | |
153 | do uruchomienia git-demona w trybie usługi inetd. | |
b11ada2c AG |
154 | |
155 | %package daemon-standalone | |
156 | Summary: Files necessary to run git-daemon as a standalone service | |
5db07614 | 157 | Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej |
b11ada2c AG |
158 | Group: Networking/Daemons |
159 | Requires: %{name} = %{version}-%{release} | |
160 | Provides: git-core-daemon | |
161 | Obsoletes: git-core-daemon | |
162 | Obsoletes: git-core-daemon-inetd | |
163 | ||
164 | %description daemon-standalone | |
165 | Git-daemon is a really simple TCP git daemon that can serve git | |
166 | repositories. This package provides all necessarry files to run | |
167 | git-daemon as an standalone service. | |
168 | ||
169 | %description daemon-standalone -l pl.UTF-8 | |
5db07614 JB |
170 | Git-daemon to prosty demon git korzystający z protokołu TCP do |
171 | udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne | |
172 | do uruchomienia git-daemona w trybie usługi samodzielnej. | |
b11ada2c | 173 | |
e3cefa79 | 174 | %package devel |
8bed7625 JB |
175 | Summary: Git library with header files |
176 | Summary(pl.UTF-8): Biblioteka Gita oraz pliki nagłówkowe | |
66a7f095 | 177 | Group: Development/Libraries |
d52424f5 | 178 | Requires: zlib-devel |
e3cefa79 | 179 | |
180 | %description devel | |
8bed7625 | 181 | Git library with header files. |
66a7f095 | 182 | |
ea061c99 | 183 | %description devel -l pl.UTF-8 |
8bed7625 | 184 | Biblioteka Gita oraz pliki nagłówkowe. |
e3cefa79 | 185 | |
91396e2e AG |
186 | %package gitk |
187 | Summary: Tcl/Tk interface to the Git version control system | |
188 | Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git | |
189 | Group: Development/Tools | |
190 | Requires: %{name} = %{version}-%{release} | |
191 | Requires: tk | |
192 | ||
193 | %description gitk | |
1fcd08a6 JB |
194 | gitk displays changes in a repository or a selected set of commits. |
195 | This includes visualizing the commit graph, showing information | |
196 | related to each commit, and the files in the trees of each revision. | |
91396e2e AG |
197 | |
198 | Historically, gitk was the first repository browser. It's written in | |
04fdf912 | 199 | Tcl/Tk and started off in a separate repository but was later merged |
91396e2e AG |
200 | into the main git repository. |
201 | ||
202 | %description gitk -l pl.UTF-8 | |
1fcd08a6 JB |
203 | gitk wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. |
204 | Oznacza to wizualizację grafu commitów, wyświetlanie informacji | |
205 | związanych z każdym z commitów oraz listę plików dla każdej rewizji. | |
91396e2e | 206 | |
1fcd08a6 | 207 | Z historycznego punktu widzenia gitk był pierwszą przeglądarką |
02059138 ER |
208 | repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w |
209 | osobnym repozytorium, ale z czasem został włączony do głównego | |
2712fe7b | 210 | repozytorium gita. |
91396e2e | 211 | |
be2ccf99 AG |
212 | %package gitweb |
213 | Summary: Web frontend to git | |
41b5f4b1 | 214 | Summary(pl.UTF-8): Frontend WWW do gita |
be2ccf99 AG |
215 | Group: Development/Tools |
216 | Requires: %{name} = %{version}-%{release} | |
217 | Requires: webapps | |
666cda7c | 218 | Requires: webserver(access) |
51ce768a KK |
219 | Requires: webserver(alias) |
220 | Requires: webserver(cgi) | |
93a30d5e | 221 | Suggests: webserver(setenv) |
be2ccf99 AG |
222 | |
223 | %description gitweb | |
224 | This package provides a web interface for browsing git repositories. | |
225 | ||
226 | %description gitweb -l pl.UTF-8 | |
2712fe7b | 227 | Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita. |
be2ccf99 | 228 | |
e1c8d79f | 229 | %package gitview |
30794a22 JB |
230 | Summary: A GTK+ based repository browser for git |
231 | Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita | |
e1c8d79f | 232 | Group: Development/Tools |
233 | Requires: %{name} = %{version}-%{release} | |
c95a5d99 JB |
234 | Requires: python >= 1:2.4 |
235 | Requires: python-pycairo >= 1.0 | |
236 | Requires: python-pygobject | |
237 | Requires: python-pygtk-gtk >= 2:2.8 | |
238 | Suggests: python-gnome-desktop-gtksourceview | |
e1c8d79f | 239 | |
240 | %description gitview | |
30794a22 | 241 | A GTK+ based repository browser for git. |
e1c8d79f | 242 | |
243 | %description gitview -l pl.UTF-8 | |
30794a22 | 244 | Oparta na GTK+ przeglądarka repozytorium gita. |
e1c8d79f | 245 | |
f9871074 AG |
246 | %package gui |
247 | Summary: Tcl/Tk interface to the Git version control system | |
248 | Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git | |
249 | Group: Development/Tools | |
250 | Requires: %{name} = %{version}-%{release} | |
251 | Requires: tk | |
d4106757 | 252 | Requires: xdg-utils |
531b434f | 253 | Suggests: meld |
f9871074 AG |
254 | |
255 | %description gui | |
256 | Displays changes in a repository or a selected set of commits. This | |
257 | includes visualizing the commit graph, showing information related to | |
258 | each commit, and the files in the trees of each revision. | |
259 | ||
260 | Historically, gitk was the first repository browser. It's written in | |
261 | Tcl/Tk and started off in a separate repository but was later merged | |
262 | into the main git repository. | |
263 | ||
264 | %description gui -l pl.UTF-8 | |
265 | Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza | |
266 | to wizualizację grafu commitów, wyświetlanie informacji związanych z | |
267 | każdym z commitów oraz listę plików dla każdej rewizji. | |
268 | ||
269 | Z punktu widzenia historii, gitk był pierwszą przeglądarką | |
270 | repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w | |
271 | osobnym repozytorium, ale z czasem został włączony do głównego | |
272 | repozytorium gita. | |
273 | ||
e5fa8af5 JB |
274 | %package arch |
275 | Summary: Git tools for importing Arch repositories | |
276 | Summary(pl.UTF-8): Narzędzia Gita do importowania repozytoriów Archa | |
277 | Group: Development/Tools | |
278 | Requires: %{name} = %{version}-%{release} | |
279 | Requires: tla | |
280 | ||
281 | %description arch | |
282 | Git tools for importing Arch repositories. | |
283 | ||
284 | %description arch -l pl.UTF-8 | |
285 | Narzędzia Gita do importowania repozytoriów Archa. | |
286 | ||
0d2db069 ER |
287 | %package bzr |
288 | Summary: Git tools for working with bzr repositories | |
e5fa8af5 | 289 | Summary(pl.UTF-8): Narzędzia Gita do pracy z repozytoriami bzr |
0d2db069 ER |
290 | Group: Development/Tools |
291 | Requires: %{name} = %{version}-%{release} | |
292 | Requires: bzr | |
293 | ||
294 | %description bzr | |
295 | Git tools for working with bzr repositories. | |
296 | ||
e5fa8af5 JB |
297 | %description bzr -l pl.UTF-8 |
298 | Narzędzia Gita do pracy z repozytoriami bzr. | |
299 | ||
300 | %package cvs | |
301 | Summary: CVS support for Git | |
302 | Summary(pl.UTF-8): Obsługa CVS dla Gita | |
303 | Group: Development/Tools | |
304 | Requires: %{name} = %{version}-%{release} | |
305 | Requires: cvsps >= 2.1-2 | |
306 | Requires: rcs | |
307 | ||
308 | %description cvs | |
309 | CVS support for Git. | |
310 | ||
311 | %description cvs -l pl.UTF-8 | |
312 | Obsługa CVS dla Gita. | |
313 | ||
0d2db069 ER |
314 | %package hg |
315 | Summary: Git tools for working with mercurial repositories | |
e5fa8af5 | 316 | Summary(pl.UTF-8): Narzędzia Gita do pracy z repozytoriami mercuriala |
0d2db069 ER |
317 | Group: Development/Tools |
318 | Requires: %{name} = %{version}-%{release} | |
319 | Requires: mercurial >= 1.8 | |
320 | ||
321 | %description hg | |
322 | Git tools for working with mercurial repositories. | |
323 | ||
e5fa8af5 JB |
324 | %description hg -l pl.UTF-8 |
325 | Narzędzia Gita do pracy z repozytoriami mercuriala. | |
326 | ||
0d2db069 ER |
327 | %package p4 |
328 | Summary: Git tools for working with Perforce depots | |
e5fa8af5 | 329 | Summary(pl.UTF-8): Narzędzia Gita do pracy z magazynami Perforce'a |
0d2db069 ER |
330 | Group: Development/Tools |
331 | Requires: %{name} = %{version}-%{release} | |
332 | ||
333 | %description p4 | |
334 | Git tools for working with Perforce depots. | |
335 | ||
e5fa8af5 JB |
336 | %description p4 -l pl.UTF-8 |
337 | Narzędzia Gita do pracy z magazynami Perforce'a. | |
338 | ||
2c0376c9 AM |
339 | %package svn |
340 | Summary: Subversion support for Git | |
41b5f4b1 | 341 | Summary(pl.UTF-8): Obsługa Subversion dla Gita |
2c0376c9 AM |
342 | Group: Development/Tools |
343 | Requires: %{name} = %{version}-%{release} | |
daccfb39 | 344 | Requires: perl-Encode |
4ea37765 | 345 | Requires: perl-Term-ReadKey |
2c0376c9 AM |
346 | |
347 | %description svn | |
348 | Subversion support for Git. | |
349 | ||
350 | %description svn -l pl.UTF-8 | |
41b5f4b1 | 351 | Obsługa Subversion dla Gita. |
2c0376c9 | 352 | |
d82521ea ER |
353 | %package email |
354 | Summary: Git tools for sending email | |
41b5f4b1 | 355 | Summary(pl.UTF-8): Narzędzia Gita do wysyłania poczty |
d82521ea ER |
356 | Group: Development/Tools |
357 | Requires: %{name} = %{version}-%{release} | |
358 | ||
359 | %description email | |
360 | Git tools for sending email. | |
361 | ||
41b5f4b1 JB |
362 | %description email -l pl.UTF-8 |
363 | Narzędzia Gita do wysyłania poczty. | |
364 | ||
f2c1983d AG |
365 | %package -n bash-completion-git |
366 | Summary: bash-completion for git | |
2712fe7b | 367 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita |
02059138 | 368 | Group: Applications/Shells |
cdeb0400 | 369 | Requires: %{name} = %{version}-%{release} |
3102984c | 370 | Requires: bash-completion >= 2.0 |
f2c1983d AG |
371 | |
372 | %description -n bash-completion-git | |
373 | This package provides bash-completion for git. | |
374 | ||
375 | %description -n bash-completion-git -l pl.UTF-8 | |
5383e3af | 376 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita. |
f2c1983d | 377 | |
3dc01deb | 378 | %package -n perl-Git |
5d7220ad | 379 | Summary: Perl interface to the Git version control system |
3f8032f4 | 380 | Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git |
5d7220ad | 381 | Group: Development/Languages/Perl |
27b79a12 | 382 | Obsoletes: perl-git-core |
5d7220ad | 383 | |
3dc01deb | 384 | %description -n perl-Git |
5d7220ad AM |
385 | This module provides Perl scripts easy way to interface the Git |
386 | version control system. The modules have an easy and well-tested way | |
387 | to call arbitrary Git commands; in the future, the interface will also | |
388 | provide specialized methods for doing easily operations which are not | |
389 | totally trivial to do over the generic command interface. | |
390 | ||
ea061c99 JR |
391 | %description -n perl-Git -l pl.UTF-8 |
392 | Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli | |
08cc92d7 ER |
393 | wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać |
394 | dowolne polecenia Gita; w przyszłości interfejs udostępni także | |
395 | specjalne metody do łatwego wykonywania operacji nietrywialnych do | |
396 | wykonania przy użyciu ogólnego interfejsu poleceń. | |
7eef96e1 | 397 | |
f2c1983d AG |
398 | %package -n vim-syntax-gitcommit |
399 | Summary: Vim syntax: gitcommit | |
2712fe7b | 400 | Summary(pl.UTF-8): Składnia dla Vima: gitcommit |
f2c1983d | 401 | Group: Applications/Editors/Vim |
cdeb0400 | 402 | Requires: %{name} = %{version}-%{release} |
f2c1983d | 403 | # for _vimdatadir existence |
34bbdd69 | 404 | Requires: vim-rt >= 4:6.3.058-3 |
f2c1983d AG |
405 | |
406 | %description -n vim-syntax-gitcommit | |
407 | This plugin provides syntax highlighting for git's commit messages. | |
408 | ||
409 | %description -n vim-syntax-gitcommit -l pl.UTF-8 | |
2712fe7b | 410 | Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita. |
f2c1983d | 411 | |
51c3b977 | 412 | %prep |
5013f7fc | 413 | %setup -q -n git-%{version} |
6b1e62ae | 414 | %patch0 -p1 |
b2c254f3 | 415 | %patch1 -p0 |
d12d8532 | 416 | %patch2 -p1 |
8ce45cec | 417 | %patch3 -p1 |
c64c444d | 418 | %patch4 -p1 |
a1036d06 | 419 | |
420 | %build | |
11856720 AM |
421 | %{__aclocal} |
422 | %{__autoconf} | |
423 | %configure \ | |
d12d8532 | 424 | --sysconfdir=%{_sysconfdir}/git-core \ |
202eeb4b | 425 | %{?with_pcre:--with-libpcre} \ |
11856720 | 426 | --with-openssl |
51c3b977 | 427 | |
7cfee1ba KK |
428 | echo "BLK_SHA1=1" >> config.mak |
429 | ||
b69112f7 | 430 | %{__make} \ |
be2ccf99 AG |
431 | INSTALLDIRS=vendor \ |
432 | GITWEB_CONFIG="%{webappdir}/gitweb.conf" \ | |
433 | GITWEB_PROJECTROOT="/var/lib/git" \ | |
434 | GITWEB_CSS="/gitweb/gitweb.css" \ | |
435 | GITWEB_LOGO="/gitweb/git-logo.png" \ | |
f74aede9 JB |
436 | GITWEB_FAVICON="/gitweb/git-favicon.png" \ |
437 | V=1 | |
27b79a12 | 438 | |
d1d05a7a ER |
439 | %{__make} -C contrib/subtree |
440 | ||
83b9a8cd ER |
441 | %if %{with doc} |
442 | %{__make} -C Documentation \ | |
443 | MAN_BASE_URL=file://%{_docdir}/%{name}-doc-%{version}/ \ | |
444 | V=1 | |
445 | %endif | |
7fdeb28c | 446 | |
db032591 AM |
447 | %if %{with tests} |
448 | %if %{without tests_cvs} | |
8bed7625 | 449 | %{__rm} t/t*cvs*.sh || : |
db032591 | 450 | %endif |
acc7b6c4 | 451 | %{!?with_tests_svn:GIT_SKIP_TESTS='t91??'} %{__make} test |
db032591 | 452 | %endif |
6c0d6e05 | 453 | |
51c3b977 | 454 | %install |
455 | rm -rf $RPM_BUILD_ROOT | |
5db07614 | 456 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git} |
be2ccf99 | 457 | install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}} |
5db07614 | 458 | install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d} |
cdeb0400 | 459 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
d12d8532 KK |
460 | cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/git-core/gitconfig |
461 | [init] | |
cdeb0400 | 462 | templatedir = %{_sysconfdir}/%{name}/templates |
d12d8532 | 463 | EOF |
c751087d | 464 | |
51c3b977 | 465 | %{__make} install \ |
d778c02c | 466 | INSTALLDIRS=vendor \ |
51c3b977 | 467 | DESTDIR=$RPM_BUILD_ROOT |
468 | ||
08cc92d7 | 469 | %if %{with doc} |
7fdeb28c | 470 | %{__make} -C Documentation install \ |
7fdeb28c | 471 | DESTDIR=$RPM_BUILD_ROOT |
08cc92d7 | 472 | %endif |
7fdeb28c | 473 | |
d12d8532 KK |
474 | # copy templates except sample hooks |
475 | cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/templates $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
476 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates/hooks/*.sample | |
477 | ||
1f25da6d | 478 | # header files and lib |
cdeb0400 | 479 | cp -p *.h $RPM_BUILD_ROOT%{_includedir}/%{name} |
31b26a50 | 480 | cp -a compat $RPM_BUILD_ROOT%{_includedir}/%{name} |
cdeb0400 | 481 | cp -p xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff |
95341e74 KK |
482 | install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1 |
483 | cp -p block-sha1/sha1.h $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1 | |
cdeb0400 ER |
484 | cp -p libgit.a $RPM_BUILD_ROOT%{_libdir} |
485 | cp -p xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a | |
95341e74 | 486 | cp -p {Makefile,config.mak,config.mak.autogen,config.mak.uname} $RPM_BUILD_ROOT%{_includedir}/%{name} |
e3cefa79 | 487 | |
d1d05a7a ER |
488 | %{__make} -C contrib/subtree install \ |
489 | libexecdir=%{_libdir}/%{name} \ | |
490 | DESTDIR=$RPM_BUILD_ROOT | |
491 | ||
492 | %if %{with doc} | |
493 | %{__make} -C contrib/subtree install-doc \ | |
494 | DESTDIR=$RPM_BUILD_ROOT | |
495 | %endif | |
496 | ||
f2c1983d | 497 | # bash completion |
3102984c ER |
498 | install -d $RPM_BUILD_ROOT%{bash_compdir} |
499 | cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{bash_compdir}/git | |
f2c1983d | 500 | |
0d2db069 ER |
501 | # Install bzr and hg remote helpers from contrib |
502 | install -p contrib/remote-helpers/git-remote-{bzr,hg} $RPM_BUILD_ROOT%{_libdir}/%{name} | |
503 | ||
f2c1983d | 504 | # vim syntax |
d82521ea ER |
505 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax |
506 | cat > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax/gitcommit.vim << 'EOF' | |
670fe4d6 AG |
507 | autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit |
508 | autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig | |
509 | autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase | |
510 | autocmd BufNewFile,BufRead .msg.[0-9]* | |
511 | \ if getline(1) =~ '^From.*# This line is ignored.$' | | |
512 | \ setf gitsendemail | | |
513 | \ endif | |
514 | autocmd BufNewFile,BufRead *.git/** | |
515 | \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | | |
516 | \ setf git | | |
517 | \ endif | |
518 | EOF | |
f2c1983d | 519 | |
be2ccf99 | 520 | # gitweb |
4f98dcd3 | 521 | mv $RPM_BUILD_ROOT{%{appdir},%{cgibindir}}/gitweb.cgi |
93a30d5e | 522 | ln -s %{cgibindir}/gitweb.cgi $RPM_BUILD_ROOT%{appdir}/gitweb.cgi |
cdeb0400 | 523 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf |
642ee6ff | 524 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{webappdir}/gitolite.pl |
cdeb0400 | 525 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf |
814a047c | 526 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf |
cdeb0400 | 527 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/lighttpd.conf |
be2ccf99 | 528 | |
e1c8d79f | 529 | # gitview |
d82521ea | 530 | install -p contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir} |
e1c8d79f | 531 | |
b11ada2c | 532 | # git-daemon related files |
51ce768a KK |
533 | cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon |
534 | cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon | |
535 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon | |
b11ada2c | 536 | |
bf7a9a54 | 537 | # paths cleanup |
2c0376c9 | 538 | sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon |
bf7a9a54 AG |
539 | sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon |
540 | ||
4e9fd7a9 ER |
541 | # hardlink |
542 | ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-receive-pack} | |
543 | ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-upload-archive} | |
544 | ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-shell | |
545 | ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-upload-pack | |
546 | ||
be2ccf99 | 547 | # remove unneeded files |
cdeb0400 ER |
548 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
549 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist | |
44ee5525 | 550 | %py_postclean |
27b79a12 | 551 | |
815a92b1 | 552 | mv $RPM_BUILD_ROOT%{_localedir}/pt{_PT,} |
fdf2ed38 JB |
553 | %find_lang git |
554 | ||
51c3b977 | 555 | %clean |
556 | rm -rf $RPM_BUILD_ROOT | |
557 | ||
b11ada2c AG |
558 | %post daemon-inetd |
559 | %service -q rc-inetd reload | |
560 | ||
561 | %postun daemon-inetd | |
562 | if [ "$1" = "0" ]; then | |
563 | %service -q rc-inetd reload | |
564 | fi | |
565 | ||
566 | %post daemon-standalone | |
567 | /sbin/chkconfig --add git-daemon | |
568 | %service git-daemon restart "git-daemon" | |
569 | ||
570 | %preun daemon-standalone | |
571 | if [ "$1" = "0" ]; then | |
572 | %service git-daemon stop | |
573 | /sbin/chkconfig --del git-daemon | |
574 | fi | |
575 | ||
be2ccf99 AG |
576 | %triggerin gitweb -- apache1 < 1.3.37-3, apache1-base |
577 | %webapp_register apache %{webapp} | |
578 | ||
579 | %triggerun gitweb -- apache1 < 1.3.37-3, apache1-base | |
580 | %webapp_unregister apache %{webapp} | |
581 | ||
814a047c | 582 | %triggerin gitweb -- apache < 2.2.0, apache-base |
be2ccf99 AG |
583 | %webapp_register httpd %{webapp} |
584 | ||
814a047c | 585 | %triggerun gitweb -- apache < 2.2.0, apache-base |
be2ccf99 AG |
586 | %webapp_unregister httpd %{webapp} |
587 | ||
51ce768a KK |
588 | %triggerin gitweb -- lighttpd |
589 | %webapp_register lighttpd %{webapp} | |
590 | ||
591 | %triggerun gitweb -- lighttpd | |
592 | %webapp_unregister lighttpd %{webapp} | |
593 | ||
fdf2ed38 | 594 | %files -f git.lang |
51c3b977 | 595 | %defattr(644,root,root,755) |
08cc92d7 | 596 | %doc README contrib |
a8655d02 | 597 | %attr(755,root,root) %{_bindir}/git |
44ee5525 ER |
598 | %attr(755,root,root) %{_bindir}/git-receive-pack |
599 | %attr(755,root,root) %{_bindir}/git-shell | |
600 | %attr(755,root,root) %{_bindir}/git-upload-archive | |
601 | %attr(755,root,root) %{_bindir}/git-upload-pack | |
cdeb0400 | 602 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name} |
a8655d02 | 603 | |
08cc92d7 | 604 | %if %{with doc} |
0afd37aa | 605 | %{_mandir}/man1/git-*.1* |
dbde9893 | 606 | %exclude %{_mandir}/man1/git-archimport.1* |
2c0376c9 AM |
607 | %exclude %{_mandir}/man1/git-svn.1* |
608 | %exclude %{_mandir}/man1/git-cvs*.1* | |
858c27ef | 609 | %exclude %{_mandir}/man1/git-imap-send*.1* |
dbde9893 | 610 | %exclude %{_mandir}/man1/*email*.1* |
a48d28b8 | 611 | %{_mandir}/man1/git.1* |
a77c0aad | 612 | %{_mandir}/man1/gitremote-helpers.1* |
0afd37aa | 613 | %{_mandir}/man5/gitattributes.5* |
a48d28b8 | 614 | %{_mandir}/man5/githooks.5* |
0afd37aa | 615 | %{_mandir}/man5/gitignore.5* |
785b167d | 616 | %{_mandir}/man5/gitmodules.5* |
a48d28b8 AG |
617 | %{_mandir}/man5/gitrepository-layout.5* |
618 | %{_mandir}/man7/gitcli.7* | |
619 | %{_mandir}/man7/gitcore-tutorial.7* | |
fdf2ed38 | 620 | %{_mandir}/man7/gitcredentials.7* |
a48d28b8 AG |
621 | %{_mandir}/man7/gitdiffcore.7* |
622 | %{_mandir}/man7/gitglossary.7* | |
60b58680 | 623 | %{_mandir}/man7/gitnamespaces.7* |
f16e8911 | 624 | %{_mandir}/man7/gitrevisions.7* |
a48d28b8 AG |
625 | %{_mandir}/man7/gittutorial-2.7* |
626 | %{_mandir}/man7/gittutorial.7* | |
670fe4d6 | 627 | %{_mandir}/man7/gitworkflows.7* |
08cc92d7 | 628 | %endif |
a8655d02 | 629 | |
bf6fa63c AM |
630 | %dir %{_libdir}/%{name} |
631 | %attr(755,root,root) %{_libdir}/%{name}/*-* | |
39dc084d | 632 | %attr(755,root,root) %{_libdir}/%{name}/git |
0d2db069 ER |
633 | %dir %{_libdir}/%{name}/mergetools |
634 | %{_libdir}/%{name}/mergetools/* | |
a8655d02 | 635 | |
0d2db069 ER |
636 | %{_datadir}/%{name} |
637 | %{_localstatedir}/lib/git | |
638 | ||
639 | # subpackages | |
640 | %exclude %{_libdir}/%{name}/*email* | |
641 | %exclude %{_libdir}/%{name}/*p4* | |
d82521ea | 642 | %exclude %{_libdir}/%{name}/git-archimport |
2c0376c9 | 643 | %exclude %{_libdir}/%{name}/git-cvs* |
0d2db069 | 644 | %exclude %{_libdir}/%{name}/git-gui |
858c27ef | 645 | %exclude %{_libdir}/%{name}/git-imap-send |
93a30d5e | 646 | %exclude %{_libdir}/%{name}/git-instaweb |
0d2db069 ER |
647 | %exclude %{_libdir}/%{name}/git-remote-bzr |
648 | %exclude %{_libdir}/%{name}/git-remote-hg | |
a7233f01 | 649 | %exclude %{_libdir}/%{name}/git-remote-testsvn |
0d2db069 ER |
650 | %exclude %{_libdir}/%{name}/git-svn |
651 | %exclude %{_libdir}/%{name}/mergetools/p4merge | |
e3cefa79 | 652 | |
a8655d02 ER |
653 | %if %{with doc} |
654 | %files doc | |
778b89a7 | 655 | %defattr(644,root,root,755) |
a8655d02 ER |
656 | %doc Documentation/RelNotes* |
657 | %doc Documentation/*.html Documentation/howto Documentation/technical | |
658 | %endif | |
659 | ||
b11ada2c AG |
660 | %files daemon-inetd |
661 | %defattr(644,root,root,755) | |
662 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon | |
663 | ||
664 | %files daemon-standalone | |
665 | %defattr(644,root,root,755) | |
666 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon | |
667 | %attr(754,root, root) /etc/rc.d/init.d/git-daemon | |
668 | ||
e3cefa79 | 669 | %files devel |
3ff86e9e | 670 | %defattr(644,root,root,755) |
cdeb0400 | 671 | %{_includedir}/%{name} |
5db07614 | 672 | %{_libdir}/libgit.a |
eaf5c40c | 673 | %{_libdir}/libgit_xdiff.a |
5d7220ad | 674 | |
91396e2e AG |
675 | %files gitk |
676 | %defattr(644,root,root,755) | |
08cc92d7 | 677 | %if %{with doc} |
91396e2e | 678 | %{_mandir}/man1/gitk.1* |
08cc92d7 ER |
679 | %endif |
680 | %attr(755,root,root) %{_bindir}/gitk | |
9fa88d97 AM |
681 | %dir %{_datadir}/gitk |
682 | %dir %{_datadir}/gitk/lib | |
683 | %dir %{_datadir}/gitk/lib/msgs | |
5d132744 | 684 | %lang(bg) %{_datadir}/gitk/lib/msgs/bg.msg |
3b243bbe | 685 | %lang(de) %{_datadir}/gitk/lib/msgs/de.msg |
f9871074 | 686 | %lang(es) %{_datadir}/gitk/lib/msgs/es.msg |
778b89a7 AM |
687 | %lang(fr) %{_datadir}/gitk/lib/msgs/fr.msg |
688 | %lang(hu) %{_datadir}/gitk/lib/msgs/hu.msg | |
3b243bbe | 689 | %lang(it) %{_datadir}/gitk/lib/msgs/it.msg |
469258c9 | 690 | %lang(ja) %{_datadir}/gitk/lib/msgs/ja.msg |
3ed82b68 | 691 | %lang(pt_BR) %{_datadir}/gitk/lib/msgs/pt_br.msg |
95998f97 | 692 | %lang(ru) %{_datadir}/gitk/lib/msgs/ru.msg |
f9871074 | 693 | %lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg |
91396e2e | 694 | |
be2ccf99 AG |
695 | %files gitweb |
696 | %defattr(644,root,root,755) | |
697 | %doc gitweb/{README,INSTALL} | |
698 | %dir %{webappdir} | |
be2ccf99 AG |
699 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf |
700 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf | |
51ce768a | 701 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/lighttpd.conf |
642ee6ff | 702 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf |
9611d914 | 703 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitolite.pl |
be2ccf99 AG |
704 | %attr(755,root,root) %{cgibindir}/gitweb.cgi |
705 | %{appdir} | |
93a30d5e KK |
706 | %attr(755,root,root) %{_libdir}/%{name}/git-instaweb |
707 | %if %{with doc} | |
0c582eb3 AM |
708 | %{_mandir}/man1/gitweb.1* |
709 | %{_mandir}/man5/gitweb.conf.5* | |
93a30d5e | 710 | %endif |
be2ccf99 | 711 | |
e1c8d79f | 712 | %files gitview |
713 | %defattr(644,root,root,755) | |
714 | %doc contrib/gitview/gitview.txt | |
715 | %attr(755,root,root) %{_bindir}/gitview | |
716 | ||
f9871074 AG |
717 | %files gui |
718 | %defattr(644,root,root,755) | |
bf6fa63c | 719 | %attr(755,root,root) %{_libdir}/%{name}/git-gui |
f9871074 AG |
720 | %dir %{_datadir}/git-gui |
721 | %dir %{_datadir}/git-gui/lib | |
722 | %dir %{_datadir}/git-gui/lib/msgs | |
723 | %{_datadir}/git-gui/lib/git-gui.ico | |
724 | %{_datadir}/git-gui/lib/tclIndex | |
725 | %{_datadir}/git-gui/lib/*.js | |
726 | %{_datadir}/git-gui/lib/*.tcl | |
5d132744 | 727 | %lang(bg) %{_datadir}/git-gui/lib/msgs/bg.msg |
f9871074 | 728 | %lang(de) %{_datadir}/git-gui/lib/msgs/de.msg |
469258c9 | 729 | %lang(el) %{_datadir}/git-gui/lib/msgs/el.msg |
f9871074 AG |
730 | %lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg |
731 | %lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg | |
732 | %lang(it) %{_datadir}/git-gui/lib/msgs/it.msg | |
733 | %lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg | |
670fe4d6 | 734 | %lang(nb) %{_datadir}/git-gui/lib/msgs/nb.msg |
e21aea75 | 735 | %lang(pt_br) %{_datadir}/git-gui/lib/msgs/pt_br.msg |
f9871074 AG |
736 | %lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg |
737 | %lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg | |
35cbc54f | 738 | %lang(zh_CN) %{_datadir}/git-gui/lib/msgs/zh_cn.msg |
f9871074 | 739 | |
e5fa8af5 JB |
740 | %files arch |
741 | %defattr(644,root,root,755) | |
742 | %attr(755,root,root) %{_libdir}/%{name}/git-archimport | |
743 | %if %{with doc} | |
744 | %{_mandir}/man1/git-archimport.1* | |
745 | %endif | |
746 | ||
0d2db069 ER |
747 | %files bzr |
748 | %defattr(644,root,root,755) | |
749 | %attr(755,root,root) %{_libdir}/%{name}/git-remote-bzr | |
750 | ||
e5fa8af5 JB |
751 | %files cvs |
752 | %defattr(644,root,root,755) | |
753 | %attr(755,root,root) %{_bindir}/git-cvsserver | |
754 | %attr(755,root,root) %{_libdir}/%{name}/git-cvs* | |
755 | %if %{with doc} | |
756 | %{_mandir}/man1/git-cvs*.1* | |
757 | %{_mandir}/man7/gitcvs-migration.7* | |
758 | %endif | |
759 | ||
0d2db069 ER |
760 | %files hg |
761 | %defattr(644,root,root,755) | |
762 | %attr(755,root,root) %{_libdir}/%{name}/git-remote-hg | |
763 | ||
764 | %files p4 | |
765 | %defattr(644,root,root,755) | |
766 | %attr(755,root,root) %{_libdir}/%{name}/git-p4 | |
767 | %attr(755,root,root) %{_libdir}/%{name}/mergetools/p4merge | |
768 | ||
2c0376c9 AM |
769 | %files svn |
770 | %defattr(644,root,root,755) | |
771 | %attr(755,root,root) %{_libdir}/%{name}/git-svn | |
a7233f01 | 772 | %attr(755,root,root) %{_libdir}/%{name}/git-remote-testsvn |
b5884c73 | 773 | %{perl_vendorlib}/Git/SVN |
bbceff2c | 774 | %{perl_vendorlib}/Git/SVN.pm |
2c0376c9 AM |
775 | %if %{with doc} |
776 | %{_mandir}/man1/git-svn.1* | |
777 | %endif | |
778 | ||
d82521ea ER |
779 | %files email |
780 | %defattr(644,root,root,755) | |
858c27ef | 781 | %attr(755,root,root) %{_libdir}/%{name}/git-imap-send |
d82521ea ER |
782 | %attr(755,root,root) %{_libdir}/%{name}/*email* |
783 | %if %{with doc} | |
d82521ea | 784 | %{_mandir}/man1/*email*.1* |
858c27ef | 785 | %{_mandir}/man1/*imap-send*.1* |
d82521ea ER |
786 | %endif |
787 | ||
f2c1983d AG |
788 | %files -n bash-completion-git |
789 | %defattr(644,root,root,755) | |
3102984c | 790 | %{bash_compdir}/git |
f2c1983d | 791 | |
3dc01deb | 792 | %files -n perl-Git |
5d7220ad | 793 | %defattr(644,root,root,755) |
3dc01deb | 794 | %{perl_vendorlib}/Git.pm |
b5884c73 KK |
795 | %dir %{perl_vendorlib}/Git |
796 | %{perl_vendorlib}/Git/I18N.pm | |
bbceff2c | 797 | %{perl_vendorlib}/Git/IndexInfo.pm |
fdf2ed38 | 798 | %{_mandir}/man3/Git*.3pm* |
f2c1983d AG |
799 | |
800 | %files -n vim-syntax-gitcommit | |
801 | %defattr(644,root,root,755) | |
802 | %doc contrib/vim/README | |
7baeed33 | 803 | %{_datadir}/vim/vimfiles/syntax/gitcommit.vim |