]> git.pld-linux.org Git - packages/git-core.git/blame - git-core.spec
- up to 1.5.5
[packages/git-core.git] / git-core.spec
CommitLineData
84013e7c 1#
891d0b05
JB
2# Conditional build:
3%bcond_without tests # don't perform make test
08cc92d7 4%bcond_without doc # skip building/packaging docs/manuals (takes some time)
891d0b05 5#
89a476f8 6%include /usr/lib/rpm/macros.perl
51c3b977 7Summary: The stupid content tracker
3f8032f4 8Summary(pl.UTF-8): Prymitywne narzędzie do śledzenia treści
51c3b977 9Name: git-core
6deafcc7
AM
10Version: 1.5.5
11Release: 1
51c3b977 12License: GPL v2
13Group: Development/Tools
bf83806a 14Source0: http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
6deafcc7 15# Source0-md5: 09f15f0b0e330986d930746abf6962f4
be2ccf99
AG
16Source1: %{name}-gitweb.conf
17Source2: %{name}-gitweb-httpd.conf
b11ada2c
AG
18Source3: %{name}.sysconfig
19Source4: %{name}.inet
20Source5: %{name}.init
508ade43 21URL: http://git.or.cz/
11856720
AM
22BuildRequires: autoconf
23BuildRequires: automake
51c3b977 24BuildRequires: curl-devel
115484e9 25BuildRequires: expat-devel
72ec88fd 26BuildRequires: gettext-devel
51c3b977 27BuildRequires: openssl-devel
27b79a12 28BuildRequires: perl-Error
51c3b977 29BuildRequires: perl-base
30BuildRequires: python
89a476f8 31BuildRequires: rpm-perlprov >= 4.1-13
be2ccf99 32BuildRequires: rpmbuild(macros) >= 1.264
51c3b977 33BuildRequires: zlib-devel
08cc92d7
ER
34%if %{with doc}
35BuildRequires: asciidoc >= 7.1.2-3
36BuildRequires: xmlto
37%endif
2c50f007 38%if %{with tests}
c95a5d99
JB
39# tests failed sometimes when using nserver client 1.11(?)
40BuildRequires: cvs-client >= 1.12
08cc92d7 41BuildRequires: pdksh >= 5.2.14-46
2c50f007 42%endif
3f245fc5 43Requires: coreutils
36ef13fd 44Requires: cpio
11856720 45Requires: curl
06705076 46Requires: cvsps >= 2.1-2
11856720 47Requires: diffutils
3f245fc5
AM
48Requires: findutils
49Requires: grep
11856720 50Requires: openssh-clients
f266cd28 51Requires: perl-Error
401f46f5 52Requires: rcs
3f245fc5 53Requires: sed
51c3b977 54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
19936745
AM
56# html docs have links to txt files
57%define _noautocompressdoc *.txt
58
be2ccf99
AG
59%define webapp gitweb
60%define webappdir %{_sysconfdir}/webapps/%{webapp}
61%define appdir %{_datadir}/%{webapp}
62%define cgibindir %{_prefix}/lib/cgi-bin
63
51c3b977 64%description
65"git" can mean anything, depending on your mood.
66
67 - random three-letter combination that is pronounceable, and not
c751087d 68 actually used by any common UNIX command. The fact that it is a
51c3b977 69 mispronunciation of "get" may or may not be relevant.
70 - stupid. contemptible and despicable. simple. Take your pick from the
71 dictionary of slang.
72 - "global information tracker": you're in a good mood, and it actually
73 works for you. Angels sing, and a light suddenly fills the room.
74 - "goddamn idiotic truckload of sh*t": when it breaks
75
c751087d 76This is a stupid (but extremely fast) directory content manager. It
51c3b977 77doesn't do a whole lot, but what it 'does' do is track directory
78contents efficiently.
79
ea061c99
JR
80%description -l pl.UTF-8
81"git" może oznaczać cokolwiek, w zależności od nastroju.
82
b11ada2c
AG
83 - losową kombinację trzech liter, która jest wymawialna i właściwie
84 nie używana przez żadne popularne polecenie uniksowe. Fakt, że jest to
85 błędna pisownia słowa "get" może mieć lub nie mieć znaczenia.
86 - głupi, pogardliwy, prosty. Można wybrać ze słownika slangu.
87 - "global information tracker" (narzędzie do globalnego śledzenia
88 informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa.
89 Anioły śpiewają, a światło niespodziewanie wypełnia pokój.
90 - "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek
91 g*) - kiedy się zepsuje.
ea061c99
JR
92
93Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej.
94Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości
c751087d
JB
95katalogu.
96
b11ada2c
AG
97%package daemon-inetd
98Summary: Files necessary to run git-daemon as an inetd service
5db07614 99Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd
b11ada2c
AG
100Group: Networking/Daemons
101Requires: %{name} = %{version}-%{release}
102Requires: setup >= 2.4.11-1
103Provides: git-core-daemon
104Obsoletes: git-core-daemon
105Obsoletes: git-core-daemon-standalone
106
107%description daemon-inetd
108Git-daemon is a really simple TCP git daemon that can serve git
109repositories. This package provides all necessarry files to run
110git-daemon as an inetd service.
111
112%description daemon-inetd -l pl.UTF-8
5db07614
JB
113Git-daemon to prosty demon git korzystający z protokołu TCP do
114udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
115do uruchomienia git-demona w trybie usługi inetd.
b11ada2c
AG
116
117%package daemon-standalone
118Summary: Files necessary to run git-daemon as a standalone service
5db07614 119Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej
b11ada2c
AG
120Group: Networking/Daemons
121Requires: %{name} = %{version}-%{release}
122Provides: git-core-daemon
123Obsoletes: git-core-daemon
124Obsoletes: git-core-daemon-inetd
125
126%description daemon-standalone
127Git-daemon is a really simple TCP git daemon that can serve git
128repositories. This package provides all necessarry files to run
129git-daemon as an standalone service.
130
131%description daemon-standalone -l pl.UTF-8
5db07614
JB
132Git-daemon to prosty demon git korzystający z protokołu TCP do
133udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
134do uruchomienia git-daemona w trybie usługi samodzielnej.
b11ada2c 135
e3cefa79 136%package devel
66a7f095 137Summary: Header files for git-core
3f8032f4 138Summary(pl.UTF-8): Pliki nagłówkowe dla git-core
66a7f095 139Group: Development/Libraries
e3cefa79 140
141%description devel
66a7f095 142Header files for git-core.
143
ea061c99
JR
144%description devel -l pl.UTF-8
145Pliki nagłówkowe dla git-core.
e3cefa79 146
91396e2e
AG
147%package gitk
148Summary: Tcl/Tk interface to the Git version control system
149Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
150Group: Development/Tools
151Requires: %{name} = %{version}-%{release}
152Requires: tk
153
154%description gitk
155Displays changes in a repository or a selected set of commits. This
156includes visualizing the commit graph, showing information related to
157each commit, and the files in the trees of each revision.
158
159Historically, gitk was the first repository browser. It's written in
04fdf912 160Tcl/Tk and started off in a separate repository but was later merged
91396e2e
AG
161into the main git repository.
162
163%description gitk -l pl.UTF-8
02059138
ER
164Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza
165to wizualizację grafu commitów, wyświetlanie informacji związanych z
166każdym z commitów oraz listę plików dla każdej rewizji.
91396e2e 167
04fdf912 168Z punktu widzenia historii, gitk był pierwszą przeglądarką
02059138
ER
169repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
170osobnym repozytorium, ale z czasem został włączony do głównego
2712fe7b 171repozytorium gita.
91396e2e 172
be2ccf99
AG
173%package gitweb
174Summary: Web frontend to git
175Summary(pl.UTF-8): Webowy frontend do git
176Group: Development/Tools
177Requires: %{name} = %{version}-%{release}
178Requires: webapps
179
180%description gitweb
181This package provides a web interface for browsing git repositories.
182
183%description gitweb -l pl.UTF-8
2712fe7b 184Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita.
be2ccf99 185
e1c8d79f 186%package gitview
30794a22
JB
187Summary: A GTK+ based repository browser for git
188Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita
e1c8d79f 189Group: Development/Tools
190Requires: %{name} = %{version}-%{release}
c95a5d99
JB
191Requires: python >= 1:2.4
192Requires: python-pycairo >= 1.0
193Requires: python-pygobject
194Requires: python-pygtk-gtk >= 2:2.8
195Suggests: python-gnome-desktop-gtksourceview
e1c8d79f 196
197%description gitview
30794a22 198A GTK+ based repository browser for git.
e1c8d79f 199
200%description gitview -l pl.UTF-8
30794a22 201Oparta na GTK+ przeglądarka repozytorium gita.
e1c8d79f 202
f2c1983d
AG
203%package -n bash-completion-git
204Summary: bash-completion for git
2712fe7b 205Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita
02059138 206Group: Applications/Shells
f2c1983d
AG
207Requires: bash-completion
208
209%description -n bash-completion-git
210This package provides bash-completion for git.
211
212%description -n bash-completion-git -l pl.UTF-8
5383e3af 213Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita.
f2c1983d 214
3dc01deb 215%package -n perl-Git
5d7220ad 216Summary: Perl interface to the Git version control system
3f8032f4 217Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git
5d7220ad
AM
218Group: Development/Languages/Perl
219Requires: %{name} = %{version}-%{release}
27b79a12 220Obsoletes: perl-git-core
5d7220ad 221
3dc01deb 222%description -n perl-Git
5d7220ad
AM
223This module provides Perl scripts easy way to interface the Git
224version control system. The modules have an easy and well-tested way
225to call arbitrary Git commands; in the future, the interface will also
226provide specialized methods for doing easily operations which are not
227totally trivial to do over the generic command interface.
228
ea061c99
JR
229%description -n perl-Git -l pl.UTF-8
230Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli
08cc92d7
ER
231wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać
232dowolne polecenia Gita; w przyszłości interfejs udostępni także
233specjalne metody do łatwego wykonywania operacji nietrywialnych do
234wykonania przy użyciu ogólnego interfejsu poleceń.
7eef96e1 235
f2c1983d
AG
236%package -n vim-syntax-gitcommit
237Summary: Vim syntax: gitcommit
2712fe7b 238Summary(pl.UTF-8): Składnia dla Vima: gitcommit
f2c1983d
AG
239Group: Applications/Editors/Vim
240# for _vimdatadir existence
08cc92d7 241Requires: vim >= 4:6.3.058-3
f2c1983d
AG
242
243%description -n vim-syntax-gitcommit
244This plugin provides syntax highlighting for git's commit messages.
245
246%description -n vim-syntax-gitcommit -l pl.UTF-8
2712fe7b 247Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
f2c1983d 248
51c3b977 249%prep
bf83806a 250%setup -q -n git-%{version}
a1036d06 251
252%build
11856720
AM
253%{__aclocal}
254%{__autoconf}
255%configure \
256 --with-openssl
51c3b977 257
b69112f7 258%{__make} \
be2ccf99
AG
259 INSTALLDIRS=vendor \
260 GITWEB_CONFIG="%{webappdir}/gitweb.conf" \
261 GITWEB_PROJECTROOT="/var/lib/git" \
262 GITWEB_CSS="/gitweb/gitweb.css" \
263 GITWEB_LOGO="/gitweb/git-logo.png" \
264 GITWEB_FAVICON="/gitweb/git-favicon.png"
27b79a12 265
08cc92d7 266%{?with_doc:%{__make} -C Documentation}
7fdeb28c 267
6c0d6e05
AM
268%{?with_tests:%{__make} test}
269
51c3b977 270%install
271rm -rf $RPM_BUILD_ROOT
5db07614 272install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git}
be2ccf99 273install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
f2c1983d
AG
274install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
275install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
5db07614 276install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
c751087d 277
51c3b977 278%{__make} install \
d778c02c 279 INSTALLDIRS=vendor \
51c3b977 280 DESTDIR=$RPM_BUILD_ROOT
281
08cc92d7 282%if %{with doc}
7fdeb28c 283%{__make} -C Documentation install \
7fdeb28c 284 DESTDIR=$RPM_BUILD_ROOT
08cc92d7 285%endif
7fdeb28c 286
1f25da6d 287# header files and lib
e3cefa79 288install *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
289install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
1f25da6d 290install libgit.a $RPM_BUILD_ROOT%{_libdir}
e3cefa79 291
f2c1983d
AG
292# bash completion
293install contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
294
295# vim syntax
296install contrib/vim/syntax/gitcommit.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
297
be2ccf99
AG
298# gitweb
299install gitweb/*.css gitweb/*.png $RPM_BUILD_ROOT%{appdir}
300install gitweb/gitweb.cgi $RPM_BUILD_ROOT%{cgibindir}
301install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
302install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
303install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
304
e1c8d79f 305# gitview
306install contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir}
307
b11ada2c 308# git-daemon related files
5db07614
JB
309install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon
310install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
311install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
b11ada2c 312
be2ccf99 313# remove unneeded files
27b79a12
ER
314rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
315rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
c95a5d99
JB
316rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Error.pm
317rm -f $RPM_BUILD_ROOT%{_mandir}/man3/private-Error.3*
27b79a12 318
51c3b977 319%clean
320rm -rf $RPM_BUILD_ROOT
321
b11ada2c
AG
322%post daemon-inetd
323%service -q rc-inetd reload
324
325%postun daemon-inetd
326if [ "$1" = "0" ]; then
327 %service -q rc-inetd reload
328fi
329
330%post daemon-standalone
331/sbin/chkconfig --add git-daemon
332%service git-daemon restart "git-daemon"
333
334%preun daemon-standalone
335if [ "$1" = "0" ]; then
336 %service git-daemon stop
337 /sbin/chkconfig --del git-daemon
338fi
339
be2ccf99
AG
340%triggerin gitweb -- apache1 < 1.3.37-3, apache1-base
341%webapp_register apache %{webapp}
342
343%triggerun gitweb -- apache1 < 1.3.37-3, apache1-base
344%webapp_unregister apache %{webapp}
345
346%triggerin gitweb -- apache < 2.2.0, apache-base
347%webapp_register httpd %{webapp}
348
349%triggerun gitweb -- apache < 2.2.0, apache-base
350%webapp_unregister httpd %{webapp}
351
51c3b977 352%files
353%defattr(644,root,root,755)
08cc92d7
ER
354%doc README contrib
355%if %{with doc}
356%doc Documentation/{[!g]*,g[!i]*,git,git[!k]*}.html Documentation/howto Documentation/technical
0afd37aa
JB
357%{_mandir}/man1/git-*.1*
358%{_mandir}/man5/gitattributes.5*
9fa88d97 359%{_mandir}/man5/gitcli.5*
0afd37aa 360%{_mandir}/man5/gitignore.5*
785b167d 361%{_mandir}/man5/gitmodules.5*
0afd37aa 362%{_mandir}/man7/git.7*
08cc92d7
ER
363%endif
364%attr(755,root,root) %{_bindir}/git
365%attr(755,root,root) %{_bindir}/git-*
6c4f9a5b
AM
366%{_datadir}/%{name}
367%{_datadir}/git-gui
5db07614 368%{_localstatedir}/lib/git
e3cefa79 369
b11ada2c
AG
370%files daemon-inetd
371%defattr(644,root,root,755)
372%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon
373
374%files daemon-standalone
375%defattr(644,root,root,755)
376%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon
377%attr(754,root, root) /etc/rc.d/init.d/git-daemon
378
e3cefa79 379%files devel
3ff86e9e 380%defattr(644,root,root,755)
5db07614
JB
381%{_includedir}/git-core
382%{_libdir}/libgit.a
5d7220ad 383
91396e2e
AG
384%files gitk
385%defattr(644,root,root,755)
08cc92d7 386%if %{with doc}
91396e2e 387%doc Documentation/gitk.html
91396e2e 388%{_mandir}/man1/gitk.1*
08cc92d7
ER
389%endif
390%attr(755,root,root) %{_bindir}/gitk
9fa88d97
AM
391%dir %{_datadir}/gitk
392%dir %{_datadir}/gitk/lib
393%dir %{_datadir}/gitk/lib/msgs
394%lang(de) %dir %{_datadir}/gitk/lib/msgs/de.msg
6deafcc7 395%lang(it) %dir %{_datadir}/gitk/lib/msgs/it.msg
91396e2e 396
be2ccf99
AG
397%files gitweb
398%defattr(644,root,root,755)
399%doc gitweb/{README,INSTALL}
400%dir %{webappdir}
401%config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf
402%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf
403%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf
404%attr(755,root,root) %{cgibindir}/gitweb.cgi
405%{appdir}
406
e1c8d79f 407%files gitview
408%defattr(644,root,root,755)
409%doc contrib/gitview/gitview.txt
410%attr(755,root,root) %{_bindir}/gitview
411
f2c1983d
AG
412%files -n bash-completion-git
413%defattr(644,root,root,755)
414%{_sysconfdir}/bash_completion.d/*
415
3dc01deb 416%files -n perl-Git
5d7220ad 417%defattr(644,root,root,755)
3dc01deb 418%{perl_vendorlib}/Git.pm
0afd37aa 419%{_mandir}/man3/Git.3pm*
f2c1983d
AG
420
421%files -n vim-syntax-gitcommit
422%defattr(644,root,root,755)
423%doc contrib/vim/README
424%{_datadir}/vim/vimfiles/syntax/*
This page took 0.08206 seconds and 4 git commands to generate.