]>
Commit | Line | Data |
---|---|---|
84013e7c | 1 | # |
891d0b05 JB |
2 | # Conditional build: |
3 | %bcond_without tests # don't perform make test | |
db032591 | 4 | %bcond_with tests_cvs |
08cc92d7 | 5 | %bcond_without doc # skip building/packaging docs/manuals (takes some time) |
891d0b05 | 6 | # |
89a476f8 | 7 | %include /usr/lib/rpm/macros.perl |
51c3b977 | 8 | Summary: The stupid content tracker |
3f8032f4 | 9 | Summary(pl.UTF-8): Prymitywne narzędzie do śledzenia treści |
51c3b977 | 10 | Name: git-core |
dc842e77 | 11 | Version: 1.6.5.2 |
eae4668b | 12 | Release: 1 |
51c3b977 | 13 | License: GPL v2 |
14 | Group: Development/Tools | |
bf83806a | 15 | Source0: http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2 |
dc842e77 | 16 | # Source0-md5: 99708c449b23433136dbdfa38bd16d80 |
be2ccf99 AG |
17 | Source1: %{name}-gitweb.conf |
18 | Source2: %{name}-gitweb-httpd.conf | |
b11ada2c AG |
19 | Source3: %{name}.sysconfig |
20 | Source4: %{name}.inet | |
21 | Source5: %{name}.init | |
e699dd89 | 22 | URL: http://git-scm.com/ |
11856720 AM |
23 | BuildRequires: autoconf |
24 | BuildRequires: automake | |
51c3b977 | 25 | BuildRequires: curl-devel |
39dc084d | 26 | BuildRequires: docbook-dtd45-xml |
115484e9 | 27 | BuildRequires: expat-devel |
72ec88fd | 28 | BuildRequires: gettext-devel |
51c3b977 | 29 | BuildRequires: openssl-devel |
27b79a12 | 30 | BuildRequires: perl-Error |
51c3b977 | 31 | BuildRequires: perl-base |
32 | BuildRequires: python | |
89a476f8 | 33 | BuildRequires: rpm-perlprov >= 4.1-13 |
be2ccf99 | 34 | BuildRequires: rpmbuild(macros) >= 1.264 |
51c3b977 | 35 | BuildRequires: zlib-devel |
08cc92d7 ER |
36 | %if %{with doc} |
37 | BuildRequires: asciidoc >= 7.1.2-3 | |
38 | BuildRequires: xmlto | |
39 | %endif | |
2c50f007 | 40 | %if %{with tests} |
db032591 | 41 | %if %{with tests_cvs} |
dfed7e92 | 42 | # tests failed sometimes when using nserver/cvsnt client so enforce pure cvs here |
3554b1a3 | 43 | BuildRequires: cvs-gnu-client < 1.13 |
2c0376c9 | 44 | BuildRequires: cvs-gnu-client >= 1.12 |
db032591 | 45 | %endif |
08cc92d7 | 46 | BuildRequires: pdksh >= 5.2.14-46 |
2c50f007 | 47 | %endif |
3f245fc5 | 48 | Requires: coreutils |
11856720 | 49 | Requires: diffutils |
3f245fc5 AM |
50 | Requires: findutils |
51 | Requires: grep | |
11856720 | 52 | Requires: openssh-clients |
f266cd28 | 53 | Requires: perl-Error |
3f245fc5 | 54 | Requires: sed |
26361b03 AG |
55 | Suggests: git-core-cvs |
56 | Suggests: git-core-svn | |
d82521ea ER |
57 | Suggests: less |
58 | Suggests: rsync | |
51c3b977 | 59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
19936745 AM |
61 | # html docs have links to txt files |
62 | %define _noautocompressdoc *.txt | |
63 | ||
be2ccf99 AG |
64 | %define webapp gitweb |
65 | %define webappdir %{_sysconfdir}/webapps/%{webapp} | |
66 | %define appdir %{_datadir}/%{webapp} | |
67 | %define cgibindir %{_prefix}/lib/cgi-bin | |
68 | ||
51c3b977 | 69 | %description |
70 | "git" can mean anything, depending on your mood. | |
71 | ||
72 | - random three-letter combination that is pronounceable, and not | |
c751087d | 73 | actually used by any common UNIX command. The fact that it is a |
51c3b977 | 74 | mispronunciation of "get" may or may not be relevant. |
75 | - stupid. contemptible and despicable. simple. Take your pick from the | |
76 | dictionary of slang. | |
77 | - "global information tracker": you're in a good mood, and it actually | |
78 | works for you. Angels sing, and a light suddenly fills the room. | |
79 | - "goddamn idiotic truckload of sh*t": when it breaks | |
80 | ||
c751087d | 81 | This is a stupid (but extremely fast) directory content manager. It |
51c3b977 | 82 | doesn't do a whole lot, but what it 'does' do is track directory |
83 | contents efficiently. | |
84 | ||
ea061c99 JR |
85 | %description -l pl.UTF-8 |
86 | "git" może oznaczać cokolwiek, w zależności od nastroju. | |
87 | ||
b11ada2c AG |
88 | - losową kombinację trzech liter, która jest wymawialna i właściwie |
89 | nie używana przez żadne popularne polecenie uniksowe. Fakt, że jest to | |
90 | błędna pisownia słowa "get" może mieć lub nie mieć znaczenia. | |
91 | - głupi, pogardliwy, prosty. Można wybrać ze słownika slangu. | |
92 | - "global information tracker" (narzędzie do globalnego śledzenia | |
93 | informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa. | |
94 | Anioły śpiewają, a światło niespodziewanie wypełnia pokój. | |
95 | - "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek | |
96 | g*) - kiedy się zepsuje. | |
ea061c99 JR |
97 | |
98 | Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej. | |
99 | Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości | |
c751087d JB |
100 | katalogu. |
101 | ||
b11ada2c AG |
102 | %package daemon-inetd |
103 | Summary: Files necessary to run git-daemon as an inetd service | |
5db07614 | 104 | Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd |
b11ada2c AG |
105 | Group: Networking/Daemons |
106 | Requires: %{name} = %{version}-%{release} | |
107 | Requires: setup >= 2.4.11-1 | |
108 | Provides: git-core-daemon | |
109 | Obsoletes: git-core-daemon | |
110 | Obsoletes: git-core-daemon-standalone | |
111 | ||
112 | %description daemon-inetd | |
113 | Git-daemon is a really simple TCP git daemon that can serve git | |
114 | repositories. This package provides all necessarry files to run | |
115 | git-daemon as an inetd service. | |
116 | ||
117 | %description daemon-inetd -l pl.UTF-8 | |
5db07614 JB |
118 | Git-daemon to prosty demon git korzystający z protokołu TCP do |
119 | udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne | |
120 | do uruchomienia git-demona w trybie usługi inetd. | |
b11ada2c AG |
121 | |
122 | %package daemon-standalone | |
123 | Summary: Files necessary to run git-daemon as a standalone service | |
5db07614 | 124 | Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej |
b11ada2c AG |
125 | Group: Networking/Daemons |
126 | Requires: %{name} = %{version}-%{release} | |
127 | Provides: git-core-daemon | |
128 | Obsoletes: git-core-daemon | |
129 | Obsoletes: git-core-daemon-inetd | |
130 | ||
131 | %description daemon-standalone | |
132 | Git-daemon is a really simple TCP git daemon that can serve git | |
133 | repositories. This package provides all necessarry files to run | |
134 | git-daemon as an standalone service. | |
135 | ||
136 | %description daemon-standalone -l pl.UTF-8 | |
5db07614 JB |
137 | Git-daemon to prosty demon git korzystający z protokołu TCP do |
138 | udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne | |
139 | do uruchomienia git-daemona w trybie usługi samodzielnej. | |
b11ada2c | 140 | |
e3cefa79 | 141 | %package devel |
66a7f095 | 142 | Summary: Header files for git-core |
3f8032f4 | 143 | Summary(pl.UTF-8): Pliki nagłówkowe dla git-core |
66a7f095 | 144 | Group: Development/Libraries |
e3cefa79 | 145 | |
146 | %description devel | |
66a7f095 | 147 | Header files for git-core. |
148 | ||
ea061c99 JR |
149 | %description devel -l pl.UTF-8 |
150 | Pliki nagłówkowe dla git-core. | |
e3cefa79 | 151 | |
91396e2e AG |
152 | %package gitk |
153 | Summary: Tcl/Tk interface to the Git version control system | |
154 | Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git | |
155 | Group: Development/Tools | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | Requires: tk | |
158 | ||
159 | %description gitk | |
1fcd08a6 JB |
160 | gitk displays changes in a repository or a selected set of commits. |
161 | This includes visualizing the commit graph, showing information | |
162 | related to each commit, and the files in the trees of each revision. | |
91396e2e AG |
163 | |
164 | Historically, gitk was the first repository browser. It's written in | |
04fdf912 | 165 | Tcl/Tk and started off in a separate repository but was later merged |
91396e2e AG |
166 | into the main git repository. |
167 | ||
168 | %description gitk -l pl.UTF-8 | |
1fcd08a6 JB |
169 | gitk wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. |
170 | Oznacza to wizualizację grafu commitów, wyświetlanie informacji | |
171 | związanych z każdym z commitów oraz listę plików dla każdej rewizji. | |
91396e2e | 172 | |
1fcd08a6 | 173 | Z historycznego punktu widzenia gitk był pierwszą przeglądarką |
02059138 ER |
174 | repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w |
175 | osobnym repozytorium, ale z czasem został włączony do głównego | |
2712fe7b | 176 | repozytorium gita. |
91396e2e | 177 | |
be2ccf99 AG |
178 | %package gitweb |
179 | Summary: Web frontend to git | |
180 | Summary(pl.UTF-8): Webowy frontend do git | |
181 | Group: Development/Tools | |
182 | Requires: %{name} = %{version}-%{release} | |
183 | Requires: webapps | |
184 | ||
185 | %description gitweb | |
186 | This package provides a web interface for browsing git repositories. | |
187 | ||
188 | %description gitweb -l pl.UTF-8 | |
2712fe7b | 189 | Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita. |
be2ccf99 | 190 | |
e1c8d79f | 191 | %package gitview |
30794a22 JB |
192 | Summary: A GTK+ based repository browser for git |
193 | Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita | |
e1c8d79f | 194 | Group: Development/Tools |
195 | Requires: %{name} = %{version}-%{release} | |
c95a5d99 JB |
196 | Requires: python >= 1:2.4 |
197 | Requires: python-pycairo >= 1.0 | |
198 | Requires: python-pygobject | |
199 | Requires: python-pygtk-gtk >= 2:2.8 | |
200 | Suggests: python-gnome-desktop-gtksourceview | |
e1c8d79f | 201 | |
202 | %description gitview | |
30794a22 | 203 | A GTK+ based repository browser for git. |
e1c8d79f | 204 | |
205 | %description gitview -l pl.UTF-8 | |
30794a22 | 206 | Oparta na GTK+ przeglądarka repozytorium gita. |
e1c8d79f | 207 | |
f9871074 AG |
208 | %package gui |
209 | Summary: Tcl/Tk interface to the Git version control system | |
210 | Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git | |
211 | Group: Development/Tools | |
212 | Requires: %{name} = %{version}-%{release} | |
213 | Requires: tk | |
214 | ||
215 | %description gui | |
216 | Displays changes in a repository or a selected set of commits. This | |
217 | includes visualizing the commit graph, showing information related to | |
218 | each commit, and the files in the trees of each revision. | |
219 | ||
220 | Historically, gitk was the first repository browser. It's written in | |
221 | Tcl/Tk and started off in a separate repository but was later merged | |
222 | into the main git repository. | |
223 | ||
224 | %description gui -l pl.UTF-8 | |
225 | Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza | |
226 | to wizualizację grafu commitów, wyświetlanie informacji związanych z | |
227 | każdym z commitów oraz listę plików dla każdej rewizji. | |
228 | ||
229 | Z punktu widzenia historii, gitk był pierwszą przeglądarką | |
230 | repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w | |
231 | osobnym repozytorium, ale z czasem został włączony do głównego | |
232 | repozytorium gita. | |
233 | ||
2c0376c9 AM |
234 | %package svn |
235 | Summary: Subversion support for Git | |
236 | Summary(pl.UTF-8): Obsługa Subversion dla Git | |
237 | Group: Development/Tools | |
238 | Requires: %{name} = %{version}-%{release} | |
239 | ||
240 | %description svn | |
241 | Subversion support for Git. | |
242 | ||
243 | %description svn -l pl.UTF-8 | |
244 | Obsługa Subversion dla Git. | |
245 | ||
246 | %package cvs | |
247 | Summary: CVS support for Git | |
248 | Summary(pl.UTF-8): Obsługa CVS dla Git | |
249 | Group: Development/Tools | |
250 | Requires: %{name} = %{version}-%{release} | |
251 | Requires: cvsps >= 2.1-2 | |
252 | Requires: rcs | |
253 | ||
254 | %description cvs | |
255 | CVS support for Git. | |
256 | ||
257 | %description cvs -l pl.UTF-8 | |
258 | Obsługa CVS dla Git. | |
259 | ||
d82521ea ER |
260 | %package arch |
261 | Summary: Git tools for importing Arch repositories | |
262 | Group: Development/Tools | |
263 | Requires: %{name} = %{version}-%{release} | |
264 | Requires: tla | |
265 | ||
266 | %description arch | |
267 | Git tools for importing Arch repositories. | |
268 | ||
269 | %package email | |
270 | Summary: Git tools for sending email | |
271 | Group: Development/Tools | |
272 | Requires: %{name} = %{version}-%{release} | |
273 | ||
274 | %description email | |
275 | Git tools for sending email. | |
276 | ||
f2c1983d AG |
277 | %package -n bash-completion-git |
278 | Summary: bash-completion for git | |
2712fe7b | 279 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita |
02059138 | 280 | Group: Applications/Shells |
f2c1983d AG |
281 | Requires: bash-completion |
282 | ||
283 | %description -n bash-completion-git | |
284 | This package provides bash-completion for git. | |
285 | ||
286 | %description -n bash-completion-git -l pl.UTF-8 | |
5383e3af | 287 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita. |
f2c1983d | 288 | |
3dc01deb | 289 | %package -n perl-Git |
5d7220ad | 290 | Summary: Perl interface to the Git version control system |
3f8032f4 | 291 | Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git |
5d7220ad | 292 | Group: Development/Languages/Perl |
27b79a12 | 293 | Obsoletes: perl-git-core |
5d7220ad | 294 | |
3dc01deb | 295 | %description -n perl-Git |
5d7220ad AM |
296 | This module provides Perl scripts easy way to interface the Git |
297 | version control system. The modules have an easy and well-tested way | |
298 | to call arbitrary Git commands; in the future, the interface will also | |
299 | provide specialized methods for doing easily operations which are not | |
300 | totally trivial to do over the generic command interface. | |
301 | ||
ea061c99 JR |
302 | %description -n perl-Git -l pl.UTF-8 |
303 | Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli | |
08cc92d7 ER |
304 | wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać |
305 | dowolne polecenia Gita; w przyszłości interfejs udostępni także | |
306 | specjalne metody do łatwego wykonywania operacji nietrywialnych do | |
307 | wykonania przy użyciu ogólnego interfejsu poleceń. | |
7eef96e1 | 308 | |
f2c1983d AG |
309 | %package -n vim-syntax-gitcommit |
310 | Summary: Vim syntax: gitcommit | |
2712fe7b | 311 | Summary(pl.UTF-8): Składnia dla Vima: gitcommit |
f2c1983d AG |
312 | Group: Applications/Editors/Vim |
313 | # for _vimdatadir existence | |
34bbdd69 | 314 | Requires: vim-rt >= 4:6.3.058-3 |
f2c1983d AG |
315 | |
316 | %description -n vim-syntax-gitcommit | |
317 | This plugin provides syntax highlighting for git's commit messages. | |
318 | ||
319 | %description -n vim-syntax-gitcommit -l pl.UTF-8 | |
2712fe7b | 320 | Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita. |
f2c1983d | 321 | |
51c3b977 | 322 | %prep |
bf83806a | 323 | %setup -q -n git-%{version} |
a1036d06 | 324 | |
325 | %build | |
11856720 AM |
326 | %{__aclocal} |
327 | %{__autoconf} | |
328 | %configure \ | |
329 | --with-openssl | |
51c3b977 | 330 | |
b69112f7 | 331 | %{__make} \ |
7fe8e335 | 332 | BLK_SHA1=1 \ |
be2ccf99 AG |
333 | INSTALLDIRS=vendor \ |
334 | GITWEB_CONFIG="%{webappdir}/gitweb.conf" \ | |
335 | GITWEB_PROJECTROOT="/var/lib/git" \ | |
336 | GITWEB_CSS="/gitweb/gitweb.css" \ | |
337 | GITWEB_LOGO="/gitweb/git-logo.png" \ | |
338 | GITWEB_FAVICON="/gitweb/git-favicon.png" | |
27b79a12 | 339 | |
08cc92d7 | 340 | %{?with_doc:%{__make} -C Documentation} |
7fdeb28c | 341 | |
db032591 AM |
342 | %if %{with tests} |
343 | %if %{without tests_cvs} | |
344 | rm t/t*cvs*.sh | |
345 | %endif | |
346 | %{__make} test | |
347 | %endif | |
6c0d6e05 | 348 | |
51c3b977 | 349 | %install |
350 | rm -rf $RPM_BUILD_ROOT | |
5db07614 | 351 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git} |
be2ccf99 | 352 | install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}} |
5db07614 | 353 | install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d} |
c751087d | 354 | |
51c3b977 | 355 | %{__make} install \ |
d778c02c | 356 | INSTALLDIRS=vendor \ |
51c3b977 | 357 | DESTDIR=$RPM_BUILD_ROOT |
358 | ||
08cc92d7 | 359 | %if %{with doc} |
7fdeb28c | 360 | %{__make} -C Documentation install \ |
7fdeb28c | 361 | DESTDIR=$RPM_BUILD_ROOT |
08cc92d7 | 362 | %endif |
7fdeb28c | 363 | |
1f25da6d | 364 | # header files and lib |
e3cefa79 | 365 | install *.h $RPM_BUILD_ROOT%{_includedir}/%{name} |
366 | install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff | |
1f25da6d | 367 | install libgit.a $RPM_BUILD_ROOT%{_libdir} |
eaf5c40c | 368 | install xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a |
e3cefa79 | 369 | |
f2c1983d | 370 | # bash completion |
d82521ea ER |
371 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
372 | cp -a contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
f2c1983d AG |
373 | |
374 | # vim syntax | |
d82521ea ER |
375 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax |
376 | cat > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax/gitcommit.vim << 'EOF' | |
670fe4d6 AG |
377 | autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit |
378 | autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig | |
379 | autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase | |
380 | autocmd BufNewFile,BufRead .msg.[0-9]* | |
381 | \ if getline(1) =~ '^From.*# This line is ignored.$' | | |
382 | \ setf gitsendemail | | |
383 | \ endif | |
384 | autocmd BufNewFile,BufRead *.git/** | |
385 | \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | | |
386 | \ setf git | | |
387 | \ endif | |
388 | EOF | |
f2c1983d | 389 | |
be2ccf99 | 390 | # gitweb |
d82521ea ER |
391 | install -p gitweb/gitweb.cgi $RPM_BUILD_ROOT%{cgibindir} |
392 | cp -a gitweb/*.css gitweb/*.png $RPM_BUILD_ROOT%{appdir} | |
393 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf | |
394 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf | |
395 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf | |
be2ccf99 | 396 | |
e1c8d79f | 397 | # gitview |
d82521ea | 398 | install -p contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir} |
e1c8d79f | 399 | |
b11ada2c | 400 | # git-daemon related files |
d82521ea ER |
401 | cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon |
402 | cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon | |
403 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon | |
b11ada2c | 404 | |
bf7a9a54 | 405 | # paths cleanup |
2c0376c9 | 406 | sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon |
bf7a9a54 AG |
407 | sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon |
408 | ||
4e9fd7a9 ER |
409 | # hardlink |
410 | ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-receive-pack} | |
411 | ln -f $RPM_BUILD_ROOT%{_bindir}/{git,git-upload-archive} | |
412 | ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-shell | |
413 | ln -f $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_bindir}}/git-upload-pack | |
414 | ||
be2ccf99 | 415 | # remove unneeded files |
d82521ea ER |
416 | rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
417 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist | |
418 | rm $RPM_BUILD_ROOT%{perl_vendorlib}/Error.pm | |
419 | rm $RPM_BUILD_ROOT%{_mandir}/man3/private-Error.3* | |
27b79a12 | 420 | |
51c3b977 | 421 | %clean |
422 | rm -rf $RPM_BUILD_ROOT | |
423 | ||
b11ada2c AG |
424 | %post daemon-inetd |
425 | %service -q rc-inetd reload | |
426 | ||
427 | %postun daemon-inetd | |
428 | if [ "$1" = "0" ]; then | |
429 | %service -q rc-inetd reload | |
430 | fi | |
431 | ||
432 | %post daemon-standalone | |
433 | /sbin/chkconfig --add git-daemon | |
434 | %service git-daemon restart "git-daemon" | |
435 | ||
436 | %preun daemon-standalone | |
437 | if [ "$1" = "0" ]; then | |
438 | %service git-daemon stop | |
439 | /sbin/chkconfig --del git-daemon | |
440 | fi | |
441 | ||
be2ccf99 AG |
442 | %triggerin gitweb -- apache1 < 1.3.37-3, apache1-base |
443 | %webapp_register apache %{webapp} | |
444 | ||
445 | %triggerun gitweb -- apache1 < 1.3.37-3, apache1-base | |
446 | %webapp_unregister apache %{webapp} | |
447 | ||
448 | %triggerin gitweb -- apache < 2.2.0, apache-base | |
449 | %webapp_register httpd %{webapp} | |
450 | ||
451 | %triggerun gitweb -- apache < 2.2.0, apache-base | |
452 | %webapp_unregister httpd %{webapp} | |
453 | ||
51c3b977 | 454 | %files |
455 | %defattr(644,root,root,755) | |
08cc92d7 ER |
456 | %doc README contrib |
457 | %if %{with doc} | |
6704f810 | 458 | %doc Documentation/RelNotes* |
feb8e9b1 | 459 | %doc Documentation/*.html Documentation/howto Documentation/technical |
0afd37aa | 460 | %{_mandir}/man1/git-*.1* |
d82521ea ER |
461 | %if 0 |
462 | # rpm doesn't support exclude for %%doc | |
463 | %exclude Documentation/*svn*.html | |
464 | %exclude Documentation/*git-cvs*.html | |
465 | %exclude Documentation/git-archimport.html | |
466 | %endif | |
2c0376c9 AM |
467 | %exclude %{_mandir}/man1/git-svn.1* |
468 | %exclude %{_mandir}/man1/git-cvs*.1* | |
a48d28b8 | 469 | %{_mandir}/man1/git.1* |
0afd37aa | 470 | %{_mandir}/man5/gitattributes.5* |
a48d28b8 | 471 | %{_mandir}/man5/githooks.5* |
0afd37aa | 472 | %{_mandir}/man5/gitignore.5* |
785b167d | 473 | %{_mandir}/man5/gitmodules.5* |
a48d28b8 AG |
474 | %{_mandir}/man5/gitrepository-layout.5* |
475 | %{_mandir}/man7/gitcli.7* | |
476 | %{_mandir}/man7/gitcore-tutorial.7* | |
a48d28b8 AG |
477 | %{_mandir}/man7/gitdiffcore.7* |
478 | %{_mandir}/man7/gitglossary.7* | |
479 | %{_mandir}/man7/gittutorial-2.7* | |
480 | %{_mandir}/man7/gittutorial.7* | |
670fe4d6 | 481 | %{_mandir}/man7/gitworkflows.7* |
08cc92d7 ER |
482 | %endif |
483 | %attr(755,root,root) %{_bindir}/git | |
484 | %attr(755,root,root) %{_bindir}/git-* | |
bf6fa63c AM |
485 | %dir %{_libdir}/%{name} |
486 | %attr(755,root,root) %{_libdir}/%{name}/*-* | |
39dc084d | 487 | %attr(755,root,root) %{_libdir}/%{name}/git |
bf6fa63c | 488 | %exclude %{_libdir}/%{name}/git-gui |
2c0376c9 | 489 | %exclude %{_libdir}/%{name}/git-svn |
d82521ea | 490 | %exclude %{_libdir}/%{name}/git-archimport |
2c0376c9 | 491 | %exclude %{_libdir}/%{name}/git-cvs* |
d82521ea | 492 | %exclude %{_libdir}/%{name}/*email* |
6c4f9a5b | 493 | %{_datadir}/%{name} |
5db07614 | 494 | %{_localstatedir}/lib/git |
e3cefa79 | 495 | |
b11ada2c AG |
496 | %files daemon-inetd |
497 | %defattr(644,root,root,755) | |
498 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon | |
499 | ||
500 | %files daemon-standalone | |
501 | %defattr(644,root,root,755) | |
502 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon | |
503 | %attr(754,root, root) /etc/rc.d/init.d/git-daemon | |
504 | ||
e3cefa79 | 505 | %files devel |
3ff86e9e | 506 | %defattr(644,root,root,755) |
5db07614 JB |
507 | %{_includedir}/git-core |
508 | %{_libdir}/libgit.a | |
eaf5c40c | 509 | %{_libdir}/libgit_xdiff.a |
5d7220ad | 510 | |
91396e2e AG |
511 | %files gitk |
512 | %defattr(644,root,root,755) | |
08cc92d7 | 513 | %if %{with doc} |
91396e2e | 514 | %{_mandir}/man1/gitk.1* |
08cc92d7 ER |
515 | %endif |
516 | %attr(755,root,root) %{_bindir}/gitk | |
9fa88d97 AM |
517 | %dir %{_datadir}/gitk |
518 | %dir %{_datadir}/gitk/lib | |
519 | %dir %{_datadir}/gitk/lib/msgs | |
3b243bbe | 520 | %lang(de) %{_datadir}/gitk/lib/msgs/de.msg |
f9871074 | 521 | %lang(es) %{_datadir}/gitk/lib/msgs/es.msg |
3b243bbe | 522 | %lang(it) %{_datadir}/gitk/lib/msgs/it.msg |
95998f97 | 523 | %lang(ru) %{_datadir}/gitk/lib/msgs/ru.msg |
f9871074 | 524 | %lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg |
91396e2e | 525 | |
be2ccf99 AG |
526 | %files gitweb |
527 | %defattr(644,root,root,755) | |
528 | %doc gitweb/{README,INSTALL} | |
529 | %dir %{webappdir} | |
530 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf | |
531 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf | |
532 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf | |
533 | %attr(755,root,root) %{cgibindir}/gitweb.cgi | |
534 | %{appdir} | |
535 | ||
e1c8d79f | 536 | %files gitview |
537 | %defattr(644,root,root,755) | |
538 | %doc contrib/gitview/gitview.txt | |
539 | %attr(755,root,root) %{_bindir}/gitview | |
540 | ||
f9871074 AG |
541 | %files gui |
542 | %defattr(644,root,root,755) | |
bf6fa63c | 543 | %attr(755,root,root) %{_libdir}/%{name}/git-gui |
f9871074 AG |
544 | %dir %{_datadir}/git-gui |
545 | %dir %{_datadir}/git-gui/lib | |
546 | %dir %{_datadir}/git-gui/lib/msgs | |
547 | %{_datadir}/git-gui/lib/git-gui.ico | |
548 | %{_datadir}/git-gui/lib/tclIndex | |
549 | %{_datadir}/git-gui/lib/*.js | |
550 | %{_datadir}/git-gui/lib/*.tcl | |
551 | %lang(de) %{_datadir}/git-gui/lib/msgs/de.msg | |
552 | %lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg | |
553 | %lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg | |
554 | %lang(it) %{_datadir}/git-gui/lib/msgs/it.msg | |
555 | %lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg | |
670fe4d6 | 556 | %lang(nb) %{_datadir}/git-gui/lib/msgs/nb.msg |
f9871074 AG |
557 | %lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg |
558 | %lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg | |
559 | %lang(zh_cn) %{_datadir}/git-gui/lib/msgs/zh_cn.msg | |
560 | ||
2c0376c9 AM |
561 | %files svn |
562 | %defattr(644,root,root,755) | |
563 | %attr(755,root,root) %{_libdir}/%{name}/git-svn | |
564 | %if %{with doc} | |
565 | %{_mandir}/man1/git-svn.1* | |
d82521ea | 566 | %doc Documentation/*svn*.html |
2c0376c9 AM |
567 | %endif |
568 | ||
569 | %files cvs | |
570 | %defattr(644,root,root,755) | |
571 | %attr(755,root,root) %{_libdir}/%{name}/git-cvs* | |
572 | %if %{with doc} | |
d82521ea | 573 | %doc Documentation/*git-cvs*.html |
2c0376c9 AM |
574 | %{_mandir}/man1/git-cvs*.1* |
575 | %{_mandir}/man7/gitcvs-migration.7* | |
576 | %endif | |
577 | ||
d82521ea ER |
578 | %files arch |
579 | %defattr(644,root,root,755) | |
580 | %doc Documentation/git-archimport.txt | |
581 | %attr(755,root,root) %{_libdir}/%{name}/git-archimport | |
582 | %if %{with doc} | |
583 | %doc Documentation/git-archimport.html | |
584 | %{_mandir}/man1/git-archimport.1* | |
585 | %endif | |
586 | ||
587 | %files email | |
588 | %defattr(644,root,root,755) | |
589 | %doc Documentation/*email*.txt | |
590 | %attr(755,root,root) %{_libdir}/%{name}/*email* | |
591 | %if %{with doc} | |
592 | %doc Documentation/*email*.html | |
593 | %{_mandir}/man1/*email*.1* | |
594 | %endif | |
595 | ||
f2c1983d AG |
596 | %files -n bash-completion-git |
597 | %defattr(644,root,root,755) | |
598 | %{_sysconfdir}/bash_completion.d/* | |
599 | ||
3dc01deb | 600 | %files -n perl-Git |
5d7220ad | 601 | %defattr(644,root,root,755) |
3dc01deb | 602 | %{perl_vendorlib}/Git.pm |
0afd37aa | 603 | %{_mandir}/man3/Git.3pm* |
f2c1983d AG |
604 | |
605 | %files -n vim-syntax-gitcommit | |
606 | %defattr(644,root,root,755) | |
607 | %doc contrib/vim/README | |
d82521ea | 608 | %{_datadir}/vim/vimfiles/syntax/*.vim |