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