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