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