3 %bcond_without tests # don't perform make test
4 %bcond_with tests_cvs # perform tests which use CVS
5 %bcond_without tests_svn # perform tests which use subversion
6 %bcond_without doc # skip building/packaging docs/manuals (takes some time)
7 %bcond_without pcre # perl-compatible regexes support
8 %bcond_without gnome_keyring # build without gnome keyring support
10 %include /usr/lib/rpm/macros.perl
11 Summary: Distributed version control system focused on speed, effectivity and usability
12 Summary(pl.UTF-8): Rozproszony system śledzenia treści skupiony na szybkości, wydajności i użyteczności
17 Group: Development/Tools
18 Source0: http://git-core.googlecode.com/files/git-%{version}.tar.gz
19 # Source0-md5: e16c14b27c644b8e0dd72bdb5ff77450
20 Source1: %{name}-gitweb.conf
21 Source2: %{name}-gitweb-httpd.conf
22 Source3: %{name}-gitweb-lighttpd.conf
23 Source4: %{name}.sysconfig
27 Patch0: %{name}-tests.patch
28 Patch1: %{name}-key-bindings.patch
29 Patch2: %{name}-sysconfdir.patch
30 Patch3: cherry-picked-commitlog.patch
31 Patch4: %{name}-svn-exit-errors.patch
32 URL: http://git-scm.com/
33 BuildRequires: autoconf >= 2.59
34 BuildRequires: automake
35 BuildRequires: curl-devel
36 BuildRequires: expat-devel
37 BuildRequires: gettext-devel
38 %{?with_gnome_keyring:BuildRequires: libgnome-keyring-devel}
39 BuildRequires: openssl-devel
40 %{?with_pcre:BuildRequires: pcre-devel}
41 BuildRequires: perl-Error > 0.15
42 BuildRequires: perl-base
43 BuildRequires: python-devel
44 BuildRequires: rpm-perlprov >= 4.1-13
45 BuildRequires: rpm-pythonprov
46 BuildRequires: rpmbuild(macros) >= 1.673
48 BuildRequires: zlib-devel
50 BuildRequires: asciidoc >= 7.1.2-3
51 BuildRequires: docbook-dtd45-xml
56 # tests failed sometimes when using nserver/cvsnt client so enforce pure cvs here
57 BuildRequires: cvs-gnu-client < 1.13
58 BuildRequires: cvs-gnu-client >= 1.12
60 %{?with_tests_svn:BuildRequires: subversion}
61 Conflicts: pdksh < 5.2.14-46
67 Requires: openssh-clients
69 Requires: perl-Git = %{version}-%{release}
71 Suggests: git-core-bzr
72 Suggests: git-core-cvs
75 Suggests: git-core-svn
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 # html docs have links to txt files
82 %define _noautocompressdoc *.txt
85 %define webappdir %{_sysconfdir}/webapps/%{webapp}
86 %define appdir %{_datadir}/%{webapp}
87 %define cgibindir %{_prefix}/lib/cgi-bin
90 "git" can mean anything, depending on your mood.
92 - random three-letter combination that is pronounceable, and not
93 actually used by any common UNIX command. The fact that it is a
94 mispronunciation of "get" may or may not be relevant.
95 - stupid. contemptible and despicable. simple. Take your pick from the
97 - "global information tracker": you're in a good mood, and it actually
98 works for you. Angels sing, and a light suddenly fills the room.
99 - "goddamn idiotic truckload of sh*t": when it breaks
101 This is a stupid (but extremely fast) directory content manager. It
102 doesn't do a whole lot, but what it 'does' do is track directory
103 contents efficiently.
105 %description -l pl.UTF-8
106 "git" może oznaczać cokolwiek, w zależności od nastroju.
108 - losową kombinację trzech liter, która jest wymawialna i właściwie
109 nie używana przez żadne popularne polecenie uniksowe. Fakt, że jest to
110 błędna pisownia słowa "get" może mieć lub nie mieć znaczenia.
111 - głupi, pogardliwy, prosty. Można wybrać ze słownika slangu.
112 - "global information tracker" (narzędzie do globalnego śledzenia
113 informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa.
114 Anioły śpiewają, a światło niespodziewanie wypełnia pokój.
115 - "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek
116 g*) - kiedy się zepsuje.
118 Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej.
119 Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości
123 Summary: Documentation for git-core
124 Summary(pl.UTF-8): Dokumentacja do git-core
128 Documentation for git-core.
130 %description doc -l pl.UTF-8
131 Dokumentacja do git-core.
133 %description doc -l fr.UTF-8
134 Javadoc pour git-core.
136 %package daemon-inetd
137 Summary: Files necessary to run git-daemon as an inetd service
138 Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd
139 Group: Networking/Daemons
140 Requires: %{name} = %{version}-%{release}
141 Requires: setup >= 2.4.11-1
142 Provides: git-core-daemon
143 Obsoletes: git-core-daemon
144 Obsoletes: git-core-daemon-standalone
146 %description daemon-inetd
147 Git-daemon is a really simple TCP git daemon that can serve git
148 repositories. This package provides all necessarry files to run
149 git-daemon as an inetd service.
151 %description daemon-inetd -l pl.UTF-8
152 Git-daemon to prosty demon git korzystający z protokołu TCP do
153 udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
154 do uruchomienia git-demona w trybie usługi inetd.
156 %package daemon-standalone
157 Summary: Files necessary to run git-daemon as a standalone service
158 Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej
159 Group: Networking/Daemons
160 Requires: %{name} = %{version}-%{release}
161 Provides: git-core-daemon
162 Obsoletes: git-core-daemon
163 Obsoletes: git-core-daemon-inetd
165 %description daemon-standalone
166 Git-daemon is a really simple TCP git daemon that can serve git
167 repositories. This package provides all necessarry files to run
168 git-daemon as an standalone service.
170 %description daemon-standalone -l pl.UTF-8
171 Git-daemon to prosty demon git korzystający z protokołu TCP do
172 udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
173 do uruchomienia git-daemona w trybie usługi samodzielnej.
176 Summary: Git library with header files
177 Summary(pl.UTF-8): Biblioteka Gita oraz pliki nagłówkowe
178 Group: Development/Libraries
182 Git library with header files.
184 %description devel -l pl.UTF-8
185 Biblioteka Gita oraz pliki nagłówkowe.
188 Summary: Tcl/Tk interface to the Git version control system
189 Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
190 Group: Development/Tools
191 Requires: %{name} = %{version}-%{release}
195 gitk displays changes in a repository or a selected set of commits.
196 This includes visualizing the commit graph, showing information
197 related to each commit, and the files in the trees of each revision.
199 Historically, gitk was the first repository browser. It's written in
200 Tcl/Tk and started off in a separate repository but was later merged
201 into the main git repository.
203 %description gitk -l pl.UTF-8
204 gitk wyświetla zmiany w repozytorium lub wybranym zbiorze commitów.
205 Oznacza to wizualizację grafu commitów, wyświetlanie informacji
206 związanych z każdym z commitów oraz listę plików dla każdej rewizji.
208 Z historycznego punktu widzenia gitk był pierwszą przeglądarką
209 repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
210 osobnym repozytorium, ale z czasem został włączony do głównego
214 Summary: Web frontend to git
215 Summary(pl.UTF-8): Frontend WWW do gita
216 Group: Development/Tools
217 Requires: %{name} = %{version}-%{release}
219 Requires: webserver(access)
220 Requires: webserver(alias)
221 Requires: webserver(cgi)
222 Suggests: webserver(setenv)
225 This package provides a web interface for browsing git repositories.
227 %description gitweb -l pl.UTF-8
228 Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita.
231 Summary: A GTK+ based repository browser for git
232 Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita
233 Group: Development/Tools
234 Requires: %{name} = %{version}-%{release}
235 Requires: python >= 1:2.4
236 Requires: python-pycairo >= 1.0
237 Requires: python-pygobject
238 Requires: python-pygtk-gtk >= 2:2.8
239 Suggests: python-gnome-desktop-gtksourceview
242 A GTK+ based repository browser for git.
244 %description gitview -l pl.UTF-8
245 Oparta na GTK+ przeglądarka repozytorium gita.
248 Summary: Tcl/Tk interface to the Git version control system
249 Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
250 Group: Development/Tools
251 Requires: %{name} = %{version}-%{release}
257 Displays changes in a repository or a selected set of commits. This
258 includes visualizing the commit graph, showing information related to
259 each commit, and the files in the trees of each revision.
261 Historically, gitk was the first repository browser. It's written in
262 Tcl/Tk and started off in a separate repository but was later merged
263 into the main git repository.
265 %description gui -l pl.UTF-8
266 Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza
267 to wizualizację grafu commitów, wyświetlanie informacji związanych z
268 każdym z commitów oraz listę plików dla każdej rewizji.
270 Z punktu widzenia historii, gitk był pierwszą przeglądarką
271 repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
272 osobnym repozytorium, ale z czasem został włączony do głównego
276 Summary: Git tools for importing Arch repositories
277 Summary(pl.UTF-8): Narzędzia Gita do importowania repozytoriów Archa
278 Group: Development/Tools
279 Requires: %{name} = %{version}-%{release}
283 Git tools for importing Arch repositories.
285 %description arch -l pl.UTF-8
286 Narzędzia Gita do importowania repozytoriów Archa.
289 Summary: Git tools for working with bzr repositories
290 Summary(pl.UTF-8): Narzędzia Gita do pracy z repozytoriami bzr
291 Group: Development/Tools
292 Requires: %{name} = %{version}-%{release}
296 Git tools for working with bzr repositories.
298 %description bzr -l pl.UTF-8
299 Narzędzia Gita do pracy z repozytoriami bzr.
302 Summary: CVS support for Git
303 Summary(pl.UTF-8): Obsługa CVS dla Gita
304 Group: Development/Tools
305 Requires: %{name} = %{version}-%{release}
306 Requires: cvsps >= 2.1-2
312 %description cvs -l pl.UTF-8
313 Obsługa CVS dla Gita.
316 Summary: Git tools for working with mercurial repositories
317 Summary(pl.UTF-8): Narzędzia Gita do pracy z repozytoriami mercuriala
318 Group: Development/Tools
319 Requires: %{name} = %{version}-%{release}
320 Requires: mercurial >= 1.8
323 Git tools for working with mercurial repositories.
325 %description hg -l pl.UTF-8
326 Narzędzia Gita do pracy z repozytoriami mercuriala.
329 Summary: Git tools for working with Perforce depots
330 Summary(pl.UTF-8): Narzędzia Gita do pracy z magazynami Perforce'a
331 Group: Development/Tools
332 Requires: %{name} = %{version}-%{release}
335 Git tools for working with Perforce depots.
337 %description p4 -l pl.UTF-8
338 Narzędzia Gita do pracy z magazynami Perforce'a.
341 Summary: Subversion support for Git
342 Summary(pl.UTF-8): Obsługa Subversion dla Gita
343 Group: Development/Tools
344 Requires: %{name} = %{version}-%{release}
345 Requires: perl-Encode
346 Requires: perl-Term-ReadKey
349 Subversion support for Git.
351 %description svn -l pl.UTF-8
352 Obsługa Subversion dla Gita.
355 Summary: Git tools for sending email
356 Summary(pl.UTF-8): Narzędzia Gita do wysyłania poczty
357 Group: Development/Tools
358 Requires: %{name} = %{version}-%{release}
361 Git tools for sending email.
363 %description email -l pl.UTF-8
364 Narzędzia Gita do wysyłania poczty.
366 %package -n bash-completion-git
367 Summary: bash-completion for git
368 Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita
369 Group: Applications/Shells
370 Requires: %{name} = %{version}-%{release}
371 Requires: bash-completion >= 2.0
372 %if "%{_rpmversion}" >= "5"
376 %description -n bash-completion-git
377 This package provides bash-completion for git.
379 %description -n bash-completion-git -l pl.UTF-8
380 Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita.
383 Summary: Perl interface to the Git version control system
384 Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git
385 Group: Development/Languages/Perl
386 Obsoletes: perl-git-core
388 %description -n perl-Git
389 This module provides Perl scripts easy way to interface the Git
390 version control system. The modules have an easy and well-tested way
391 to call arbitrary Git commands; in the future, the interface will also
392 provide specialized methods for doing easily operations which are not
393 totally trivial to do over the generic command interface.
395 %description -n perl-Git -l pl.UTF-8
396 Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli
397 wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać
398 dowolne polecenia Gita; w przyszłości interfejs udostępni także
399 specjalne metody do łatwego wykonywania operacji nietrywialnych do
400 wykonania przy użyciu ogólnego interfejsu poleceń.
402 %package -n gnome-keyring-git-core
403 Summary: GNOME Keyring authentication provider for Git
404 Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Git
405 Group: X11/Applications
406 Requires: %{name} = %{version}-%{release}
408 %description -n gnome-keyring-git-core
409 Authentication provider module for Git which allows git client to
410 authenticate using GNOME Keyring.
412 %description -n gnome-keyring-git-core -l pl.UTF-8
413 Moduł uwierzytelniający dla Subversion pozwalający klientom git
414 uwierzytelniać się przy użyciu mechanizmu GNOME Keyring.
417 %setup -q -n git-%{version}
424 %{__rm} {Documentation/technical,contrib/emacs,contrib/credential/gnome-keyring}/.gitignore
430 --sysconfdir=%{_sysconfdir}/git-core \
431 %{?with_pcre:--with-libpcre} \
434 echo "BLK_SHA1=1" >> config.mak
438 GITWEB_CONFIG="%{webappdir}/gitweb.conf" \
439 GITWEB_PROJECTROOT="/var/lib/git" \
440 GITWEB_CSS="/gitweb/gitweb.css" \
441 GITWEB_LOGO="/gitweb/git-logo.png" \
442 GITWEB_FAVICON="/gitweb/git-favicon.png" \
445 %{__make} -C contrib/subtree
447 %if %{with gnome_keyring}
448 %{__make} -C contrib/credential/gnome-keyring
452 %{__make} -C Documentation \
453 MAN_BASE_URL=file://%{_docdir}/%{name}-doc-%{version}/ \
458 %if %{without tests_cvs}
459 %{__rm} t/t*cvs*.sh || :
461 %{!?with_tests_svn:GIT_SKIP_TESTS='t91??'} %{__make} test
465 rm -rf $RPM_BUILD_ROOT
466 install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git}
467 install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
468 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
469 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
470 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/git-core/gitconfig
472 templatedir = %{_sysconfdir}/%{name}/templates
477 DESTDIR=$RPM_BUILD_ROOT
480 %{__make} -C Documentation install \
481 DESTDIR=$RPM_BUILD_ROOT
484 # copy templates except sample hooks
485 cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/templates $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
486 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates/hooks/*.sample
488 # header files and lib
489 cp -p *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
490 cp -a compat $RPM_BUILD_ROOT%{_includedir}/%{name}
491 cp -p xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
492 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1
493 cp -p block-sha1/sha1.h $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1
494 cp -p libgit.a $RPM_BUILD_ROOT%{_libdir}
495 cp -p xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a
496 cp -p {Makefile,config.mak,config.mak.autogen,config.mak.uname} $RPM_BUILD_ROOT%{_includedir}/%{name}
498 %{__make} -C contrib/subtree install \
499 libexecdir=%{_libdir}/%{name} \
500 DESTDIR=$RPM_BUILD_ROOT
503 %{__make} -C contrib/subtree install-doc \
504 DESTDIR=$RPM_BUILD_ROOT
507 %if %{with gnome_keyring}
508 install -p contrib/credential/gnome-keyring/git-credential-gnome-keyring $RPM_BUILD_ROOT%{_libdir}/%{name}
509 # Remove built binary files, otherwise they will be installed in doc
510 %{__make} -C contrib/credential/gnome-keyring clean
514 install -d $RPM_BUILD_ROOT%{bash_compdir}
515 cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{bash_compdir}/git
517 # Install git-prompt.sh
518 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/contrib/completion
519 cp -p contrib/completion/git-prompt.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/contrib/completion
521 # Install bzr and hg remote helpers from contrib
522 install -p contrib/remote-helpers/git-remote-{bzr,hg} $RPM_BUILD_ROOT%{_libdir}/%{name}
525 mv $RPM_BUILD_ROOT{%{appdir},%{cgibindir}}/gitweb.cgi
526 ln -s %{cgibindir}/gitweb.cgi $RPM_BUILD_ROOT%{appdir}/gitweb.cgi
527 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
528 cp -p %{SOURCE7} $RPM_BUILD_ROOT%{webappdir}/gitolite.pl
529 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
530 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
531 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/lighttpd.conf
534 install -p contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir}
536 # git-daemon related files
537 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon
538 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
539 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
542 sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
543 sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
546 ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-receive-pack}
547 ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-upload-archive}
548 ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-shell
549 ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-upload-pack
551 # remove unneeded files
552 %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
553 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
556 mv $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
560 rm -rf $RPM_BUILD_ROOT
563 %service -q rc-inetd reload
566 if [ "$1" = "0" ]; then
567 %service -q rc-inetd reload
570 %post daemon-standalone
571 /sbin/chkconfig --add git-daemon
572 %service git-daemon restart "git-daemon"
574 %preun daemon-standalone
575 if [ "$1" = "0" ]; then
576 %service git-daemon stop
577 /sbin/chkconfig --del git-daemon
580 %triggerin gitweb -- apache1 < 1.3.37-3, apache1-base
581 %webapp_register apache %{webapp}
583 %triggerun gitweb -- apache1 < 1.3.37-3, apache1-base
584 %webapp_unregister apache %{webapp}
586 %triggerin gitweb -- apache < 2.2.0, apache-base
587 %webapp_register httpd %{webapp}
589 %triggerun gitweb -- apache < 2.2.0, apache-base
590 %webapp_unregister httpd %{webapp}
592 %triggerin gitweb -- lighttpd
593 %webapp_register lighttpd %{webapp}
595 %triggerun gitweb -- lighttpd
596 %webapp_unregister lighttpd %{webapp}
599 %defattr(644,root,root,755)
601 %attr(755,root,root) %{_bindir}/git
602 %attr(755,root,root) %{_bindir}/git-receive-pack
603 %attr(755,root,root) %{_bindir}/git-shell
604 %attr(755,root,root) %{_bindir}/git-upload-archive
605 %attr(755,root,root) %{_bindir}/git-upload-pack
606 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
609 %{_mandir}/man1/git-*.1*
610 %exclude %{_mandir}/man1/git-archimport.1*
611 %exclude %{_mandir}/man1/git-svn.1*
612 %exclude %{_mandir}/man1/git-cvs*.1*
613 %exclude %{_mandir}/man1/git-imap-send*.1*
614 %exclude %{_mandir}/man1/*email*.1*
615 %{_mandir}/man1/git.1*
616 %{_mandir}/man1/gitremote-helpers.1*
617 %{_mandir}/man5/gitattributes.5*
618 %{_mandir}/man5/githooks.5*
619 %{_mandir}/man5/gitignore.5*
620 %{_mandir}/man5/gitmodules.5*
621 %{_mandir}/man5/gitrepository-layout.5*
622 %{_mandir}/man7/gitcli.7*
623 %{_mandir}/man7/gitcore-tutorial.7*
624 %{_mandir}/man7/gitcredentials.7*
625 %{_mandir}/man7/gitdiffcore.7*
626 %{_mandir}/man7/gitglossary.7*
627 %{_mandir}/man7/gitnamespaces.7*
628 %{_mandir}/man7/gitrevisions.7*
629 %{_mandir}/man7/gittutorial-2.7*
630 %{_mandir}/man7/gittutorial.7*
631 %{_mandir}/man7/gitworkflows.7*
634 %dir %{_libdir}/%{name}
635 %attr(755,root,root) %{_libdir}/%{name}/*-*
636 %attr(755,root,root) %{_libdir}/%{name}/git
637 %dir %{_libdir}/%{name}/mergetools
638 %{_libdir}/%{name}/mergetools/*
641 %{_localstatedir}/lib/git
644 %exclude %{_libdir}/%{name}/*email*
645 %exclude %{_libdir}/%{name}/*p4*
646 %exclude %{_libdir}/%{name}/git-archimport
647 %exclude %{_libdir}/%{name}/git-cvs*
648 %exclude %{_libdir}/%{name}/git-gui
649 %exclude %{_libdir}/%{name}/git-imap-send
650 %exclude %{_libdir}/%{name}/git-instaweb
651 %exclude %{_libdir}/%{name}/git-remote-bzr
652 %exclude %{_libdir}/%{name}/git-remote-hg
653 %exclude %{_libdir}/%{name}/git-remote-testsvn
654 %exclude %{_libdir}/%{name}/git-svn
655 %exclude %{_libdir}/%{name}/mergetools/p4merge
656 %if %{with gnome_keyring}
657 %exclude %{_libdir}/%{name}/git-credential-gnome-keyring
662 %defattr(644,root,root,755)
663 %doc Documentation/RelNotes*
664 %doc Documentation/*.html Documentation/howto Documentation/technical
668 %defattr(644,root,root,755)
669 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon
671 %files daemon-standalone
672 %defattr(644,root,root,755)
673 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon
674 %attr(754,root, root) /etc/rc.d/init.d/git-daemon
677 %defattr(644,root,root,755)
678 %{_includedir}/%{name}
680 %{_libdir}/libgit_xdiff.a
683 %defattr(644,root,root,755)
685 %{_mandir}/man1/gitk.1*
687 %attr(755,root,root) %{_bindir}/gitk
688 %dir %{_datadir}/gitk
689 %dir %{_datadir}/gitk/lib
690 %dir %{_datadir}/gitk/lib/msgs
691 %lang(bg) %{_datadir}/gitk/lib/msgs/bg.msg
692 %lang(de) %{_datadir}/gitk/lib/msgs/de.msg
693 %lang(es) %{_datadir}/gitk/lib/msgs/es.msg
694 %lang(fr) %{_datadir}/gitk/lib/msgs/fr.msg
695 %lang(hu) %{_datadir}/gitk/lib/msgs/hu.msg
696 %lang(it) %{_datadir}/gitk/lib/msgs/it.msg
697 %lang(ja) %{_datadir}/gitk/lib/msgs/ja.msg
698 %lang(pt_BR) %{_datadir}/gitk/lib/msgs/pt_br.msg
699 %lang(ru) %{_datadir}/gitk/lib/msgs/ru.msg
700 %lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg
703 %defattr(644,root,root,755)
704 %doc gitweb/{README,INSTALL}
706 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf
707 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf
708 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/lighttpd.conf
709 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf
710 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitolite.pl
711 %attr(755,root,root) %{cgibindir}/gitweb.cgi
713 %attr(755,root,root) %{_libdir}/%{name}/git-instaweb
715 %{_mandir}/man1/gitweb.1*
716 %{_mandir}/man5/gitweb.conf.5*
720 %defattr(644,root,root,755)
721 %doc contrib/gitview/gitview.txt
722 %attr(755,root,root) %{_bindir}/gitview
725 %defattr(644,root,root,755)
726 %attr(755,root,root) %{_libdir}/%{name}/git-gui
727 %dir %{_datadir}/git-gui
728 %dir %{_datadir}/git-gui/lib
729 %dir %{_datadir}/git-gui/lib/msgs
730 %{_datadir}/git-gui/lib/git-gui.ico
731 %{_datadir}/git-gui/lib/tclIndex
732 %{_datadir}/git-gui/lib/*.js
733 %{_datadir}/git-gui/lib/*.tcl
734 %lang(bg) %{_datadir}/git-gui/lib/msgs/bg.msg
735 %lang(de) %{_datadir}/git-gui/lib/msgs/de.msg
736 %lang(el) %{_datadir}/git-gui/lib/msgs/el.msg
737 %lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg
738 %lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg
739 %lang(it) %{_datadir}/git-gui/lib/msgs/it.msg
740 %lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg
741 %lang(nb) %{_datadir}/git-gui/lib/msgs/nb.msg
742 %lang(pt_br) %{_datadir}/git-gui/lib/msgs/pt_br.msg
743 %lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg
744 %lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg
745 %lang(zh_CN) %{_datadir}/git-gui/lib/msgs/zh_cn.msg
748 %defattr(644,root,root,755)
749 %attr(755,root,root) %{_libdir}/%{name}/git-archimport
751 %{_mandir}/man1/git-archimport.1*
755 %defattr(644,root,root,755)
756 %attr(755,root,root) %{_libdir}/%{name}/git-remote-bzr
759 %defattr(644,root,root,755)
760 %attr(755,root,root) %{_bindir}/git-cvsserver
761 %attr(755,root,root) %{_libdir}/%{name}/git-cvs*
763 %{_mandir}/man1/git-cvs*.1*
764 %{_mandir}/man7/gitcvs-migration.7*
768 %defattr(644,root,root,755)
769 %attr(755,root,root) %{_libdir}/%{name}/git-remote-hg
772 %defattr(644,root,root,755)
773 %attr(755,root,root) %{_libdir}/%{name}/git-p4
774 %attr(755,root,root) %{_libdir}/%{name}/mergetools/p4merge
777 %defattr(644,root,root,755)
778 %attr(755,root,root) %{_libdir}/%{name}/git-svn
779 %attr(755,root,root) %{_libdir}/%{name}/git-remote-testsvn
780 %{perl_vendorlib}/Git/SVN
781 %{perl_vendorlib}/Git/SVN.pm
783 %{_mandir}/man1/git-svn.1*
787 %defattr(644,root,root,755)
788 %attr(755,root,root) %{_libdir}/%{name}/git-imap-send
789 %attr(755,root,root) %{_libdir}/%{name}/*email*
791 %{_mandir}/man1/*email*.1*
792 %{_mandir}/man1/*imap-send*.1*
795 %files -n bash-completion-git
796 %defattr(644,root,root,755)
800 %defattr(644,root,root,755)
801 %{perl_vendorlib}/Git.pm
802 %dir %{perl_vendorlib}/Git
803 %{perl_vendorlib}/Git/I18N.pm
804 %{perl_vendorlib}/Git/IndexInfo.pm
805 %{_mandir}/man3/Git*.3pm*
807 %if %{with gnome_keyring}
808 %files -n gnome-keyring-git-core
809 %defattr(644,root,root,755)
810 %attr(755,root,root) %{_libdir}/%{name}/git-credential-gnome-keyring