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