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