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