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