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