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