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