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