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