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