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