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