]> git.pld-linux.org Git - packages/git-core.git/blame - git-core.spec
- new
[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 10Version: 1.5.5
767aadab 11Release: 2
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
767aadab 21Patch0: %{name}-bashizm.patch
508ade43 22URL: http://git.or.cz/
11856720
AM
23BuildRequires: autoconf
24BuildRequires: automake
51c3b977 25BuildRequires: curl-devel
115484e9 26BuildRequires: expat-devel
72ec88fd 27BuildRequires: gettext-devel
51c3b977 28BuildRequires: openssl-devel
27b79a12 29BuildRequires: perl-Error
51c3b977 30BuildRequires: perl-base
31BuildRequires: python
89a476f8 32BuildRequires: rpm-perlprov >= 4.1-13
be2ccf99 33BuildRequires: rpmbuild(macros) >= 1.264
51c3b977 34BuildRequires: zlib-devel
08cc92d7
ER
35%if %{with doc}
36BuildRequires: asciidoc >= 7.1.2-3
37BuildRequires: xmlto
38%endif
2c50f007 39%if %{with tests}
c95a5d99
JB
40# tests failed sometimes when using nserver client 1.11(?)
41BuildRequires: cvs-client >= 1.12
08cc92d7 42BuildRequires: pdksh >= 5.2.14-46
2c50f007 43%endif
3f245fc5 44Requires: coreutils
36ef13fd 45Requires: cpio
11856720 46Requires: curl
06705076 47Requires: cvsps >= 2.1-2
11856720 48Requires: diffutils
3f245fc5
AM
49Requires: findutils
50Requires: grep
11856720 51Requires: openssh-clients
f266cd28 52Requires: perl-Error
401f46f5 53Requires: rcs
3f245fc5 54Requires: sed
51c3b977 55BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
19936745
AM
57# html docs have links to txt files
58%define _noautocompressdoc *.txt
59
be2ccf99
AG
60%define webapp gitweb
61%define webappdir %{_sysconfdir}/webapps/%{webapp}
62%define appdir %{_datadir}/%{webapp}
63%define cgibindir %{_prefix}/lib/cgi-bin
64
51c3b977 65%description
66"git" can mean anything, depending on your mood.
67
68 - random three-letter combination that is pronounceable, and not
c751087d 69 actually used by any common UNIX command. The fact that it is a
51c3b977 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
c751087d 77This is a stupid (but extremely fast) directory content manager. It
51c3b977 78doesn't do a whole lot, but what it 'does' do is track directory
79contents efficiently.
80
ea061c99
JR
81%description -l pl.UTF-8
82"git" może oznaczać cokolwiek, w zależności od nastroju.
83
b11ada2c
AG
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.
ea061c99
JR
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
c751087d
JB
96katalogu.
97
b11ada2c
AG
98%package daemon-inetd
99Summary: Files necessary to run git-daemon as an inetd service
5db07614 100Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd
b11ada2c
AG
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
5db07614
JB
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.
b11ada2c
AG
117
118%package daemon-standalone
119Summary: Files necessary to run git-daemon as a standalone service
5db07614 120Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej
b11ada2c
AG
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
5db07614
JB
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.
b11ada2c 136
e3cefa79 137%package devel
66a7f095 138Summary: Header files for git-core
3f8032f4 139Summary(pl.UTF-8): Pliki nagłówkowe dla git-core
66a7f095 140Group: Development/Libraries
e3cefa79 141
142%description devel
66a7f095 143Header files for git-core.
144
ea061c99
JR
145%description devel -l pl.UTF-8
146Pliki nagłówkowe dla git-core.
e3cefa79 147
91396e2e
AG
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
04fdf912 161Tcl/Tk and started off in a separate repository but was later merged
91396e2e
AG
162into the main git repository.
163
164%description gitk -l pl.UTF-8
02059138
ER
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.
91396e2e 168
04fdf912 169Z punktu widzenia historii, gitk był pierwszą przeglądarką
02059138
ER
170repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w
171osobnym repozytorium, ale z czasem został włączony do głównego
2712fe7b 172repozytorium gita.
91396e2e 173
be2ccf99
AG
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
2712fe7b 185Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita.
be2ccf99 186
e1c8d79f 187%package gitview
30794a22
JB
188Summary: A GTK+ based repository browser for git
189Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita
e1c8d79f 190Group: Development/Tools
191Requires: %{name} = %{version}-%{release}
c95a5d99
JB
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
e1c8d79f 197
198%description gitview
30794a22 199A GTK+ based repository browser for git.
e1c8d79f 200
201%description gitview -l pl.UTF-8
30794a22 202Oparta na GTK+ przeglądarka repozytorium gita.
e1c8d79f 203
f2c1983d
AG
204%package -n bash-completion-git
205Summary: bash-completion for git
2712fe7b 206Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita
02059138 207Group: Applications/Shells
f2c1983d
AG
208Requires: bash-completion
209
210%description -n bash-completion-git
211This package provides bash-completion for git.
212
213%description -n bash-completion-git -l pl.UTF-8
5383e3af 214Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita.
f2c1983d 215
3dc01deb 216%package -n perl-Git
5d7220ad 217Summary: Perl interface to the Git version control system
3f8032f4 218Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git
5d7220ad
AM
219Group: Development/Languages/Perl
220Requires: %{name} = %{version}-%{release}
27b79a12 221Obsoletes: perl-git-core
5d7220ad 222
3dc01deb 223%description -n perl-Git
5d7220ad
AM
224This module provides Perl scripts easy way to interface the Git
225version control system. The modules have an easy and well-tested way
226to call arbitrary Git commands; in the future, the interface will also
227provide specialized methods for doing easily operations which are not
228totally trivial to do over the generic command interface.
229
ea061c99
JR
230%description -n perl-Git -l pl.UTF-8
231Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli
08cc92d7
ER
232wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać
233dowolne polecenia Gita; w przyszłości interfejs udostępni także
234specjalne metody do łatwego wykonywania operacji nietrywialnych do
235wykonania przy użyciu ogólnego interfejsu poleceń.
7eef96e1 236
f2c1983d
AG
237%package -n vim-syntax-gitcommit
238Summary: Vim syntax: gitcommit
2712fe7b 239Summary(pl.UTF-8): Składnia dla Vima: gitcommit
f2c1983d
AG
240Group: Applications/Editors/Vim
241# for _vimdatadir existence
08cc92d7 242Requires: vim >= 4:6.3.058-3
f2c1983d
AG
243
244%description -n vim-syntax-gitcommit
245This plugin provides syntax highlighting for git's commit messages.
246
247%description -n vim-syntax-gitcommit -l pl.UTF-8
2712fe7b 248Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
f2c1983d 249
51c3b977 250%prep
bf83806a 251%setup -q -n git-%{version}
767aadab 252%patch0 -p1
a1036d06 253
254%build
11856720
AM
255%{__aclocal}
256%{__autoconf}
257%configure \
258 --with-openssl
51c3b977 259
b69112f7 260%{__make} \
be2ccf99
AG
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"
27b79a12 267
08cc92d7 268%{?with_doc:%{__make} -C Documentation}
7fdeb28c 269
6c0d6e05
AM
270%{?with_tests:%{__make} test}
271
51c3b977 272%install
273rm -rf $RPM_BUILD_ROOT
5db07614 274install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git}
be2ccf99 275install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
f2c1983d
AG
276install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
277install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
5db07614 278install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
c751087d 279
51c3b977 280%{__make} install \
d778c02c 281 INSTALLDIRS=vendor \
51c3b977 282 DESTDIR=$RPM_BUILD_ROOT
283
08cc92d7 284%if %{with doc}
7fdeb28c 285%{__make} -C Documentation install \
7fdeb28c 286 DESTDIR=$RPM_BUILD_ROOT
08cc92d7 287%endif
7fdeb28c 288
1f25da6d 289# header files and lib
e3cefa79 290install *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
291install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
1f25da6d 292install libgit.a $RPM_BUILD_ROOT%{_libdir}
e3cefa79 293
f2c1983d
AG
294# bash completion
295install contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
296
297# vim syntax
298install contrib/vim/syntax/gitcommit.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
299
be2ccf99
AG
300# gitweb
301install gitweb/*.css gitweb/*.png $RPM_BUILD_ROOT%{appdir}
302install gitweb/gitweb.cgi $RPM_BUILD_ROOT%{cgibindir}
303install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
304install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
305install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
306
e1c8d79f 307# gitview
308install contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir}
309
b11ada2c 310# git-daemon related files
5db07614
JB
311install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon
312install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon
313install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon
b11ada2c 314
be2ccf99 315# remove unneeded files
27b79a12
ER
316rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
317rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
c95a5d99
JB
318rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Error.pm
319rm -f $RPM_BUILD_ROOT%{_mandir}/man3/private-Error.3*
27b79a12 320
51c3b977 321%clean
322rm -rf $RPM_BUILD_ROOT
323
b11ada2c
AG
324%post daemon-inetd
325%service -q rc-inetd reload
326
327%postun daemon-inetd
328if [ "$1" = "0" ]; then
329 %service -q rc-inetd reload
330fi
331
332%post daemon-standalone
333/sbin/chkconfig --add git-daemon
334%service git-daemon restart "git-daemon"
335
336%preun daemon-standalone
337if [ "$1" = "0" ]; then
338 %service git-daemon stop
339 /sbin/chkconfig --del git-daemon
340fi
341
be2ccf99
AG
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
51c3b977 354%files
355%defattr(644,root,root,755)
08cc92d7
ER
356%doc README contrib
357%if %{with doc}
358%doc Documentation/{[!g]*,g[!i]*,git,git[!k]*}.html Documentation/howto Documentation/technical
0afd37aa
JB
359%{_mandir}/man1/git-*.1*
360%{_mandir}/man5/gitattributes.5*
9fa88d97 361%{_mandir}/man5/gitcli.5*
0afd37aa 362%{_mandir}/man5/gitignore.5*
785b167d 363%{_mandir}/man5/gitmodules.5*
0afd37aa 364%{_mandir}/man7/git.7*
08cc92d7
ER
365%endif
366%attr(755,root,root) %{_bindir}/git
367%attr(755,root,root) %{_bindir}/git-*
6c4f9a5b
AM
368%{_datadir}/%{name}
369%{_datadir}/git-gui
5db07614 370%{_localstatedir}/lib/git
e3cefa79 371
b11ada2c
AG
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
e3cefa79 381%files devel
3ff86e9e 382%defattr(644,root,root,755)
5db07614
JB
383%{_includedir}/git-core
384%{_libdir}/libgit.a
5d7220ad 385
91396e2e
AG
386%files gitk
387%defattr(644,root,root,755)
08cc92d7 388%if %{with doc}
91396e2e 389%doc Documentation/gitk.html
91396e2e 390%{_mandir}/man1/gitk.1*
08cc92d7
ER
391%endif
392%attr(755,root,root) %{_bindir}/gitk
9fa88d97
AM
393%dir %{_datadir}/gitk
394%dir %{_datadir}/gitk/lib
395%dir %{_datadir}/gitk/lib/msgs
396%lang(de) %dir %{_datadir}/gitk/lib/msgs/de.msg
6deafcc7 397%lang(it) %dir %{_datadir}/gitk/lib/msgs/it.msg
91396e2e 398
be2ccf99
AG
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
e1c8d79f 409%files gitview
410%defattr(644,root,root,755)
411%doc contrib/gitview/gitview.txt
412%attr(755,root,root) %{_bindir}/gitview
413
f2c1983d
AG
414%files -n bash-completion-git
415%defattr(644,root,root,755)
416%{_sysconfdir}/bash_completion.d/*
417
3dc01deb 418%files -n perl-Git
5d7220ad 419%defattr(644,root,root,755)
3dc01deb 420%{perl_vendorlib}/Git.pm
0afd37aa 421%{_mandir}/man3/Git.3pm*
f2c1983d
AG
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.089699 seconds and 4 git commands to generate.