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