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