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