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