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