]> git.pld-linux.org Git - packages/git-core.git/blame - git-core.spec
up to 1.7.12
[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
1f8979fc 5%bcond_with tests_svn # perform tests which use subversion
f74aede9 6%bcond_without doc # skip building/packaging docs/manuals (takes some time)
cdeb0400 7
89a476f8 8%include /usr/lib/rpm/macros.perl
479de23d
AM
9Summary: Distributed version control system focused on speed, effectivity and usability
10Summary(pl.UTF-8): Rozproszony system śledzenia treści skupiony na szybkości, wydajności i użyteczności
51c3b977 11Name: git-core
bbceff2c 12Version: 1.7.12
982bc3d7 13Release: 1
51c3b977 14License: GPL v2
15Group: Development/Tools
f9e84140 16Source0: http://git-core.googlecode.com/files/git-%{version}.tar.gz
4ac30d4f 17# Source0-md5: ceb1a6b17a3e33bbc70eadf8fce5876c
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/
fdf2ed38 28BuildRequires: autoconf >= 2.59
11856720 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)
93a30d5e 209Suggests: webserver(setenv)
be2ccf99
AG
210
211%description gitweb
212This package provides a web interface for browsing git repositories.
213
214%description gitweb -l pl.UTF-8
2712fe7b 215Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita.
be2ccf99 216
e1c8d79f 217%package gitview
30794a22
JB
218Summary: A GTK+ based repository browser for git
219Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita
e1c8d79f 220Group: Development/Tools
221Requires: %{name} = %{version}-%{release}
c95a5d99
JB
222Requires: python >= 1:2.4
223Requires: python-pycairo >= 1.0
224Requires: python-pygobject
225Requires: python-pygtk-gtk >= 2:2.8
226Suggests: python-gnome-desktop-gtksourceview
e1c8d79f 227
228%description gitview
30794a22 229A GTK+ based repository browser for git.
e1c8d79f 230
231%description gitview -l pl.UTF-8
30794a22 232Oparta na GTK+ przeglądarka repozytorium gita.
e1c8d79f 233
f9871074
AG
234%package gui
235Summary: Tcl/Tk interface to the Git version control system
236Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
237Group: Development/Tools
238Requires: %{name} = %{version}-%{release}
239Requires: tk
d4106757 240Requires: xdg-utils
531b434f 241Suggests: meld
f9871074
AG
242
243%description gui
244Displays changes in a repository or a selected set of commits. This
245includes visualizing the commit graph, showing information related to
246each commit, and the files in the trees of each revision.
247
248Historically, gitk was the first repository browser. It's written in
249Tcl/Tk and started off in a separate repository but was later merged
250into the main git repository.
251
252%description gui -l pl.UTF-8
253Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza
254to wizualizację grafu commitów, wyświetlanie informacji związanych z
255każdym z commitów oraz listę plików dla każdej rewizji.
256
257Z punktu widzenia historii, gitk był pierwszą przeglądarką
258repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
259osobnym repozytorium, ale z czasem został włączony do głównego
260repozytorium gita.
261
2c0376c9
AM
262%package svn
263Summary: Subversion support for Git
41b5f4b1 264Summary(pl.UTF-8): Obsługa Subversion dla Gita
2c0376c9
AM
265Group: Development/Tools
266Requires: %{name} = %{version}-%{release}
daccfb39 267Requires: perl-Encode
4ea37765 268Requires: perl-Term-ReadKey
2c0376c9
AM
269
270%description svn
271Subversion support for Git.
272
273%description svn -l pl.UTF-8
41b5f4b1 274Obsługa Subversion dla Gita.
2c0376c9
AM
275
276%package cvs
277Summary: CVS support for Git
41b5f4b1 278Summary(pl.UTF-8): Obsługa CVS dla Gita
2c0376c9
AM
279Group: Development/Tools
280Requires: %{name} = %{version}-%{release}
281Requires: cvsps >= 2.1-2
282Requires: rcs
283
284%description cvs
285CVS support for Git.
286
287%description cvs -l pl.UTF-8
41b5f4b1 288Obsługa CVS dla Gita.
2c0376c9 289
d82521ea
ER
290%package arch
291Summary: Git tools for importing Arch repositories
41b5f4b1 292Summary(pl.UTF-8): Narzędzia Gita do importowania repozytoriów Archa
d82521ea
ER
293Group: Development/Tools
294Requires: %{name} = %{version}-%{release}
295Requires: tla
296
297%description arch
298Git tools for importing Arch repositories.
299
41b5f4b1
JB
300%description arch -l pl.UTF-8
301Narzędzia Gita do importowania repozytoriów Archa.
302
d82521ea
ER
303%package email
304Summary: Git tools for sending email
41b5f4b1 305Summary(pl.UTF-8): Narzędzia Gita do wysyłania poczty
d82521ea
ER
306Group: Development/Tools
307Requires: %{name} = %{version}-%{release}
308
309%description email
310Git tools for sending email.
311
41b5f4b1
JB
312%description email -l pl.UTF-8
313Narzędzia Gita do wysyłania poczty.
314
f2c1983d
AG
315%package -n bash-completion-git
316Summary: bash-completion for git
2712fe7b 317Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita
02059138 318Group: Applications/Shells
cdeb0400 319Requires: %{name} = %{version}-%{release}
f2c1983d
AG
320Requires: bash-completion
321
322%description -n bash-completion-git
323This package provides bash-completion for git.
324
325%description -n bash-completion-git -l pl.UTF-8
5383e3af 326Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita.
f2c1983d 327
3dc01deb 328%package -n perl-Git
5d7220ad 329Summary: Perl interface to the Git version control system
3f8032f4 330Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git
5d7220ad 331Group: Development/Languages/Perl
27b79a12 332Obsoletes: perl-git-core
5d7220ad 333
3dc01deb 334%description -n perl-Git
5d7220ad
AM
335This module provides Perl scripts easy way to interface the Git
336version control system. The modules have an easy and well-tested way
337to call arbitrary Git commands; in the future, the interface will also
338provide specialized methods for doing easily operations which are not
339totally trivial to do over the generic command interface.
340
ea061c99
JR
341%description -n perl-Git -l pl.UTF-8
342Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli
08cc92d7
ER
343wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać
344dowolne polecenia Gita; w przyszłości interfejs udostępni także
345specjalne metody do łatwego wykonywania operacji nietrywialnych do
346wykonania przy użyciu ogólnego interfejsu poleceń.
7eef96e1 347
778b89a7 348%package -n python-Git
3a76b879
JB
349Summary: Python Git remote helpers for non-git repositories
350Summary(pl.UTF-8): Pythonowe zdalne moduły pomocnicze dla repozytoriów niegitowych
778b89a7 351Group: Development/Languages/Python
cdeb0400 352Requires: %{name} = %{version}-%{release}
778b89a7
AM
353
354%description -n python-Git
3a76b879
JB
355This package contains Python git_repote_helpers package - Git remote
356helpers for non-git repositories.
778b89a7
AM
357
358%description -n python-Git -l pl.UTF-8
3a76b879
JB
359Ten pakiet zawiera pakiet Pythona git_remote_helpers - zdalne moduły
360pomocnicze Gita dla repozytoriów niegitowych.
778b89a7 361
f2c1983d
AG
362%package -n vim-syntax-gitcommit
363Summary: Vim syntax: gitcommit
2712fe7b 364Summary(pl.UTF-8): Składnia dla Vima: gitcommit
f2c1983d 365Group: Applications/Editors/Vim
cdeb0400 366Requires: %{name} = %{version}-%{release}
f2c1983d 367# for _vimdatadir existence
34bbdd69 368Requires: vim-rt >= 4:6.3.058-3
f2c1983d
AG
369
370%description -n vim-syntax-gitcommit
371This plugin provides syntax highlighting for git's commit messages.
372
373%description -n vim-syntax-gitcommit -l pl.UTF-8
2712fe7b 374Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
f2c1983d 375
51c3b977 376%prep
bf83806a 377%setup -q -n git-%{version}
6b1e62ae 378%patch0 -p1
b2c254f3 379%patch1 -p0
d12d8532 380%patch2 -p1
a1036d06 381
382%build
11856720
AM
383%{__aclocal}
384%{__autoconf}
385%configure \
d12d8532 386 --sysconfdir=%{_sysconfdir}/git-core \
11856720 387 --with-openssl
51c3b977 388
7cfee1ba
KK
389echo "BLK_SHA1=1" >> config.mak
390
b69112f7 391%{__make} \
be2ccf99
AG
392 INSTALLDIRS=vendor \
393 GITWEB_CONFIG="%{webappdir}/gitweb.conf" \
394 GITWEB_PROJECTROOT="/var/lib/git" \
395 GITWEB_CSS="/gitweb/gitweb.css" \
396 GITWEB_LOGO="/gitweb/git-logo.png" \
f74aede9
JB
397 GITWEB_FAVICON="/gitweb/git-favicon.png" \
398 V=1
27b79a12 399
0580c0e2 400%{?with_doc:%{__make} -C Documentation V=1}
7fdeb28c 401
db032591
AM
402%if %{with tests}
403%if %{without tests_cvs}
aa2c9330 404rm t/t*cvs*.sh || :
db032591 405%endif
acc7b6c4 406%{!?with_tests_svn:GIT_SKIP_TESTS='t91??'} %{__make} test
db032591 407%endif
6c0d6e05 408
51c3b977 409%install
410rm -rf $RPM_BUILD_ROOT
5db07614 411install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git}
be2ccf99 412install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
5db07614 413install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
cdeb0400 414install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
d12d8532
KK
415cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/git-core/gitconfig
416[init]
cdeb0400 417 templatedir = %{_sysconfdir}/%{name}/templates
d12d8532 418EOF
c751087d 419
51c3b977 420%{__make} install \
d778c02c 421 INSTALLDIRS=vendor \
51c3b977 422 DESTDIR=$RPM_BUILD_ROOT
423
08cc92d7 424%if %{with doc}
7fdeb28c 425%{__make} -C Documentation install \
7fdeb28c 426 DESTDIR=$RPM_BUILD_ROOT
08cc92d7 427%endif
7fdeb28c 428
d12d8532
KK
429# copy templates except sample hooks
430cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/templates $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
431%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates/hooks/*.sample
432
1f25da6d 433# header files and lib
cdeb0400 434cp -p *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
31b26a50 435cp -a compat $RPM_BUILD_ROOT%{_includedir}/%{name}
cdeb0400
ER
436cp -p xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
437cp -p libgit.a $RPM_BUILD_ROOT%{_libdir}
438cp -p xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a
e3cefa79 439
f2c1983d 440# bash completion
cdeb0400
ER
441install -d $RPM_BUILD_ROOT/etc/bash_completion.d
442cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d
f2c1983d
AG
443
444# vim syntax
d82521ea
ER
445install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
446cat > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax/gitcommit.vim << 'EOF'
670fe4d6
AG
447autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit
448autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig
449autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase
450autocmd BufNewFile,BufRead .msg.[0-9]*
451 \ if getline(1) =~ '^From.*# This line is ignored.$' |
452 \ setf gitsendemail |
453 \ endif
454autocmd BufNewFile,BufRead *.git/**
455 \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' |
456 \ setf git |
457 \ endif
458EOF
f2c1983d 459
be2ccf99 460# gitweb
4f98dcd3 461mv $RPM_BUILD_ROOT{%{appdir},%{cgibindir}}/gitweb.cgi
93a30d5e 462ln -s %{cgibindir}/gitweb.cgi $RPM_BUILD_ROOT%{appdir}/gitweb.cgi
cdeb0400
ER
463cp -p %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
464cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
465cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
466cp -p %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/lighttpd.conf
be2ccf99 467
e1c8d79f 468# gitview
d82521ea 469install -p contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir}
e1c8d79f 470
b11ada2c 471# git-daemon related files
51ce768a
KK
472cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon
473cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
474install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
b11ada2c 475
bf7a9a54 476# paths cleanup
2c0376c9 477sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
bf7a9a54
AG
478sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
479
4e9fd7a9
ER
480# hardlink
481ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-receive-pack}
482ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-upload-archive}
483ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-shell
484ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-upload-pack
485
be2ccf99 486# remove unneeded files
cdeb0400
ER
487%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
488%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
44ee5525 489%py_postclean
27b79a12 490
815a92b1 491mv $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
fdf2ed38
JB
492%find_lang git
493
51c3b977 494%clean
495rm -rf $RPM_BUILD_ROOT
496
b11ada2c
AG
497%post daemon-inetd
498%service -q rc-inetd reload
499
500%postun daemon-inetd
501if [ "$1" = "0" ]; then
502 %service -q rc-inetd reload
503fi
504
505%post daemon-standalone
506/sbin/chkconfig --add git-daemon
507%service git-daemon restart "git-daemon"
508
509%preun daemon-standalone
510if [ "$1" = "0" ]; then
511 %service git-daemon stop
512 /sbin/chkconfig --del git-daemon
513fi
514
be2ccf99
AG
515%triggerin gitweb -- apache1 < 1.3.37-3, apache1-base
516%webapp_register apache %{webapp}
517
518%triggerun gitweb -- apache1 < 1.3.37-3, apache1-base
519%webapp_unregister apache %{webapp}
520
521%triggerin gitweb -- apache < 2.2.0, apache-base
522%webapp_register httpd %{webapp}
523
524%triggerun gitweb -- apache < 2.2.0, apache-base
525%webapp_unregister httpd %{webapp}
526
51ce768a
KK
527%triggerin gitweb -- lighttpd
528%webapp_register lighttpd %{webapp}
529
530%triggerun gitweb -- lighttpd
531%webapp_unregister lighttpd %{webapp}
532
fdf2ed38 533%files -f git.lang
51c3b977 534%defattr(644,root,root,755)
08cc92d7 535%doc README contrib
a8655d02 536%attr(755,root,root) %{_bindir}/git
44ee5525
ER
537%attr(755,root,root) %{_bindir}/git-receive-pack
538%attr(755,root,root) %{_bindir}/git-shell
539%attr(755,root,root) %{_bindir}/git-upload-archive
540%attr(755,root,root) %{_bindir}/git-upload-pack
cdeb0400 541%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
a8655d02 542
08cc92d7 543%if %{with doc}
0afd37aa 544%{_mandir}/man1/git-*.1*
2c0376c9
AM
545%exclude %{_mandir}/man1/git-svn.1*
546%exclude %{_mandir}/man1/git-cvs*.1*
24b69c0a 547%exclude %{_mandir}/man1/git-remote-helpers.1*
a48d28b8 548%{_mandir}/man1/git.1*
0afd37aa 549%{_mandir}/man5/gitattributes.5*
a48d28b8 550%{_mandir}/man5/githooks.5*
0afd37aa 551%{_mandir}/man5/gitignore.5*
785b167d 552%{_mandir}/man5/gitmodules.5*
a48d28b8
AG
553%{_mandir}/man5/gitrepository-layout.5*
554%{_mandir}/man7/gitcli.7*
555%{_mandir}/man7/gitcore-tutorial.7*
fdf2ed38 556%{_mandir}/man7/gitcredentials.7*
a48d28b8
AG
557%{_mandir}/man7/gitdiffcore.7*
558%{_mandir}/man7/gitglossary.7*
60b58680 559%{_mandir}/man7/gitnamespaces.7*
f16e8911 560%{_mandir}/man7/gitrevisions.7*
a48d28b8
AG
561%{_mandir}/man7/gittutorial-2.7*
562%{_mandir}/man7/gittutorial.7*
670fe4d6 563%{_mandir}/man7/gitworkflows.7*
08cc92d7 564%endif
a8655d02 565
bf6fa63c
AM
566%dir %{_libdir}/%{name}
567%attr(755,root,root) %{_libdir}/%{name}/*-*
39dc084d 568%attr(755,root,root) %{_libdir}/%{name}/git
60b58680 569%{_libdir}/%{name}/mergetools
a8655d02 570
bf6fa63c 571%exclude %{_libdir}/%{name}/git-gui
2c0376c9 572%exclude %{_libdir}/%{name}/git-svn
d82521ea 573%exclude %{_libdir}/%{name}/git-archimport
2c0376c9 574%exclude %{_libdir}/%{name}/git-cvs*
93a30d5e 575%exclude %{_libdir}/%{name}/git-instaweb
24b69c0a 576%exclude %{_libdir}/%{name}/git-remote-testgit
d82521ea 577%exclude %{_libdir}/%{name}/*email*
a8655d02 578
6c4f9a5b 579%{_datadir}/%{name}
a8655d02 580
5db07614 581%{_localstatedir}/lib/git
e3cefa79 582
a8655d02
ER
583%if %{with doc}
584%files doc
778b89a7 585%defattr(644,root,root,755)
a8655d02
ER
586%doc Documentation/RelNotes*
587%doc Documentation/*.html Documentation/howto Documentation/technical
588%endif
589
b11ada2c
AG
590%files daemon-inetd
591%defattr(644,root,root,755)
592%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon
593
594%files daemon-standalone
595%defattr(644,root,root,755)
596%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon
597%attr(754,root, root) /etc/rc.d/init.d/git-daemon
598
e3cefa79 599%files devel
3ff86e9e 600%defattr(644,root,root,755)
cdeb0400 601%{_includedir}/%{name}
5db07614 602%{_libdir}/libgit.a
eaf5c40c 603%{_libdir}/libgit_xdiff.a
5d7220ad 604
91396e2e
AG
605%files gitk
606%defattr(644,root,root,755)
08cc92d7 607%if %{with doc}
91396e2e 608%{_mandir}/man1/gitk.1*
08cc92d7
ER
609%endif
610%attr(755,root,root) %{_bindir}/gitk
9fa88d97
AM
611%dir %{_datadir}/gitk
612%dir %{_datadir}/gitk/lib
613%dir %{_datadir}/gitk/lib/msgs
3b243bbe 614%lang(de) %{_datadir}/gitk/lib/msgs/de.msg
f9871074 615%lang(es) %{_datadir}/gitk/lib/msgs/es.msg
778b89a7
AM
616%lang(fr) %{_datadir}/gitk/lib/msgs/fr.msg
617%lang(hu) %{_datadir}/gitk/lib/msgs/hu.msg
3b243bbe 618%lang(it) %{_datadir}/gitk/lib/msgs/it.msg
469258c9 619%lang(ja) %{_datadir}/gitk/lib/msgs/ja.msg
3ed82b68 620%lang(pt_BR) %{_datadir}/gitk/lib/msgs/pt_br.msg
95998f97 621%lang(ru) %{_datadir}/gitk/lib/msgs/ru.msg
f9871074 622%lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg
91396e2e 623
be2ccf99
AG
624%files gitweb
625%defattr(644,root,root,755)
626%doc gitweb/{README,INSTALL}
627%dir %{webappdir}
628%config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf
629%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf
630%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf
51ce768a 631%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/lighttpd.conf
be2ccf99
AG
632%attr(755,root,root) %{cgibindir}/gitweb.cgi
633%{appdir}
93a30d5e
KK
634%attr(755,root,root) %{_libdir}/%{name}/git-instaweb
635%if %{with doc}
0c582eb3
AM
636%{_mandir}/man1/gitweb.1*
637%{_mandir}/man5/gitweb.conf.5*
93a30d5e 638%endif
be2ccf99 639
e1c8d79f 640%files gitview
641%defattr(644,root,root,755)
642%doc contrib/gitview/gitview.txt
643%attr(755,root,root) %{_bindir}/gitview
644
f9871074
AG
645%files gui
646%defattr(644,root,root,755)
bf6fa63c 647%attr(755,root,root) %{_libdir}/%{name}/git-gui
f9871074
AG
648%dir %{_datadir}/git-gui
649%dir %{_datadir}/git-gui/lib
650%dir %{_datadir}/git-gui/lib/msgs
651%{_datadir}/git-gui/lib/git-gui.ico
652%{_datadir}/git-gui/lib/tclIndex
653%{_datadir}/git-gui/lib/*.js
654%{_datadir}/git-gui/lib/*.tcl
655%lang(de) %{_datadir}/git-gui/lib/msgs/de.msg
469258c9 656%lang(el) %{_datadir}/git-gui/lib/msgs/el.msg
f9871074
AG
657%lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg
658%lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg
659%lang(it) %{_datadir}/git-gui/lib/msgs/it.msg
660%lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg
670fe4d6 661%lang(nb) %{_datadir}/git-gui/lib/msgs/nb.msg
e21aea75 662%lang(pt_br) %{_datadir}/git-gui/lib/msgs/pt_br.msg
f9871074
AG
663%lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg
664%lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg
35cbc54f 665%lang(zh_CN) %{_datadir}/git-gui/lib/msgs/zh_cn.msg
f9871074 666
2c0376c9
AM
667%files svn
668%defattr(644,root,root,755)
669%attr(755,root,root) %{_libdir}/%{name}/git-svn
b5884c73 670%{perl_vendorlib}/Git/SVN
bbceff2c 671%{perl_vendorlib}/Git/SVN.pm
2c0376c9
AM
672%if %{with doc}
673%{_mandir}/man1/git-svn.1*
674%endif
675
676%files cvs
677%defattr(644,root,root,755)
44ee5525 678%attr(755,root,root) %{_bindir}/git-cvsserver
2c0376c9
AM
679%attr(755,root,root) %{_libdir}/%{name}/git-cvs*
680%if %{with doc}
681%{_mandir}/man1/git-cvs*.1*
682%{_mandir}/man7/gitcvs-migration.7*
683%endif
684
d82521ea
ER
685%files arch
686%defattr(644,root,root,755)
d82521ea
ER
687%attr(755,root,root) %{_libdir}/%{name}/git-archimport
688%if %{with doc}
d82521ea
ER
689%{_mandir}/man1/git-archimport.1*
690%endif
691
692%files email
693%defattr(644,root,root,755)
d82521ea
ER
694%attr(755,root,root) %{_libdir}/%{name}/*email*
695%if %{with doc}
d82521ea
ER
696%{_mandir}/man1/*email*.1*
697%endif
698
f2c1983d
AG
699%files -n bash-completion-git
700%defattr(644,root,root,755)
7baeed33 701/etc/bash_completion.d/git-completion.bash
f2c1983d 702
3dc01deb 703%files -n perl-Git
5d7220ad 704%defattr(644,root,root,755)
3dc01deb 705%{perl_vendorlib}/Git.pm
b5884c73
KK
706%dir %{perl_vendorlib}/Git
707%{perl_vendorlib}/Git/I18N.pm
bbceff2c 708%{perl_vendorlib}/Git/IndexInfo.pm
fdf2ed38 709%{_mandir}/man3/Git*.3pm*
f2c1983d 710
778b89a7
AM
711%files -n python-Git
712%defattr(644,root,root,755)
24b69c0a 713%attr(755,root,root) %{_libdir}/%{name}/git-remote-testgit
778b89a7
AM
714%dir %{py_sitescriptdir}/git_remote_helpers
715%{py_sitescriptdir}/git_remote_helpers/*.py[co]
716%dir %{py_sitescriptdir}/git_remote_helpers/git
717%{py_sitescriptdir}/git_remote_helpers/git/*.py[co]
ab6547d4
ER
718%if "%{py_ver}" > "2.4"
719%{py_sitescriptdir}/git_remote_helpers*.egg-info
720%endif
24b69c0a
KK
721%if %{with doc}
722%{_mandir}/man1/git-remote-helpers.1*
723%endif
778b89a7 724
f2c1983d
AG
725%files -n vim-syntax-gitcommit
726%defattr(644,root,root,755)
727%doc contrib/vim/README
7baeed33 728%{_datadir}/vim/vimfiles/syntax/gitcommit.vim
This page took 0.216496 seconds and 4 git commands to generate.