]> git.pld-linux.org Git - packages/git-core.git/blame - git-core.spec
- up to 1.8.0-rc2
[packages/git-core.git] / git-core.spec
CommitLineData
84013e7c 1#
891d0b05 2# Conditional build:
f74aede9
JB
3%bcond_without tests # don't perform make test
4%bcond_with tests_cvs # perform tests which use CVS
1f8979fc 5%bcond_with tests_svn # perform tests which use subversion
f74aede9 6%bcond_without doc # skip building/packaging docs/manuals (takes some time)
cdeb0400 7
2583cfca 8%define _rc rc2
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
2583cfca 19# Source0-md5: 9d4d7c02b64174f5f81d314b9b4f5c54
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
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
66a7f095 166Summary: Header files for git-core
3f8032f4 167Summary(pl.UTF-8): Pliki nagłówkowe dla git-core
66a7f095 168Group: Development/Libraries
d52424f5 169Requires: zlib-devel
e3cefa79 170
171%description devel
66a7f095 172Header files for git-core.
173
ea061c99
JR
174%description devel -l pl.UTF-8
175Pliki nagłówkowe dla git-core.
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
912e94f8 379%setup -q -n git-%{version}.%{_rc}
6b1e62ae 380%patch0 -p1
b2c254f3 381%patch1 -p0
d12d8532 382%patch2 -p1
a1036d06 383
384%build
11856720
AM
385%{__aclocal}
386%{__autoconf}
387%configure \
d12d8532 388 --sysconfdir=%{_sysconfdir}/git-core \
11856720 389 --with-openssl
51c3b977 390
7cfee1ba
KK
391echo "BLK_SHA1=1" >> config.mak
392
b69112f7 393%{__make} \
be2ccf99
AG
394 INSTALLDIRS=vendor \
395 GITWEB_CONFIG="%{webappdir}/gitweb.conf" \
396 GITWEB_PROJECTROOT="/var/lib/git" \
397 GITWEB_CSS="/gitweb/gitweb.css" \
398 GITWEB_LOGO="/gitweb/git-logo.png" \
f74aede9
JB
399 GITWEB_FAVICON="/gitweb/git-favicon.png" \
400 V=1
27b79a12 401
0580c0e2 402%{?with_doc:%{__make} -C Documentation V=1}
7fdeb28c 403
db032591
AM
404%if %{with tests}
405%if %{without tests_cvs}
aa2c9330 406rm t/t*cvs*.sh || :
db032591 407%endif
acc7b6c4 408%{!?with_tests_svn:GIT_SKIP_TESTS='t91??'} %{__make} test
db032591 409%endif
6c0d6e05 410
51c3b977 411%install
412rm -rf $RPM_BUILD_ROOT
5db07614 413install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git}
be2ccf99 414install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
5db07614 415install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
cdeb0400 416install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
d12d8532
KK
417cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/git-core/gitconfig
418[init]
cdeb0400 419 templatedir = %{_sysconfdir}/%{name}/templates
d12d8532 420EOF
c751087d 421
51c3b977 422%{__make} install \
d778c02c 423 INSTALLDIRS=vendor \
51c3b977 424 DESTDIR=$RPM_BUILD_ROOT
425
08cc92d7 426%if %{with doc}
7fdeb28c 427%{__make} -C Documentation install \
7fdeb28c 428 DESTDIR=$RPM_BUILD_ROOT
08cc92d7 429%endif
7fdeb28c 430
d12d8532
KK
431# copy templates except sample hooks
432cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/templates $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
433%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates/hooks/*.sample
434
1f25da6d 435# header files and lib
cdeb0400 436cp -p *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
31b26a50 437cp -a compat $RPM_BUILD_ROOT%{_includedir}/%{name}
cdeb0400
ER
438cp -p xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
439cp -p libgit.a $RPM_BUILD_ROOT%{_libdir}
440cp -p xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a
e3cefa79 441
f2c1983d 442# bash completion
cdeb0400
ER
443install -d $RPM_BUILD_ROOT/etc/bash_completion.d
444cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d
f2c1983d
AG
445
446# vim syntax
d82521ea
ER
447install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
448cat > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax/gitcommit.vim << 'EOF'
670fe4d6
AG
449autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit
450autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig
451autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase
452autocmd BufNewFile,BufRead .msg.[0-9]*
453 \ if getline(1) =~ '^From.*# This line is ignored.$' |
454 \ setf gitsendemail |
455 \ endif
456autocmd BufNewFile,BufRead *.git/**
457 \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' |
458 \ setf git |
459 \ endif
460EOF
f2c1983d 461
be2ccf99 462# gitweb
4f98dcd3 463mv $RPM_BUILD_ROOT{%{appdir},%{cgibindir}}/gitweb.cgi
93a30d5e 464ln -s %{cgibindir}/gitweb.cgi $RPM_BUILD_ROOT%{appdir}/gitweb.cgi
cdeb0400
ER
465cp -p %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
466cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
467cp -p %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
468cp -p %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/lighttpd.conf
be2ccf99 469
e1c8d79f 470# gitview
d82521ea 471install -p contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir}
e1c8d79f 472
b11ada2c 473# git-daemon related files
51ce768a
KK
474cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon
475cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
476install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
b11ada2c 477
bf7a9a54 478# paths cleanup
2c0376c9 479sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
bf7a9a54
AG
480sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
481
4e9fd7a9
ER
482# hardlink
483ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-receive-pack}
484ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-upload-archive}
485ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-shell
486ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-upload-pack
487
be2ccf99 488# remove unneeded files
cdeb0400
ER
489%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
490%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
44ee5525 491%py_postclean
27b79a12 492
815a92b1 493mv $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
fdf2ed38
JB
494%find_lang git
495
51c3b977 496%clean
497rm -rf $RPM_BUILD_ROOT
498
b11ada2c
AG
499%post daemon-inetd
500%service -q rc-inetd reload
501
502%postun daemon-inetd
503if [ "$1" = "0" ]; then
504 %service -q rc-inetd reload
505fi
506
507%post daemon-standalone
508/sbin/chkconfig --add git-daemon
509%service git-daemon restart "git-daemon"
510
511%preun daemon-standalone
512if [ "$1" = "0" ]; then
513 %service git-daemon stop
514 /sbin/chkconfig --del git-daemon
515fi
516
be2ccf99
AG
517%triggerin gitweb -- apache1 < 1.3.37-3, apache1-base
518%webapp_register apache %{webapp}
519
520%triggerun gitweb -- apache1 < 1.3.37-3, apache1-base
521%webapp_unregister apache %{webapp}
522
523%triggerin gitweb -- apache < 2.2.0, apache-base
524%webapp_register httpd %{webapp}
525
526%triggerun gitweb -- apache < 2.2.0, apache-base
527%webapp_unregister httpd %{webapp}
528
51ce768a
KK
529%triggerin gitweb -- lighttpd
530%webapp_register lighttpd %{webapp}
531
532%triggerun gitweb -- lighttpd
533%webapp_unregister lighttpd %{webapp}
534
fdf2ed38 535%files -f git.lang
51c3b977 536%defattr(644,root,root,755)
08cc92d7 537%doc README contrib
a8655d02 538%attr(755,root,root) %{_bindir}/git
44ee5525
ER
539%attr(755,root,root) %{_bindir}/git-receive-pack
540%attr(755,root,root) %{_bindir}/git-shell
541%attr(755,root,root) %{_bindir}/git-upload-archive
542%attr(755,root,root) %{_bindir}/git-upload-pack
cdeb0400 543%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
a8655d02 544
08cc92d7 545%if %{with doc}
0afd37aa 546%{_mandir}/man1/git-*.1*
dbde9893 547%exclude %{_mandir}/man1/git-archimport.1*
2c0376c9
AM
548%exclude %{_mandir}/man1/git-svn.1*
549%exclude %{_mandir}/man1/git-cvs*.1*
dbde9893 550%exclude %{_mandir}/man1/*email*.1*
24b69c0a 551%exclude %{_mandir}/man1/git-remote-helpers.1*
a48d28b8 552%{_mandir}/man1/git.1*
0afd37aa 553%{_mandir}/man5/gitattributes.5*
a48d28b8 554%{_mandir}/man5/githooks.5*
0afd37aa 555%{_mandir}/man5/gitignore.5*
785b167d 556%{_mandir}/man5/gitmodules.5*
a48d28b8
AG
557%{_mandir}/man5/gitrepository-layout.5*
558%{_mandir}/man7/gitcli.7*
559%{_mandir}/man7/gitcore-tutorial.7*
fdf2ed38 560%{_mandir}/man7/gitcredentials.7*
a48d28b8
AG
561%{_mandir}/man7/gitdiffcore.7*
562%{_mandir}/man7/gitglossary.7*
60b58680 563%{_mandir}/man7/gitnamespaces.7*
f16e8911 564%{_mandir}/man7/gitrevisions.7*
a48d28b8
AG
565%{_mandir}/man7/gittutorial-2.7*
566%{_mandir}/man7/gittutorial.7*
670fe4d6 567%{_mandir}/man7/gitworkflows.7*
08cc92d7 568%endif
a8655d02 569
bf6fa63c
AM
570%dir %{_libdir}/%{name}
571%attr(755,root,root) %{_libdir}/%{name}/*-*
39dc084d 572%attr(755,root,root) %{_libdir}/%{name}/git
60b58680 573%{_libdir}/%{name}/mergetools
a8655d02 574
bf6fa63c 575%exclude %{_libdir}/%{name}/git-gui
2c0376c9 576%exclude %{_libdir}/%{name}/git-svn
d82521ea 577%exclude %{_libdir}/%{name}/git-archimport
2c0376c9 578%exclude %{_libdir}/%{name}/git-cvs*
93a30d5e 579%exclude %{_libdir}/%{name}/git-instaweb
24b69c0a 580%exclude %{_libdir}/%{name}/git-remote-testgit
d82521ea 581%exclude %{_libdir}/%{name}/*email*
a8655d02 582
6c4f9a5b 583%{_datadir}/%{name}
a8655d02 584
5db07614 585%{_localstatedir}/lib/git
e3cefa79 586
a8655d02
ER
587%if %{with doc}
588%files doc
778b89a7 589%defattr(644,root,root,755)
a8655d02
ER
590%doc Documentation/RelNotes*
591%doc Documentation/*.html Documentation/howto Documentation/technical
592%endif
593
b11ada2c
AG
594%files daemon-inetd
595%defattr(644,root,root,755)
596%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon
597
598%files daemon-standalone
599%defattr(644,root,root,755)
600%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon
601%attr(754,root, root) /etc/rc.d/init.d/git-daemon
602
e3cefa79 603%files devel
3ff86e9e 604%defattr(644,root,root,755)
cdeb0400 605%{_includedir}/%{name}
5db07614 606%{_libdir}/libgit.a
eaf5c40c 607%{_libdir}/libgit_xdiff.a
5d7220ad 608
91396e2e
AG
609%files gitk
610%defattr(644,root,root,755)
08cc92d7 611%if %{with doc}
91396e2e 612%{_mandir}/man1/gitk.1*
08cc92d7
ER
613%endif
614%attr(755,root,root) %{_bindir}/gitk
9fa88d97
AM
615%dir %{_datadir}/gitk
616%dir %{_datadir}/gitk/lib
617%dir %{_datadir}/gitk/lib/msgs
3b243bbe 618%lang(de) %{_datadir}/gitk/lib/msgs/de.msg
f9871074 619%lang(es) %{_datadir}/gitk/lib/msgs/es.msg
778b89a7
AM
620%lang(fr) %{_datadir}/gitk/lib/msgs/fr.msg
621%lang(hu) %{_datadir}/gitk/lib/msgs/hu.msg
3b243bbe 622%lang(it) %{_datadir}/gitk/lib/msgs/it.msg
469258c9 623%lang(ja) %{_datadir}/gitk/lib/msgs/ja.msg
3ed82b68 624%lang(pt_BR) %{_datadir}/gitk/lib/msgs/pt_br.msg
95998f97 625%lang(ru) %{_datadir}/gitk/lib/msgs/ru.msg
f9871074 626%lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg
91396e2e 627
be2ccf99
AG
628%files gitweb
629%defattr(644,root,root,755)
630%doc gitweb/{README,INSTALL}
631%dir %{webappdir}
632%config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf
633%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf
634%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf
51ce768a 635%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/lighttpd.conf
be2ccf99
AG
636%attr(755,root,root) %{cgibindir}/gitweb.cgi
637%{appdir}
93a30d5e
KK
638%attr(755,root,root) %{_libdir}/%{name}/git-instaweb
639%if %{with doc}
0c582eb3
AM
640%{_mandir}/man1/gitweb.1*
641%{_mandir}/man5/gitweb.conf.5*
93a30d5e 642%endif
be2ccf99 643
e1c8d79f 644%files gitview
645%defattr(644,root,root,755)
646%doc contrib/gitview/gitview.txt
647%attr(755,root,root) %{_bindir}/gitview
648
f9871074
AG
649%files gui
650%defattr(644,root,root,755)
bf6fa63c 651%attr(755,root,root) %{_libdir}/%{name}/git-gui
f9871074
AG
652%dir %{_datadir}/git-gui
653%dir %{_datadir}/git-gui/lib
654%dir %{_datadir}/git-gui/lib/msgs
655%{_datadir}/git-gui/lib/git-gui.ico
656%{_datadir}/git-gui/lib/tclIndex
657%{_datadir}/git-gui/lib/*.js
658%{_datadir}/git-gui/lib/*.tcl
659%lang(de) %{_datadir}/git-gui/lib/msgs/de.msg
469258c9 660%lang(el) %{_datadir}/git-gui/lib/msgs/el.msg
f9871074
AG
661%lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg
662%lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg
663%lang(it) %{_datadir}/git-gui/lib/msgs/it.msg
664%lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg
670fe4d6 665%lang(nb) %{_datadir}/git-gui/lib/msgs/nb.msg
e21aea75 666%lang(pt_br) %{_datadir}/git-gui/lib/msgs/pt_br.msg
f9871074
AG
667%lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg
668%lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg
35cbc54f 669%lang(zh_CN) %{_datadir}/git-gui/lib/msgs/zh_cn.msg
f9871074 670
2c0376c9
AM
671%files svn
672%defattr(644,root,root,755)
673%attr(755,root,root) %{_libdir}/%{name}/git-svn
b5884c73 674%{perl_vendorlib}/Git/SVN
bbceff2c 675%{perl_vendorlib}/Git/SVN.pm
2c0376c9
AM
676%if %{with doc}
677%{_mandir}/man1/git-svn.1*
678%endif
679
680%files cvs
681%defattr(644,root,root,755)
44ee5525 682%attr(755,root,root) %{_bindir}/git-cvsserver
2c0376c9
AM
683%attr(755,root,root) %{_libdir}/%{name}/git-cvs*
684%if %{with doc}
685%{_mandir}/man1/git-cvs*.1*
686%{_mandir}/man7/gitcvs-migration.7*
687%endif
688
d82521ea
ER
689%files arch
690%defattr(644,root,root,755)
d82521ea
ER
691%attr(755,root,root) %{_libdir}/%{name}/git-archimport
692%if %{with doc}
d82521ea
ER
693%{_mandir}/man1/git-archimport.1*
694%endif
695
696%files email
697%defattr(644,root,root,755)
d82521ea
ER
698%attr(755,root,root) %{_libdir}/%{name}/*email*
699%if %{with doc}
d82521ea
ER
700%{_mandir}/man1/*email*.1*
701%endif
702
f2c1983d
AG
703%files -n bash-completion-git
704%defattr(644,root,root,755)
7baeed33 705/etc/bash_completion.d/git-completion.bash
f2c1983d 706
3dc01deb 707%files -n perl-Git
5d7220ad 708%defattr(644,root,root,755)
3dc01deb 709%{perl_vendorlib}/Git.pm
b5884c73
KK
710%dir %{perl_vendorlib}/Git
711%{perl_vendorlib}/Git/I18N.pm
bbceff2c 712%{perl_vendorlib}/Git/IndexInfo.pm
fdf2ed38 713%{_mandir}/man3/Git*.3pm*
f2c1983d 714
778b89a7
AM
715%files -n python-Git
716%defattr(644,root,root,755)
24b69c0a 717%attr(755,root,root) %{_libdir}/%{name}/git-remote-testgit
778b89a7
AM
718%dir %{py_sitescriptdir}/git_remote_helpers
719%{py_sitescriptdir}/git_remote_helpers/*.py[co]
720%dir %{py_sitescriptdir}/git_remote_helpers/git
721%{py_sitescriptdir}/git_remote_helpers/git/*.py[co]
ab6547d4
ER
722%if "%{py_ver}" > "2.4"
723%{py_sitescriptdir}/git_remote_helpers*.egg-info
724%endif
24b69c0a
KK
725%if %{with doc}
726%{_mandir}/man1/git-remote-helpers.1*
727%endif
778b89a7 728
f2c1983d
AG
729%files -n vim-syntax-gitcommit
730%defattr(644,root,root,755)
731%doc contrib/vim/README
7baeed33 732%{_datadir}/vim/vimfiles/syntax/gitcommit.vim
This page took 0.274311 seconds and 4 git commands to generate.