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