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