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