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