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