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