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