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