]> git.pld-linux.org Git - packages/git-core.git/blame_incremental - git-core.spec
This commit was manufactured by cvs2git to create tag 'auto-ac-git-core-
[packages/git-core.git] / git-core.spec
... / ...
CommitLineData
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
7Summary: The stupid content tracker
8Summary(pl.UTF-8): Prymitywne narzędzie do śledzenia treści
9Name: git-core
10Version: 1.5.6.5
11Release: 1
12License: GPL v2
13Group: Development/Tools
14Source0: http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
15# Source0-md5: 5175d142ad0745b9e22a64904aa86c45
16Source1: %{name}-gitweb.conf
17Source2: %{name}-gitweb-httpd.conf
18Source3: %{name}.sysconfig
19Source4: %{name}.inet
20Source5: %{name}.init
21Patch0: %{name}-bashizm.patch
22URL: http://git.or.cz/
23BuildRequires: autoconf
24BuildRequires: automake
25BuildRequires: curl-devel
26BuildRequires: expat-devel
27BuildRequires: gettext-devel
28BuildRequires: openssl-devel
29BuildRequires: perl-Error
30BuildRequires: perl-base
31BuildRequires: python
32BuildRequires: rpm-perlprov >= 4.1-13
33BuildRequires: rpmbuild(macros) >= 1.264
34BuildRequires: zlib-devel
35%if %{with doc}
36BuildRequires: asciidoc >= 7.1.2-3
37BuildRequires: xmlto
38%endif
39%if %{with tests}
40BuildRequires: cvs
41BuildRequires: cvsps
42BuildRequires: pdksh >= 5.2.14-46
43# tests fail when using this client
44BuildConflicts: cvs-nserver-client
45%endif
46Requires: coreutils
47Requires: cvsps >= 2.1-2
48Requires: diffutils
49Requires: findutils
50Requires: grep
51Requires: openssh-clients
52Requires: perl-Error
53Requires: rcs
54Requires: sed
55BuildRoot: %{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
77This is a stupid (but extremely fast) directory content manager. It
78doesn't do a whole lot, but what it 'does' do is track directory
79contents 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
94Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej.
95Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości
96katalogu.
97
98%package daemon-inetd
99Summary: Files necessary to run git-daemon as an inetd service
100Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd
101Group: Networking/Daemons
102Requires: %{name} = %{version}-%{release}
103Requires: setup >= 2.4.11-1
104Provides: git-core-daemon
105Obsoletes: git-core-daemon
106Obsoletes: git-core-daemon-standalone
107
108%description daemon-inetd
109Git-daemon is a really simple TCP git daemon that can serve git
110repositories. This package provides all necessarry files to run
111git-daemon as an inetd service.
112
113%description daemon-inetd -l pl.UTF-8
114Git-daemon to prosty demon git korzystający z protokołu TCP do
115udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
116do uruchomienia git-demona w trybie usługi inetd.
117
118%package daemon-standalone
119Summary: Files necessary to run git-daemon as a standalone service
120Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej
121Group: Networking/Daemons
122Requires: %{name} = %{version}-%{release}
123Provides: git-core-daemon
124Obsoletes: git-core-daemon
125Obsoletes: git-core-daemon-inetd
126
127%description daemon-standalone
128Git-daemon is a really simple TCP git daemon that can serve git
129repositories. This package provides all necessarry files to run
130git-daemon as an standalone service.
131
132%description daemon-standalone -l pl.UTF-8
133Git-daemon to prosty demon git korzystający z protokołu TCP do
134udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne
135do uruchomienia git-daemona w trybie usługi samodzielnej.
136
137%package devel
138Summary: Header files for git-core
139Summary(pl.UTF-8): Pliki nagłówkowe dla git-core
140Group: Development/Libraries
141
142%description devel
143Header files for git-core.
144
145%description devel -l pl.UTF-8
146Pliki nagłówkowe dla git-core.
147
148%package gitk
149Summary: Tcl/Tk interface to the Git version control system
150Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
151Group: Development/Tools
152Requires: %{name} = %{version}-%{release}
153Requires: tk
154
155%description gitk
156Displays changes in a repository or a selected set of commits. This
157includes visualizing the commit graph, showing information related to
158each commit, and the files in the trees of each revision.
159
160Historically, gitk was the first repository browser. It's written in
161Tcl/Tk and started off in a separate repository but was later merged
162into the main git repository.
163
164%description gitk -l pl.UTF-8
165Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza
166to wizualizację grafu commitów, wyświetlanie informacji związanych z
167każdym z commitów oraz listę plików dla każdej rewizji.
168
169Z punktu widzenia historii, gitk był pierwszą przeglądarką
170repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
171osobnym repozytorium, ale z czasem został włączony do głównego
172repozytorium gita.
173
174%package gitweb
175Summary: Web frontend to git
176Summary(pl.UTF-8): Webowy frontend do git
177Group: Development/Tools
178Requires: %{name} = %{version}-%{release}
179Requires: webapps
180
181%description gitweb
182This package provides a web interface for browsing git repositories.
183
184%description gitweb -l pl.UTF-8
185Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita.
186
187%package gitview
188Summary: A GTK+ based repository browser for git
189Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita
190Group: Development/Tools
191Requires: %{name} = %{version}-%{release}
192Requires: python >= 1:2.4
193Requires: python-pycairo >= 1.0
194Requires: python-pygobject
195Requires: python-pygtk-gtk >= 2:2.8
196Suggests: python-gnome-desktop-gtksourceview
197
198%description gitview
199A GTK+ based repository browser for git.
200
201%description gitview -l pl.UTF-8
202Oparta na GTK+ przeglądarka repozytorium gita.
203
204%package gui
205Summary: Tcl/Tk interface to the Git version control system
206Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
207Group: Development/Tools
208Requires: %{name} = %{version}-%{release}
209Requires: tk
210
211%description gui
212Displays changes in a repository or a selected set of commits. This
213includes visualizing the commit graph, showing information related to
214each commit, and the files in the trees of each revision.
215
216Historically, gitk was the first repository browser. It's written in
217Tcl/Tk and started off in a separate repository but was later merged
218into the main git repository.
219
220%description gui -l pl.UTF-8
221Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza
222to wizualizację grafu commitów, wyświetlanie informacji związanych z
223każdym z commitów oraz listę plików dla każdej rewizji.
224
225Z punktu widzenia historii, gitk był pierwszą przeglądarką
226repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
227osobnym repozytorium, ale z czasem został włączony do głównego
228repozytorium gita.
229
230%package -n bash-completion-git
231Summary: bash-completion for git
232Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita
233Group: Applications/Shells
234Requires: bash-completion
235
236%description -n bash-completion-git
237This package provides bash-completion for git.
238
239%description -n bash-completion-git -l pl.UTF-8
240Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita.
241
242%package -n perl-Git
243Summary: Perl interface to the Git version control system
244Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git
245Group: Development/Languages/Perl
246Requires: %{name} = %{version}-%{release}
247Obsoletes: perl-git-core
248
249%description -n perl-Git
250This module provides Perl scripts easy way to interface the Git
251version control system. The modules have an easy and well-tested way
252to call arbitrary Git commands; in the future, the interface will also
253provide specialized methods for doing easily operations which are not
254totally trivial to do over the generic command interface.
255
256%description -n perl-Git -l pl.UTF-8
257Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli
258wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać
259dowolne polecenia Gita; w przyszłości interfejs udostępni także
260specjalne metody do łatwego wykonywania operacji nietrywialnych do
261wykonania przy użyciu ogólnego interfejsu poleceń.
262
263%package -n vim-syntax-gitcommit
264Summary: Vim syntax: gitcommit
265Summary(pl.UTF-8): Składnia dla Vima: gitcommit
266Group: Applications/Editors/Vim
267# for _vimdatadir existence
268Requires: vim-rt >= 4:6.3.058-3
269
270%description -n vim-syntax-gitcommit
271This plugin provides syntax highlighting for git's commit messages.
272
273%description -n vim-syntax-gitcommit -l pl.UTF-8
274Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
275
276%prep
277%setup -q -n git-%{version}
278%patch0 -p1
279
280%build
281%{__aclocal}
282%{__autoconf}
283%configure \
284 --with-openssl
285
286%{__make} \
287 INSTALLDIRS=vendor \
288 GITWEB_CONFIG="%{webappdir}/gitweb.conf" \
289 GITWEB_PROJECTROOT="/var/lib/git" \
290 GITWEB_CSS="/gitweb/gitweb.css" \
291 GITWEB_LOGO="/gitweb/git-logo.png" \
292 GITWEB_FAVICON="/gitweb/git-favicon.png"
293
294%{?with_doc:%{__make} -C Documentation}
295
296%{?with_tests:%{__make} test}
297
298%install
299rm -rf $RPM_BUILD_ROOT
300install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git}
301install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
302install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
303install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
304install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
305
306%{__make} install \
307 INSTALLDIRS=vendor \
308 DESTDIR=$RPM_BUILD_ROOT
309
310%if %{with doc}
311%{__make} -C Documentation install \
312 DESTDIR=$RPM_BUILD_ROOT
313%endif
314
315# header files and lib
316install *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
317install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
318install libgit.a $RPM_BUILD_ROOT%{_libdir}
319
320# bash completion
321install contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
322
323# vim syntax
324install contrib/vim/syntax/gitcommit.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
325
326# gitweb
327install gitweb/*.css gitweb/*.png $RPM_BUILD_ROOT%{appdir}
328install gitweb/gitweb.cgi $RPM_BUILD_ROOT%{cgibindir}
329install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
330install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
331install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
332
333# gitview
334install contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir}
335
336# git-daemon related files
337install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon
338install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
339install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
340
341# remove unneeded files
342rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
343rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
344rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Error.pm
345rm -f $RPM_BUILD_ROOT%{_mandir}/man3/private-Error.3*
346
347%clean
348rm -rf $RPM_BUILD_ROOT
349
350%post daemon-inetd
351%service -q rc-inetd reload
352
353%postun daemon-inetd
354if [ "$1" = "0" ]; then
355 %service -q rc-inetd reload
356fi
357
358%post daemon-standalone
359/sbin/chkconfig --add git-daemon
360%service git-daemon restart "git-daemon"
361
362%preun daemon-standalone
363if [ "$1" = "0" ]; then
364 %service git-daemon stop
365 /sbin/chkconfig --del git-daemon
366fi
367
368%triggerin gitweb -- apache1 < 1.3.37-3, apache1-base
369%webapp_register apache %{webapp}
370
371%triggerun gitweb -- apache1 < 1.3.37-3, apache1-base
372%webapp_unregister apache %{webapp}
373
374%triggerin gitweb -- apache < 2.2.0, apache-base
375%webapp_register httpd %{webapp}
376
377%triggerun gitweb -- apache < 2.2.0, apache-base
378%webapp_unregister httpd %{webapp}
379
380%files
381%defattr(644,root,root,755)
382%doc README contrib
383%if %{with doc}
384%doc Documentation/RelNotes*
385%doc Documentation/*.html Documentation/howto Documentation/technical
386%{_mandir}/man1/git-*.1*
387%exclude %{_mandir}/man1/git-gui.1*
388%{_mandir}/man1/git.1*
389%{_mandir}/man5/gitattributes.5*
390%{_mandir}/man5/githooks.5*
391%{_mandir}/man5/gitignore.5*
392%{_mandir}/man5/gitmodules.5*
393%{_mandir}/man5/gitrepository-layout.5*
394%{_mandir}/man7/gitcli.7*
395%{_mandir}/man7/gitcore-tutorial.7*
396%{_mandir}/man7/gitcvs-migration.7*
397%{_mandir}/man7/gitdiffcore.7*
398%{_mandir}/man7/gitglossary.7*
399%{_mandir}/man7/gittutorial-2.7*
400%{_mandir}/man7/gittutorial.7*
401%endif
402%attr(755,root,root) %{_bindir}/git
403%attr(755,root,root) %{_bindir}/git-*
404%exclude %{_bindir}/git-gui
405%{_datadir}/%{name}
406%{_localstatedir}/lib/git
407
408%files daemon-inetd
409%defattr(644,root,root,755)
410%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon
411
412%files daemon-standalone
413%defattr(644,root,root,755)
414%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon
415%attr(754,root, root) /etc/rc.d/init.d/git-daemon
416
417%files devel
418%defattr(644,root,root,755)
419%{_includedir}/git-core
420%{_libdir}/libgit.a
421
422%files gitk
423%defattr(644,root,root,755)
424%if %{with doc}
425%{_mandir}/man1/gitk.1*
426%endif
427%attr(755,root,root) %{_bindir}/gitk
428%dir %{_datadir}/gitk
429%dir %{_datadir}/gitk/lib
430%dir %{_datadir}/gitk/lib/msgs
431%lang(de) %{_datadir}/gitk/lib/msgs/de.msg
432%lang(es) %{_datadir}/gitk/lib/msgs/es.msg
433%lang(it) %{_datadir}/gitk/lib/msgs/it.msg
434%lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg
435
436%files gitweb
437%defattr(644,root,root,755)
438%doc gitweb/{README,INSTALL}
439%dir %{webappdir}
440%config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf
441%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf
442%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf
443%attr(755,root,root) %{cgibindir}/gitweb.cgi
444%{appdir}
445
446%files gitview
447%defattr(644,root,root,755)
448%doc contrib/gitview/gitview.txt
449%attr(755,root,root) %{_bindir}/gitview
450
451%files gui
452%defattr(644,root,root,755)
453%attr(755,root,root) %{_bindir}/git-gui
454%{_mandir}/man1/git-gui.1*
455%dir %{_datadir}/git-gui
456%dir %{_datadir}/git-gui/lib
457%dir %{_datadir}/git-gui/lib/msgs
458%{_datadir}/git-gui/lib/git-gui.ico
459%{_datadir}/git-gui/lib/tclIndex
460%{_datadir}/git-gui/lib/*.js
461%{_datadir}/git-gui/lib/*.tcl
462%lang(de) %{_datadir}/git-gui/lib/msgs/de.msg
463%lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg
464%lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg
465%lang(it) %{_datadir}/git-gui/lib/msgs/it.msg
466%lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg
467%lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg
468%lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg
469%lang(zh_cn) %{_datadir}/git-gui/lib/msgs/zh_cn.msg
470
471%files -n bash-completion-git
472%defattr(644,root,root,755)
473%{_sysconfdir}/bash_completion.d/*
474
475%files -n perl-Git
476%defattr(644,root,root,755)
477%{perl_vendorlib}/Git.pm
478%{_mandir}/man3/Git.3pm*
479
480%files -n vim-syntax-gitcommit
481%defattr(644,root,root,755)
482%doc contrib/vim/README
483%{_datadir}/vim/vimfiles/syntax/*
This page took 0.075944 seconds and 4 git commands to generate.