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 # for AC: --without doc --without gnome_keyring --without tests
12 %include /usr/lib/rpm/macros.perl
13 Summary: Distributed version control system focused on speed, effectivity and usability
14 Summary(pl.UTF-8): Rozproszony system śledzenia treści skupiony na szybkości, wydajności i użyteczności
19 Group: Development/Tools
20 Source0: http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.xz
21 # Source0-md5: dc5eb7ff2ca4641c6038f51ae49cad0f
22 Source1: %{name}-gitweb.conf
23 Source2: %{name}-gitweb-httpd.conf
24 Source3: %{name}-gitweb-lighttpd.conf
25 Source4: %{name}.sysconfig
29 Patch0: %{name}-tests.patch
30 Patch1: %{name}-key-bindings.patch
31 Patch2: %{name}-sysconfdir.patch
32 Patch3: cherry-picked-commitlog.patch
33 Patch4: %{name}-svn-exit-errors.patch
34 URL: http://git-scm.com/
35 BuildRequires: autoconf >= 2.59
36 BuildRequires: automake
37 BuildRequires: curl-devel
38 BuildRequires: expat-devel
39 %if "%{pld_release}" == "ac"
40 BuildRequires: gettext-devel
42 BuildRequires: gettext-tools
44 %if %{with gnome_keyring}
45 BuildRequires: libgnome-keyring-devel
46 BuildRequires: pkgconfig
48 BuildRequires: openssl-devel
49 %{?with_pcre:BuildRequires: pcre-devel}
50 BuildRequires: perl-Error > 0.15
51 BuildRequires: perl-base
52 BuildRequires: python-devel
53 BuildRequires: rpm-perlprov >= 4.1-13
54 BuildRequires: rpm-pythonprov
55 BuildRequires: rpmbuild(macros) >= 1.673
58 BuildRequires: zlib-devel
60 BuildRequires: asciidoc >= 7.1.2-3
61 BuildRequires: docbook-dtd45-xml
66 # tests failed sometimes when using nserver/cvsnt client so enforce pure cvs here
67 BuildRequires: cvs-gnu-client < 1.13
68 BuildRequires: cvs-gnu-client >= 1.12
71 BuildRequires: perl-subversion
72 BuildRequires: subversion
74 Conflicts: pdksh < 5.2.14-46
76 # git-sh-setup: sane_grep
81 Requires: perl-Git = %{version}-%{release}
83 Suggests: git-core-bzr
84 Suggests: git-core-cvs
87 Suggests: git-core-svn
89 Suggests: openssh-clients
92 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94 # html docs have links to txt files
95 %define _noautocompressdoc *.txt
98 %define webappdir %{_sysconfdir}/webapps/%{webapp}
99 %define appdir %{_datadir}/%{webapp}
100 %define cgibindir %{_prefix}/lib/cgi-bin
101 %define gitcoredir %{_prefix}/lib/%{name}
102 %define _libexecdir %{_prefix}/lib
105 "git" can mean anything, depending on your mood.
107 - random three-letter combination that is pronounceable, and not
108 actually used by any common UNIX command. The fact that it is a
109 mispronunciation of "get" may or may not be relevant.
110 - stupid. contemptible and despicable. simple. Take your pick from the
112 - "global information tracker": you're in a good mood, and it actually
113 works for you. Angels sing, and a light suddenly fills the room.
114 - "goddamn idiotic truckload of sh*t": when it breaks
116 This is a stupid (but extremely fast) directory content manager. It
117 doesn't do a whole lot, but what it 'does' do is track directory
118 contents efficiently.
120 %description -l pl.UTF-8
121 "git" może oznaczać cokolwiek, w zależności od nastroju.
123 - losową kombinację trzech liter, która jest wymawialna i właściwie
124 nie używana przez żadne popularne polecenie uniksowe. Fakt, że jest to
125 błędna pisownia słowa "get" może mieć lub nie mieć znaczenia.
126 - głupi, pogardliwy, prosty. Można wybrać ze słownika slangu.
127 - "global information tracker" (narzędzie do globalnego śledzenia
128 informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa.
129 Anioły śpiewają, a światło niespodziewanie wypełnia pokój.
130 - "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek
131 g*) - kiedy się zepsuje.
133 Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej.
134 Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości
138 Summary: Documentation for git-core
139 Summary(pl.UTF-8): Dokumentacja do git-core
141 %if "%{_rpmversion}" >= "5"
146 Documentation for git-core.
148 %description doc -l pl.UTF-8
149 Dokumentacja do git-core.
151 %package daemon-inetd
152 Summary: Files necessary to run git-daemon as an inetd service
153 Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd
154 Group: Networking/Daemons
155 Requires: %{name} = %{version}-%{release}
156 Requires: setup >= 2.4.11-1
157 Provides: git-core-daemon
158 Obsoletes: git-core-daemon
159 Obsoletes: git-core-daemon-standalone
160 %if "%{_rpmversion}" >= "5"
164 %description daemon-inetd
165 Git-daemon is a really simple TCP git daemon that can serve git
166 repositories. This package provides all necessarry files to run
167 git-daemon as an inetd service.
169 %description daemon-inetd -l pl.UTF-8
170 Git-daemon to prosty demon git korzystający z protokołu TCP do
171 udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
172 do uruchomienia git-demona w trybie usługi inetd.
174 %package daemon-standalone
175 Summary: Files necessary to run git-daemon as a standalone service
176 Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej
177 Group: Networking/Daemons
178 Requires: %{name} = %{version}-%{release}
179 Provides: git-core-daemon
180 Obsoletes: git-core-daemon
181 Obsoletes: git-core-daemon-inetd
182 %if "%{_rpmversion}" >= "5"
186 %description daemon-standalone
187 Git-daemon is a really simple TCP git daemon that can serve git
188 repositories. This package provides all necessarry files to run
189 git-daemon as an standalone service.
191 %description daemon-standalone -l pl.UTF-8
192 Git-daemon to prosty demon git korzystający z protokołu TCP do
193 udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
194 do uruchomienia git-daemona w trybie usługi samodzielnej.
197 Summary: Git library with header files
198 Summary(pl.UTF-8): Biblioteka Gita oraz pliki nagłówkowe
199 Group: Development/Libraries
203 Git library with header files.
205 %description devel -l pl.UTF-8
206 Biblioteka Gita oraz pliki nagłówkowe.
209 Summary: Tcl/Tk interface to the Git version control system
210 Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
211 Group: Development/Tools
212 Requires: %{name} = %{version}-%{release}
214 %if "%{_rpmversion}" >= "5"
219 gitk displays changes in a repository or a selected set of commits.
220 This includes visualizing the commit graph, showing information
221 related to each commit, and the files in the trees of each revision.
223 Historically, gitk was the first repository browser. It's written in
224 Tcl/Tk and started off in a separate repository but was later merged
225 into the main git repository.
227 %description gitk -l pl.UTF-8
228 gitk wyświetla zmiany w repozytorium lub wybranym zbiorze commitów.
229 Oznacza to wizualizację grafu commitów, wyświetlanie informacji
230 związanych z każdym z commitów oraz listę plików dla każdej rewizji.
232 Z historycznego punktu widzenia gitk był pierwszą przeglądarką
233 repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
234 osobnym repozytorium, ale z czasem został włączony do głównego
238 Summary: Web frontend to git
239 Summary(pl.UTF-8): Frontend WWW do gita
240 Group: Development/Tools
241 Requires: %{name} = %{version}-%{release}
243 Requires: webserver(access)
244 Requires: webserver(alias)
245 Requires: webserver(cgi)
246 Suggests: webserver(setenv)
247 %if "%{_rpmversion}" >= "5"
252 This package provides a web interface for browsing git repositories.
254 %description gitweb -l pl.UTF-8
255 Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita.
258 Summary: A GTK+ based repository browser for git
259 Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita
260 Group: Development/Tools
261 Requires: %{name} = %{version}-%{release}
262 Requires: python >= 1:2.4
263 Requires: python-pycairo >= 1.0
264 Requires: python-pygobject
265 Requires: python-pygtk-gtk >= 2:2.8
266 Suggests: python-gnome-desktop-gtksourceview
267 %if "%{_rpmversion}" >= "5"
272 A GTK+ based repository browser for git.
274 %description gitview -l pl.UTF-8
275 Oparta na GTK+ przeglądarka repozytorium gita.
278 Summary: Tcl/Tk interface to the Git version control system
279 Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
280 Group: Development/Tools
281 Requires: %{name} = %{version}-%{release}
285 %if "%{_rpmversion}" >= "5"
290 Displays changes in a repository or a selected set of commits. This
291 includes visualizing the commit graph, showing information related to
292 each commit, and the files in the trees of each revision.
294 Historically, gitk was the first repository browser. It's written in
295 Tcl/Tk and started off in a separate repository but was later merged
296 into the main git repository.
298 %description gui -l pl.UTF-8
299 Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza
300 to wizualizację grafu commitów, wyświetlanie informacji związanych z
301 każdym z commitów oraz listę plików dla każdej rewizji.
303 Z punktu widzenia historii, gitk był pierwszą przeglądarką
304 repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
305 osobnym repozytorium, ale z czasem został włączony do głównego
309 Summary: Git tools for importing Arch repositories
310 Summary(pl.UTF-8): Narzędzia Gita do importowania repozytoriów Archa
311 Group: Development/Tools
312 Requires: %{name} = %{version}-%{release}
314 %if "%{_rpmversion}" >= "5"
319 Git tools for importing Arch repositories.
321 %description arch -l pl.UTF-8
322 Narzędzia Gita do importowania repozytoriów Archa.
325 Summary: Git tools for working with bzr repositories
326 Summary(pl.UTF-8): Narzędzia Gita do pracy z repozytoriami bzr
327 Group: Development/Tools
328 Requires: %{name} = %{version}-%{release}
330 %if "%{_rpmversion}" >= "5"
335 Git tools for working with bzr repositories.
337 %description bzr -l pl.UTF-8
338 Narzędzia Gita do pracy z repozytoriami bzr.
341 Summary: CVS support for Git
342 Summary(pl.UTF-8): Obsługa CVS dla Gita
343 Group: Development/Tools
344 Requires: %{name} = %{version}-%{release}
345 Requires: cvsps >= 2.1-2
347 %if "%{_rpmversion}" >= "5"
354 %description cvs -l pl.UTF-8
355 Obsługa CVS dla Gita.
358 Summary: Git tools for working with mercurial repositories
359 Summary(pl.UTF-8): Narzędzia Gita do pracy z repozytoriami mercuriala
360 Group: Development/Tools
361 Requires: %{name} = %{version}-%{release}
362 Requires: mercurial >= 1.8
363 %if "%{_rpmversion}" >= "5"
368 Git tools for working with mercurial repositories.
370 %description hg -l pl.UTF-8
371 Narzędzia Gita do pracy z repozytoriami mercuriala.
374 Summary: Git tools for working with Perforce depots
375 Summary(pl.UTF-8): Narzędzia Gita do pracy z magazynami Perforce'a
376 Group: Development/Tools
377 Requires: %{name} = %{version}-%{release}
378 %if "%{_rpmversion}" >= "5"
383 Git tools for working with Perforce depots.
385 %description p4 -l pl.UTF-8
386 Narzędzia Gita do pracy z magazynami Perforce'a.
389 Summary: Subversion support for Git
390 Summary(pl.UTF-8): Obsługa Subversion dla Gita
391 Group: Development/Tools
392 Requires: %{name} = %{version}-%{release}
393 Requires: perl-Encode
394 Requires: perl-Term-ReadKey
397 Subversion support for Git.
399 %description svn -l pl.UTF-8
400 Obsługa Subversion dla Gita.
403 Summary: Git tools for sending email
404 Summary(pl.UTF-8): Narzędzia Gita do wysyłania poczty
405 Group: Development/Tools
406 Requires: %{name} = %{version}-%{release}
407 Suggests: perl-Net-SMTP-SSL
410 Git tools for sending email.
412 %description email -l pl.UTF-8
413 Narzędzia Gita do wysyłania poczty.
415 %package -n bash-completion-git
416 Summary: bash-completion for git
417 Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita
418 Group: Applications/Shells
419 Requires: %{name} = %{version}-%{release}
420 Requires: bash-completion >= 2.0
421 %if "%{_rpmversion}" >= "5"
425 %description -n bash-completion-git
426 This package provides bash-completion for git.
428 %description -n bash-completion-git -l pl.UTF-8
429 Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita.
432 Summary: Perl interface to the Git version control system
433 Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git
434 Group: Development/Languages/Perl
435 Obsoletes: perl-git-core
436 %if "%{_rpmversion}" >= "5"
440 %description -n perl-Git
441 This module provides Perl scripts easy way to interface the Git
442 version control system. The modules have an easy and well-tested way
443 to call arbitrary Git commands; in the future, the interface will also
444 provide specialized methods for doing easily operations which are not
445 totally trivial to do over the generic command interface.
447 %description -n perl-Git -l pl.UTF-8
448 Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli
449 wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać
450 dowolne polecenia Gita; w przyszłości interfejs udostępni także
451 specjalne metody do łatwego wykonywania operacji nietrywialnych do
452 wykonania przy użyciu ogólnego interfejsu poleceń.
454 %package -n gnome-keyring-git-core
455 Summary: GNOME Keyring authentication provider for Git
456 Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Git
457 Group: X11/Applications
458 URL: http://git-scm.com/docs/gitcredentials.html
459 Requires: %{name} = %{version}-%{release}
461 %description -n gnome-keyring-git-core
462 Authentication provider module for Git which allows git client to
463 authenticate using GNOME Keyring.
465 You need to register it with:
466 - git config --global credential.helper gnome-keyring
468 %description -n gnome-keyring-git-core -l pl.UTF-8
469 Moduł uwierzytelniający dla Subversion pozwalający klientom git
470 uwierzytelniać się przy użyciu mechanizmu GNOME Keyring.
472 Moduł trzeba zarejestrować poleceniem:
473 - git config --global credential.helper gnome-keyring
476 %setup -q -n git-%{version}
483 %{__rm} {Documentation/technical,contrib/emacs,contrib/credential/gnome-keyring}/.gitignore
485 # we build things in contrib but want to have it clean for doc purporses, too
486 cp -a contrib contrib-doc
492 --sysconfdir=%{_sysconfdir}/git-core \
493 %{?with_pcre:--with-libpcre} \
496 echo "BLK_SHA1=1" >> config.mak
500 GITWEB_CONFIG="%{webappdir}/gitweb.conf" \
501 GITWEB_PROJECTROOT="/var/lib/git" \
502 GITWEB_CSS="/gitweb/gitweb.css" \
503 GITWEB_LOGO="/gitweb/git-logo.png" \
504 GITWEB_FAVICON="/gitweb/git-favicon.png" \
507 %{__make} -C contrib/subtree
509 %if %{with gnome_keyring}
510 %{__make} -C contrib/credential/gnome-keyring
514 %{__make} -C Documentation \
515 MAN_BASE_URL=file://%{_docdir}/%{name}-doc-%{version}/ \
520 %if %{without tests_cvs}
521 %{__rm} t/t*cvs*.sh || :
523 %{!?with_tests_svn:GIT_SKIP_TESTS='t91??'} %{__make} test
527 rm -rf $RPM_BUILD_ROOT
528 install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git}
529 install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
530 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
531 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
532 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/git-core/gitconfig
534 templatedir = %{_sysconfdir}/%{name}/templates
539 DESTDIR=$RPM_BUILD_ROOT
542 %{__make} -C Documentation install \
543 DESTDIR=$RPM_BUILD_ROOT
546 # copy templates except sample hooks
547 cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/templates $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
548 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates/hooks/*.sample
550 # header files and lib
551 cp -p *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
552 cp -a compat $RPM_BUILD_ROOT%{_includedir}/%{name}
553 cp -p xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
554 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1
555 cp -p block-sha1/sha1.h $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1
556 cp -p libgit.a $RPM_BUILD_ROOT%{_libdir}
557 cp -p xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a
558 cp -p {Makefile,config.mak,config.mak.autogen,config.mak.uname} $RPM_BUILD_ROOT%{_includedir}/%{name}
560 %{__make} -C contrib/subtree install \
561 libexecdir=%{gitcoredir} \
562 DESTDIR=$RPM_BUILD_ROOT
565 %{__make} -C contrib/subtree install-man \
566 DESTDIR=$RPM_BUILD_ROOT
569 %if %{with gnome_keyring}
570 install -p contrib/credential/gnome-keyring/git-credential-gnome-keyring $RPM_BUILD_ROOT%{gitcoredir}
574 install -d $RPM_BUILD_ROOT%{bash_compdir}
575 cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{bash_compdir}/git
577 # Install git-prompt.sh
578 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/contrib/completion
579 cp -p contrib/completion/git-prompt.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/contrib/completion
581 # Install bzr and hg remote helpers from contrib
582 install -p contrib/remote-helpers/git-remote-{bzr,hg} $RPM_BUILD_ROOT%{gitcoredir}
585 mv $RPM_BUILD_ROOT{%{appdir},%{cgibindir}}/gitweb.cgi
586 ln -s %{cgibindir}/gitweb.cgi $RPM_BUILD_ROOT%{appdir}/gitweb.cgi
587 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
588 cp -p %{SOURCE7} $RPM_BUILD_ROOT%{webappdir}/gitolite.pl
589 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
590 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
591 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/lighttpd.conf
594 install -p contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir}
596 # git-daemon related files
597 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon
598 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
599 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
602 sed -e 's,@libdir@/git-core,%{gitcoredir},g' -i $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
603 sed -e 's,@libdir@/git-core,%{gitcoredir},g' -i $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
606 ln -sf git $RPM_BUILD_ROOT%{_bindir}/git-receive-pack
607 ln -sf git $RPM_BUILD_ROOT%{_bindir}/git-upload-archive
608 ln -sf ../..%{gitcoredir}/git-shell $RPM_BUILD_ROOT%{_bindir}/git-shell
609 ln -sf ../..%{gitcoredir}/git-upload-pack $RPM_BUILD_ROOT%{_bindir}/git-upload-pack
610 ln -sf ../..%{gitcoredir}/git $RPM_BUILD_ROOT%{_bindir}/git
612 # convert all hardlinks to symlinks, as rpm fails to calculate it properly
613 # requiring excessive free space when it may not be available
614 # https://bugs.launchpad.net/pld-linux/+bug/1176337
615 find $RPM_BUILD_ROOT%{gitcoredir} -samefile $RPM_BUILD_ROOT%{gitcoredir}/git > files
616 for f in $(cat files); do
617 f=${f#$RPM_BUILD_ROOT%{gitcoredir}/}
618 test $f = git && continue
619 ln -snf git $RPM_BUILD_ROOT%{gitcoredir}/$f
623 ln -snf git-gui $RPM_BUILD_ROOT%{gitcoredir}/git-citool
624 ln -snf git-remote-http $RPM_BUILD_ROOT%{gitcoredir}/git-remote-https
625 ln -snf git-remote-http $RPM_BUILD_ROOT%{gitcoredir}/git-remote-ftp
626 ln -snf git-remote-http $RPM_BUILD_ROOT%{gitcoredir}/git-remote-ftps
628 # remove unneeded files
629 %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
630 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
633 mv $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
637 rm -rf $RPM_BUILD_ROOT
640 %service -q rc-inetd reload
643 if [ "$1" = "0" ]; then
644 %service -q rc-inetd reload
647 %post daemon-standalone
648 /sbin/chkconfig --add git-daemon
649 %service git-daemon restart "git-daemon"
651 %preun daemon-standalone
652 if [ "$1" = "0" ]; then
653 %service git-daemon stop
654 /sbin/chkconfig --del git-daemon
657 %triggerin gitweb -- apache1 < 1.3.37-3, apache1-base
658 %webapp_register apache %{webapp}
660 %triggerun gitweb -- apache1 < 1.3.37-3, apache1-base
661 %webapp_unregister apache %{webapp}
663 %triggerin gitweb -- apache < 2.2.0, apache-base
664 %webapp_register httpd %{webapp}
666 %triggerun gitweb -- apache < 2.2.0, apache-base
667 %webapp_unregister httpd %{webapp}
669 %triggerin gitweb -- lighttpd
670 %webapp_register lighttpd %{webapp}
672 %triggerun gitweb -- lighttpd
673 %webapp_unregister lighttpd %{webapp}
676 %defattr(644,root,root,755)
677 %doc README.md contrib-doc
678 %attr(755,root,root) %{_bindir}/git
679 %attr(755,root,root) %{_bindir}/git-receive-pack
680 %attr(755,root,root) %{_bindir}/git-shell
681 %attr(755,root,root) %{_bindir}/git-upload-archive
682 %attr(755,root,root) %{_bindir}/git-upload-pack
683 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
686 %{_mandir}/man1/git-*.1*
687 %exclude %{_mandir}/man1/git-archimport.1*
688 %exclude %{_mandir}/man1/git-svn.1*
689 %exclude %{_mandir}/man1/git-cvs*.1*
690 %exclude %{_mandir}/man1/git-imap-send*.1*
691 %exclude %{_mandir}/man1/*email*.1*
692 %{_mandir}/man1/git.1*
693 %{_mandir}/man1/gitremote-helpers.1*
694 %{_mandir}/man5/gitattributes.5*
695 %{_mandir}/man5/githooks.5*
696 %{_mandir}/man5/gitignore.5*
697 %{_mandir}/man5/gitmodules.5*
698 %{_mandir}/man5/gitrepository-layout.5*
699 %{_mandir}/man7/gitcli.7*
700 %{_mandir}/man7/gitcore-tutorial.7*
701 %{_mandir}/man7/gitcredentials.7*
702 %{_mandir}/man7/gitdiffcore.7*
703 %{_mandir}/man7/giteveryday.7*
704 %{_mandir}/man7/gitglossary.7*
705 %{_mandir}/man7/gitnamespaces.7*
706 %{_mandir}/man7/gitrevisions.7*
707 %{_mandir}/man7/gittutorial-2.7*
708 %{_mandir}/man7/gittutorial.7*
709 %{_mandir}/man7/gitworkflows.7*
713 %attr(755,root,root) %{gitcoredir}/*-*
714 %attr(755,root,root) %{gitcoredir}/git
715 %dir %{gitcoredir}/mergetools
716 %{gitcoredir}/mergetools/*
719 %{_localstatedir}/lib/git
722 %exclude %{gitcoredir}/*email*
723 %exclude %{gitcoredir}/*p4*
724 %exclude %{gitcoredir}/git-archimport
725 %exclude %{gitcoredir}/git-cvs*
726 %exclude %{gitcoredir}/git-gui
727 %exclude %{gitcoredir}/git-imap-send
728 %exclude %{gitcoredir}/git-instaweb
729 %exclude %{gitcoredir}/git-remote-bzr
730 %exclude %{gitcoredir}/git-remote-hg
731 %exclude %{gitcoredir}/git-remote-testsvn
732 %exclude %{gitcoredir}/git-svn
733 %exclude %{gitcoredir}/mergetools/p4merge
734 %if %{with gnome_keyring}
735 %exclude %{gitcoredir}/git-credential-gnome-keyring
740 %defattr(644,root,root,755)
741 %doc Documentation/RelNotes*
742 %doc Documentation/*.html Documentation/howto Documentation/technical
746 %defattr(644,root,root,755)
747 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon
749 %files daemon-standalone
750 %defattr(644,root,root,755)
751 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon
752 %attr(754,root, root) /etc/rc.d/init.d/git-daemon
755 %defattr(644,root,root,755)
756 %{_includedir}/%{name}
758 %{_libdir}/libgit_xdiff.a
761 %defattr(644,root,root,755)
763 %{_mandir}/man1/gitk.1*
765 %attr(755,root,root) %{_bindir}/gitk
766 %dir %{_datadir}/gitk
767 %dir %{_datadir}/gitk/lib
768 %dir %{_datadir}/gitk/lib/msgs
769 %lang(bg) %{_datadir}/gitk/lib/msgs/bg.msg
770 %lang(ca) %{_datadir}/gitk/lib/msgs/ca.msg
771 %lang(de) %{_datadir}/gitk/lib/msgs/de.msg
772 %lang(es) %{_datadir}/gitk/lib/msgs/es.msg
773 %lang(fr) %{_datadir}/gitk/lib/msgs/fr.msg
774 %lang(hu) %{_datadir}/gitk/lib/msgs/hu.msg
775 %lang(it) %{_datadir}/gitk/lib/msgs/it.msg
776 %lang(ja) %{_datadir}/gitk/lib/msgs/ja.msg
777 %lang(pt_BR) %{_datadir}/gitk/lib/msgs/pt_br.msg
778 %lang(ru) %{_datadir}/gitk/lib/msgs/ru.msg
779 %lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg
780 %lang(vi) %{_datadir}/gitk/lib/msgs/vi.msg
783 %defattr(644,root,root,755)
784 %doc gitweb/{README,INSTALL}
786 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf
787 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf
788 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/lighttpd.conf
789 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf
790 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitolite.pl
791 %attr(755,root,root) %{cgibindir}/gitweb.cgi
793 %attr(755,root,root) %{gitcoredir}/git-instaweb
795 %{_mandir}/man1/gitweb.1*
796 %{_mandir}/man5/gitweb.conf.5*
800 %defattr(644,root,root,755)
801 %doc contrib/gitview/gitview.txt
802 %attr(755,root,root) %{_bindir}/gitview
805 %defattr(644,root,root,755)
806 %attr(755,root,root) %{gitcoredir}/git-gui
807 %dir %{_datadir}/git-gui
808 %dir %{_datadir}/git-gui/lib
809 %dir %{_datadir}/git-gui/lib/msgs
810 %{_datadir}/git-gui/lib/git-gui.ico
811 %{_datadir}/git-gui/lib/tclIndex
812 %{_datadir}/git-gui/lib/*.js
813 %{_datadir}/git-gui/lib/*.tcl
814 %lang(bg) %{_datadir}/git-gui/lib/msgs/bg.msg
815 %lang(de) %{_datadir}/git-gui/lib/msgs/de.msg
816 %lang(el) %{_datadir}/git-gui/lib/msgs/el.msg
817 %lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg
818 %lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg
819 %lang(it) %{_datadir}/git-gui/lib/msgs/it.msg
820 %lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg
821 %lang(nb) %{_datadir}/git-gui/lib/msgs/nb.msg
822 %lang(pt_br) %{_datadir}/git-gui/lib/msgs/pt_br.msg
823 %lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg
824 %lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg
825 %lang(vi) %{_datadir}/git-gui/lib/msgs/vi.msg
826 %lang(zh_CN) %{_datadir}/git-gui/lib/msgs/zh_cn.msg
829 %defattr(644,root,root,755)
830 %attr(755,root,root) %{gitcoredir}/git-archimport
832 %{_mandir}/man1/git-archimport.1*
836 %defattr(644,root,root,755)
837 %attr(755,root,root) %{gitcoredir}/git-remote-bzr
840 %defattr(644,root,root,755)
841 %attr(755,root,root) %{_bindir}/git-cvsserver
842 %attr(755,root,root) %{gitcoredir}/git-cvs*
844 %{_mandir}/man1/git-cvs*.1*
845 %{_mandir}/man7/gitcvs-migration.7*
849 %defattr(644,root,root,755)
850 %attr(755,root,root) %{gitcoredir}/git-remote-hg
853 %defattr(644,root,root,755)
854 %attr(755,root,root) %{gitcoredir}/git-p4
855 %attr(755,root,root) %{gitcoredir}/mergetools/p4merge
858 %defattr(644,root,root,755)
859 %attr(755,root,root) %{gitcoredir}/git-svn
860 %attr(755,root,root) %{gitcoredir}/git-remote-testsvn
861 %{perl_vendorlib}/Git/SVN
862 %{perl_vendorlib}/Git/SVN.pm
864 %{_mandir}/man1/git-svn.1*
866 %{_mandir}/man3/Git::SVN::Editor.3pm*
867 %{_mandir}/man3/Git::SVN::Fetcher.3pm*
868 %{_mandir}/man3/Git::SVN::Memoize::YAML.3pm*
869 %{_mandir}/man3/Git::SVN::Prompt.3pm*
870 %{_mandir}/man3/Git::SVN::Ra.3pm*
871 %{_mandir}/man3/Git::SVN::Utils.3pm*
874 %defattr(644,root,root,755)
875 %attr(755,root,root) %{gitcoredir}/git-imap-send
876 %attr(755,root,root) %{gitcoredir}/*email*
878 %{_mandir}/man1/*email*.1*
879 %{_mandir}/man1/*imap-send*.1*
882 %files -n bash-completion-git
883 %defattr(644,root,root,755)
887 %defattr(644,root,root,755)
888 %{perl_vendorlib}/Git.pm
889 %dir %{perl_vendorlib}/Git
890 %{perl_vendorlib}/Git/I18N.pm
891 %{perl_vendorlib}/Git/IndexInfo.pm
892 %{_mandir}/man3/Git.3pm*
893 %{_mandir}/man3/Git::I18N.3pm*
895 %if %{with gnome_keyring}
896 %files -n gnome-keyring-git-core
897 %defattr(644,root,root,755)
898 %attr(755,root,root) %{gitcoredir}/git-credential-gnome-keyring