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