]>
Commit | Line | Data |
---|---|---|
84013e7c | 1 | # |
891d0b05 JB |
2 | # Conditional build: |
3 | %bcond_without tests # don't perform make test | |
08cc92d7 | 4 | %bcond_without doc # skip building/packaging docs/manuals (takes some time) |
891d0b05 | 5 | # |
89a476f8 | 6 | %include /usr/lib/rpm/macros.perl |
51c3b977 | 7 | Summary: The stupid content tracker |
3f8032f4 | 8 | Summary(pl.UTF-8): Prymitywne narzędzie do śledzenia treści |
51c3b977 | 9 | Name: git-core |
940238dd | 10 | Version: 1.6.2.3 |
a9299ab1 | 11 | Release: 1 |
51c3b977 | 12 | License: GPL v2 |
13 | Group: Development/Tools | |
bf83806a | 14 | Source0: http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2 |
940238dd | 15 | # Source0-md5: 7213fa232e0f83fc2971ded6e528ae18 |
be2ccf99 AG |
16 | Source1: %{name}-gitweb.conf |
17 | Source2: %{name}-gitweb-httpd.conf | |
b11ada2c AG |
18 | Source3: %{name}.sysconfig |
19 | Source4: %{name}.inet | |
20 | Source5: %{name}.init | |
e699dd89 | 21 | URL: http://git-scm.com/ |
11856720 AM |
22 | BuildRequires: autoconf |
23 | BuildRequires: automake | |
51c3b977 | 24 | BuildRequires: curl-devel |
115484e9 | 25 | BuildRequires: expat-devel |
72ec88fd | 26 | BuildRequires: gettext-devel |
51c3b977 | 27 | BuildRequires: openssl-devel |
27b79a12 | 28 | BuildRequires: perl-Error |
51c3b977 | 29 | BuildRequires: perl-base |
30 | BuildRequires: python | |
89a476f8 | 31 | BuildRequires: rpm-perlprov >= 4.1-13 |
be2ccf99 | 32 | BuildRequires: rpmbuild(macros) >= 1.264 |
51c3b977 | 33 | BuildRequires: zlib-devel |
08cc92d7 ER |
34 | %if %{with doc} |
35 | BuildRequires: asciidoc >= 7.1.2-3 | |
36 | BuildRequires: xmlto | |
37 | %endif | |
2c50f007 | 38 | %if %{with tests} |
08cc92d7 | 39 | BuildRequires: pdksh >= 5.2.14-46 |
2c50f007 | 40 | %endif |
3f245fc5 | 41 | Requires: coreutils |
06705076 | 42 | Requires: cvsps >= 2.1-2 |
11856720 | 43 | Requires: diffutils |
3f245fc5 AM |
44 | Requires: findutils |
45 | Requires: grep | |
11856720 | 46 | Requires: openssh-clients |
f266cd28 | 47 | Requires: perl-Error |
401f46f5 | 48 | Requires: rcs |
3f245fc5 | 49 | Requires: sed |
51c3b977 | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
19936745 AM |
52 | # html docs have links to txt files |
53 | %define _noautocompressdoc *.txt | |
54 | ||
be2ccf99 AG |
55 | %define webapp gitweb |
56 | %define webappdir %{_sysconfdir}/webapps/%{webapp} | |
57 | %define appdir %{_datadir}/%{webapp} | |
58 | %define cgibindir %{_prefix}/lib/cgi-bin | |
59 | ||
51c3b977 | 60 | %description |
61 | "git" can mean anything, depending on your mood. | |
62 | ||
63 | - random three-letter combination that is pronounceable, and not | |
c751087d | 64 | actually used by any common UNIX command. The fact that it is a |
51c3b977 | 65 | mispronunciation of "get" may or may not be relevant. |
66 | - stupid. contemptible and despicable. simple. Take your pick from the | |
67 | dictionary of slang. | |
68 | - "global information tracker": you're in a good mood, and it actually | |
69 | works for you. Angels sing, and a light suddenly fills the room. | |
70 | - "goddamn idiotic truckload of sh*t": when it breaks | |
71 | ||
c751087d | 72 | This is a stupid (but extremely fast) directory content manager. It |
51c3b977 | 73 | doesn't do a whole lot, but what it 'does' do is track directory |
74 | contents efficiently. | |
75 | ||
ea061c99 JR |
76 | %description -l pl.UTF-8 |
77 | "git" może oznaczać cokolwiek, w zależności od nastroju. | |
78 | ||
b11ada2c AG |
79 | - losową kombinację trzech liter, która jest wymawialna i właściwie |
80 | nie używana przez żadne popularne polecenie uniksowe. Fakt, że jest to | |
81 | błędna pisownia słowa "get" może mieć lub nie mieć znaczenia. | |
82 | - głupi, pogardliwy, prosty. Można wybrać ze słownika slangu. | |
83 | - "global information tracker" (narzędzie do globalnego śledzenia | |
84 | informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa. | |
85 | Anioły śpiewają, a światło niespodziewanie wypełnia pokój. | |
86 | - "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek | |
87 | g*) - kiedy się zepsuje. | |
ea061c99 JR |
88 | |
89 | Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej. | |
90 | Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości | |
c751087d JB |
91 | katalogu. |
92 | ||
b11ada2c AG |
93 | %package daemon-inetd |
94 | Summary: Files necessary to run git-daemon as an inetd service | |
5db07614 | 95 | Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi inetd |
b11ada2c AG |
96 | Group: Networking/Daemons |
97 | Requires: %{name} = %{version}-%{release} | |
98 | Requires: setup >= 2.4.11-1 | |
99 | Provides: git-core-daemon | |
100 | Obsoletes: git-core-daemon | |
101 | Obsoletes: git-core-daemon-standalone | |
102 | ||
103 | %description daemon-inetd | |
104 | Git-daemon is a really simple TCP git daemon that can serve git | |
105 | repositories. This package provides all necessarry files to run | |
106 | git-daemon as an inetd service. | |
107 | ||
108 | %description daemon-inetd -l pl.UTF-8 | |
5db07614 JB |
109 | Git-daemon to prosty demon git korzystający z protokołu TCP do |
110 | udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne | |
111 | do uruchomienia git-demona w trybie usługi inetd. | |
b11ada2c AG |
112 | |
113 | %package daemon-standalone | |
114 | Summary: Files necessary to run git-daemon as a standalone service | |
5db07614 | 115 | Summary(pl.UTF-8): Pliki niezbędne do uruchomienia git-daemona w trybie usługi samodzielnej |
b11ada2c AG |
116 | Group: Networking/Daemons |
117 | Requires: %{name} = %{version}-%{release} | |
118 | Provides: git-core-daemon | |
119 | Obsoletes: git-core-daemon | |
120 | Obsoletes: git-core-daemon-inetd | |
121 | ||
122 | %description daemon-standalone | |
123 | Git-daemon is a really simple TCP git daemon that can serve git | |
124 | repositories. This package provides all necessarry files to run | |
125 | git-daemon as an standalone service. | |
126 | ||
127 | %description daemon-standalone -l pl.UTF-8 | |
5db07614 JB |
128 | Git-daemon to prosty demon git korzystający z protokołu TCP do |
129 | udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne | |
130 | do uruchomienia git-daemona w trybie usługi samodzielnej. | |
b11ada2c | 131 | |
e3cefa79 | 132 | %package devel |
66a7f095 | 133 | Summary: Header files for git-core |
3f8032f4 | 134 | Summary(pl.UTF-8): Pliki nagłówkowe dla git-core |
66a7f095 | 135 | Group: Development/Libraries |
e3cefa79 | 136 | |
137 | %description devel | |
66a7f095 | 138 | Header files for git-core. |
139 | ||
ea061c99 JR |
140 | %description devel -l pl.UTF-8 |
141 | Pliki nagłówkowe dla git-core. | |
e3cefa79 | 142 | |
91396e2e AG |
143 | %package gitk |
144 | Summary: Tcl/Tk interface to the Git version control system | |
145 | Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git | |
146 | Group: Development/Tools | |
147 | Requires: %{name} = %{version}-%{release} | |
148 | Requires: tk | |
149 | ||
150 | %description gitk | |
1fcd08a6 JB |
151 | gitk displays changes in a repository or a selected set of commits. |
152 | This includes visualizing the commit graph, showing information | |
153 | related to each commit, and the files in the trees of each revision. | |
91396e2e AG |
154 | |
155 | Historically, gitk was the first repository browser. It's written in | |
04fdf912 | 156 | Tcl/Tk and started off in a separate repository but was later merged |
91396e2e AG |
157 | into the main git repository. |
158 | ||
159 | %description gitk -l pl.UTF-8 | |
1fcd08a6 JB |
160 | gitk wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. |
161 | Oznacza to wizualizację grafu commitów, wyświetlanie informacji | |
162 | związanych z każdym z commitów oraz listę plików dla każdej rewizji. | |
91396e2e | 163 | |
1fcd08a6 | 164 | Z historycznego punktu widzenia gitk był pierwszą przeglądarką |
02059138 ER |
165 | repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w |
166 | osobnym repozytorium, ale z czasem został włączony do głównego | |
2712fe7b | 167 | repozytorium gita. |
91396e2e | 168 | |
be2ccf99 AG |
169 | %package gitweb |
170 | Summary: Web frontend to git | |
171 | Summary(pl.UTF-8): Webowy frontend do git | |
172 | Group: Development/Tools | |
173 | Requires: %{name} = %{version}-%{release} | |
174 | Requires: webapps | |
175 | ||
176 | %description gitweb | |
177 | This package provides a web interface for browsing git repositories. | |
178 | ||
179 | %description gitweb -l pl.UTF-8 | |
2712fe7b | 180 | Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita. |
be2ccf99 | 181 | |
e1c8d79f | 182 | %package gitview |
30794a22 JB |
183 | Summary: A GTK+ based repository browser for git |
184 | Summary(pl.UTF-8): Oparta na GTK+ przeglądarka repozytorium gita | |
e1c8d79f | 185 | Group: Development/Tools |
186 | Requires: %{name} = %{version}-%{release} | |
c95a5d99 JB |
187 | Requires: python >= 1:2.4 |
188 | Requires: python-pycairo >= 1.0 | |
189 | Requires: python-pygobject | |
190 | Requires: python-pygtk-gtk >= 2:2.8 | |
191 | Suggests: python-gnome-desktop-gtksourceview | |
e1c8d79f | 192 | |
193 | %description gitview | |
30794a22 | 194 | A GTK+ based repository browser for git. |
e1c8d79f | 195 | |
196 | %description gitview -l pl.UTF-8 | |
30794a22 | 197 | Oparta na GTK+ przeglądarka repozytorium gita. |
e1c8d79f | 198 | |
f9871074 AG |
199 | %package gui |
200 | Summary: Tcl/Tk interface to the Git version control system | |
201 | Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git | |
202 | Group: Development/Tools | |
203 | Requires: %{name} = %{version}-%{release} | |
204 | Requires: tk | |
205 | ||
206 | %description gui | |
207 | Displays changes in a repository or a selected set of commits. This | |
208 | includes visualizing the commit graph, showing information related to | |
209 | each commit, and the files in the trees of each revision. | |
210 | ||
211 | Historically, gitk was the first repository browser. It's written in | |
212 | Tcl/Tk and started off in a separate repository but was later merged | |
213 | into the main git repository. | |
214 | ||
215 | %description gui -l pl.UTF-8 | |
216 | Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. Oznacza | |
217 | to wizualizację grafu commitów, wyświetlanie informacji związanych z | |
218 | każdym z commitów oraz listę plików dla każdej rewizji. | |
219 | ||
220 | Z punktu widzenia historii, gitk był pierwszą przeglądarką | |
221 | repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany w | |
222 | osobnym repozytorium, ale z czasem został włączony do głównego | |
223 | repozytorium gita. | |
224 | ||
f2c1983d AG |
225 | %package -n bash-completion-git |
226 | Summary: bash-completion for git | |
2712fe7b | 227 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita |
02059138 | 228 | Group: Applications/Shells |
f2c1983d AG |
229 | Requires: bash-completion |
230 | ||
231 | %description -n bash-completion-git | |
232 | This package provides bash-completion for git. | |
233 | ||
234 | %description -n bash-completion-git -l pl.UTF-8 | |
5383e3af | 235 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla gita. |
f2c1983d | 236 | |
3dc01deb | 237 | %package -n perl-Git |
5d7220ad | 238 | Summary: Perl interface to the Git version control system |
3f8032f4 | 239 | Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git |
5d7220ad AM |
240 | Group: Development/Languages/Perl |
241 | Requires: %{name} = %{version}-%{release} | |
27b79a12 | 242 | Obsoletes: perl-git-core |
5d7220ad | 243 | |
3dc01deb | 244 | %description -n perl-Git |
5d7220ad AM |
245 | This module provides Perl scripts easy way to interface the Git |
246 | version control system. The modules have an easy and well-tested way | |
247 | to call arbitrary Git commands; in the future, the interface will also | |
248 | provide specialized methods for doing easily operations which are not | |
249 | totally trivial to do over the generic command interface. | |
250 | ||
ea061c99 JR |
251 | %description -n perl-Git -l pl.UTF-8 |
252 | Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli | |
08cc92d7 ER |
253 | wersji Git. W łatwy i dobrze przetestowany sposób pozwala wywoływać |
254 | dowolne polecenia Gita; w przyszłości interfejs udostępni także | |
255 | specjalne metody do łatwego wykonywania operacji nietrywialnych do | |
256 | wykonania przy użyciu ogólnego interfejsu poleceń. | |
7eef96e1 | 257 | |
f2c1983d AG |
258 | %package -n vim-syntax-gitcommit |
259 | Summary: Vim syntax: gitcommit | |
2712fe7b | 260 | Summary(pl.UTF-8): Składnia dla Vima: gitcommit |
f2c1983d AG |
261 | Group: Applications/Editors/Vim |
262 | # for _vimdatadir existence | |
34bbdd69 | 263 | Requires: vim-rt >= 4:6.3.058-3 |
f2c1983d AG |
264 | |
265 | %description -n vim-syntax-gitcommit | |
266 | This plugin provides syntax highlighting for git's commit messages. | |
267 | ||
268 | %description -n vim-syntax-gitcommit -l pl.UTF-8 | |
2712fe7b | 269 | Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita. |
f2c1983d | 270 | |
51c3b977 | 271 | %prep |
bf83806a | 272 | %setup -q -n git-%{version} |
a1036d06 | 273 | |
274 | %build | |
11856720 AM |
275 | %{__aclocal} |
276 | %{__autoconf} | |
277 | %configure \ | |
278 | --with-openssl | |
51c3b977 | 279 | |
b69112f7 | 280 | %{__make} \ |
be2ccf99 AG |
281 | INSTALLDIRS=vendor \ |
282 | GITWEB_CONFIG="%{webappdir}/gitweb.conf" \ | |
283 | GITWEB_PROJECTROOT="/var/lib/git" \ | |
284 | GITWEB_CSS="/gitweb/gitweb.css" \ | |
285 | GITWEB_LOGO="/gitweb/git-logo.png" \ | |
286 | GITWEB_FAVICON="/gitweb/git-favicon.png" | |
27b79a12 | 287 | |
08cc92d7 | 288 | %{?with_doc:%{__make} -C Documentation} |
7fdeb28c | 289 | |
6c0d6e05 AM |
290 | %{?with_tests:%{__make} test} |
291 | ||
51c3b977 | 292 | %install |
293 | rm -rf $RPM_BUILD_ROOT | |
5db07614 | 294 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_localstatedir}/lib/git} |
be2ccf99 | 295 | install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}} |
f2c1983d AG |
296 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax |
297 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
5db07614 | 298 | install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d} |
c751087d | 299 | |
51c3b977 | 300 | %{__make} install \ |
d778c02c | 301 | INSTALLDIRS=vendor \ |
51c3b977 | 302 | DESTDIR=$RPM_BUILD_ROOT |
303 | ||
08cc92d7 | 304 | %if %{with doc} |
7fdeb28c | 305 | %{__make} -C Documentation install \ |
7fdeb28c | 306 | DESTDIR=$RPM_BUILD_ROOT |
08cc92d7 | 307 | %endif |
7fdeb28c | 308 | |
1f25da6d | 309 | # header files and lib |
e3cefa79 | 310 | install *.h $RPM_BUILD_ROOT%{_includedir}/%{name} |
311 | install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff | |
1f25da6d | 312 | install libgit.a $RPM_BUILD_ROOT%{_libdir} |
eaf5c40c | 313 | install xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a |
e3cefa79 | 314 | |
f2c1983d AG |
315 | # bash completion |
316 | install contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
317 | ||
318 | # vim syntax | |
670fe4d6 AG |
319 | cat > $RPM_BUILD_ROOT/%{_datadir}/vim/vimfiles/syntax/gitcommit.vim << 'EOF' |
320 | autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit | |
321 | autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig | |
322 | autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase | |
323 | autocmd BufNewFile,BufRead .msg.[0-9]* | |
324 | \ if getline(1) =~ '^From.*# This line is ignored.$' | | |
325 | \ setf gitsendemail | | |
326 | \ endif | |
327 | autocmd BufNewFile,BufRead *.git/** | |
328 | \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | | |
329 | \ setf git | | |
330 | \ endif | |
331 | EOF | |
f2c1983d | 332 | |
be2ccf99 AG |
333 | # gitweb |
334 | install gitweb/*.css gitweb/*.png $RPM_BUILD_ROOT%{appdir} | |
335 | install gitweb/gitweb.cgi $RPM_BUILD_ROOT%{cgibindir} | |
336 | install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf | |
337 | install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf | |
338 | install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf | |
339 | ||
e1c8d79f | 340 | # gitview |
341 | install contrib/gitview/gitview $RPM_BUILD_ROOT%{_bindir} | |
342 | ||
b11ada2c | 343 | # git-daemon related files |
5db07614 JB |
344 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/git-daemon |
345 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon | |
346 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon | |
b11ada2c | 347 | |
bf7a9a54 AG |
348 | # paths cleanup |
349 | sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/rc.d/init.d/git-daemon | |
350 | sed -e 's,@libdir@,%{_libdir},g' -i $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/git-daemon | |
351 | ||
be2ccf99 | 352 | # remove unneeded files |
27b79a12 ER |
353 | rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
354 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist | |
c95a5d99 JB |
355 | rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Error.pm |
356 | rm -f $RPM_BUILD_ROOT%{_mandir}/man3/private-Error.3* | |
27b79a12 | 357 | |
51c3b977 | 358 | %clean |
359 | rm -rf $RPM_BUILD_ROOT | |
360 | ||
b11ada2c AG |
361 | %post daemon-inetd |
362 | %service -q rc-inetd reload | |
363 | ||
364 | %postun daemon-inetd | |
365 | if [ "$1" = "0" ]; then | |
366 | %service -q rc-inetd reload | |
367 | fi | |
368 | ||
369 | %post daemon-standalone | |
370 | /sbin/chkconfig --add git-daemon | |
371 | %service git-daemon restart "git-daemon" | |
372 | ||
373 | %preun daemon-standalone | |
374 | if [ "$1" = "0" ]; then | |
375 | %service git-daemon stop | |
376 | /sbin/chkconfig --del git-daemon | |
377 | fi | |
378 | ||
be2ccf99 AG |
379 | %triggerin gitweb -- apache1 < 1.3.37-3, apache1-base |
380 | %webapp_register apache %{webapp} | |
381 | ||
382 | %triggerun gitweb -- apache1 < 1.3.37-3, apache1-base | |
383 | %webapp_unregister apache %{webapp} | |
384 | ||
385 | %triggerin gitweb -- apache < 2.2.0, apache-base | |
386 | %webapp_register httpd %{webapp} | |
387 | ||
388 | %triggerun gitweb -- apache < 2.2.0, apache-base | |
389 | %webapp_unregister httpd %{webapp} | |
390 | ||
51c3b977 | 391 | %files |
392 | %defattr(644,root,root,755) | |
08cc92d7 ER |
393 | %doc README contrib |
394 | %if %{with doc} | |
6704f810 | 395 | %doc Documentation/RelNotes* |
feb8e9b1 | 396 | %doc Documentation/*.html Documentation/howto Documentation/technical |
0afd37aa | 397 | %{_mandir}/man1/git-*.1* |
a48d28b8 | 398 | %{_mandir}/man1/git.1* |
0afd37aa | 399 | %{_mandir}/man5/gitattributes.5* |
a48d28b8 | 400 | %{_mandir}/man5/githooks.5* |
0afd37aa | 401 | %{_mandir}/man5/gitignore.5* |
785b167d | 402 | %{_mandir}/man5/gitmodules.5* |
a48d28b8 AG |
403 | %{_mandir}/man5/gitrepository-layout.5* |
404 | %{_mandir}/man7/gitcli.7* | |
405 | %{_mandir}/man7/gitcore-tutorial.7* | |
406 | %{_mandir}/man7/gitcvs-migration.7* | |
407 | %{_mandir}/man7/gitdiffcore.7* | |
408 | %{_mandir}/man7/gitglossary.7* | |
409 | %{_mandir}/man7/gittutorial-2.7* | |
410 | %{_mandir}/man7/gittutorial.7* | |
670fe4d6 | 411 | %{_mandir}/man7/gitworkflows.7* |
08cc92d7 ER |
412 | %endif |
413 | %attr(755,root,root) %{_bindir}/git | |
414 | %attr(755,root,root) %{_bindir}/git-* | |
bf6fa63c AM |
415 | %dir %{_libdir}/%{name} |
416 | %attr(755,root,root) %{_libdir}/%{name}/*-* | |
417 | %exclude %{_libdir}/%{name}/git-gui | |
6c4f9a5b | 418 | %{_datadir}/%{name} |
5db07614 | 419 | %{_localstatedir}/lib/git |
e3cefa79 | 420 | |
b11ada2c AG |
421 | %files daemon-inetd |
422 | %defattr(644,root,root,755) | |
423 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/git-daemon | |
424 | ||
425 | %files daemon-standalone | |
426 | %defattr(644,root,root,755) | |
427 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/git-daemon | |
428 | %attr(754,root, root) /etc/rc.d/init.d/git-daemon | |
429 | ||
e3cefa79 | 430 | %files devel |
3ff86e9e | 431 | %defattr(644,root,root,755) |
5db07614 JB |
432 | %{_includedir}/git-core |
433 | %{_libdir}/libgit.a | |
eaf5c40c | 434 | %{_libdir}/libgit_xdiff.a |
5d7220ad | 435 | |
91396e2e AG |
436 | %files gitk |
437 | %defattr(644,root,root,755) | |
08cc92d7 | 438 | %if %{with doc} |
91396e2e | 439 | %{_mandir}/man1/gitk.1* |
08cc92d7 ER |
440 | %endif |
441 | %attr(755,root,root) %{_bindir}/gitk | |
9fa88d97 AM |
442 | %dir %{_datadir}/gitk |
443 | %dir %{_datadir}/gitk/lib | |
444 | %dir %{_datadir}/gitk/lib/msgs | |
3b243bbe | 445 | %lang(de) %{_datadir}/gitk/lib/msgs/de.msg |
f9871074 | 446 | %lang(es) %{_datadir}/gitk/lib/msgs/es.msg |
3b243bbe | 447 | %lang(it) %{_datadir}/gitk/lib/msgs/it.msg |
f9871074 | 448 | %lang(sv) %{_datadir}/gitk/lib/msgs/sv.msg |
91396e2e | 449 | |
be2ccf99 AG |
450 | %files gitweb |
451 | %defattr(644,root,root,755) | |
452 | %doc gitweb/{README,INSTALL} | |
453 | %dir %{webappdir} | |
454 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf | |
455 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf | |
456 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf | |
457 | %attr(755,root,root) %{cgibindir}/gitweb.cgi | |
458 | %{appdir} | |
459 | ||
e1c8d79f | 460 | %files gitview |
461 | %defattr(644,root,root,755) | |
462 | %doc contrib/gitview/gitview.txt | |
463 | %attr(755,root,root) %{_bindir}/gitview | |
464 | ||
f9871074 AG |
465 | %files gui |
466 | %defattr(644,root,root,755) | |
bf6fa63c | 467 | %attr(755,root,root) %{_libdir}/%{name}/git-gui |
f9871074 AG |
468 | %dir %{_datadir}/git-gui |
469 | %dir %{_datadir}/git-gui/lib | |
470 | %dir %{_datadir}/git-gui/lib/msgs | |
471 | %{_datadir}/git-gui/lib/git-gui.ico | |
472 | %{_datadir}/git-gui/lib/tclIndex | |
473 | %{_datadir}/git-gui/lib/*.js | |
474 | %{_datadir}/git-gui/lib/*.tcl | |
475 | %lang(de) %{_datadir}/git-gui/lib/msgs/de.msg | |
476 | %lang(fr) %{_datadir}/git-gui/lib/msgs/fr.msg | |
477 | %lang(hu) %{_datadir}/git-gui/lib/msgs/hu.msg | |
478 | %lang(it) %{_datadir}/git-gui/lib/msgs/it.msg | |
479 | %lang(ja) %{_datadir}/git-gui/lib/msgs/ja.msg | |
670fe4d6 | 480 | %lang(nb) %{_datadir}/git-gui/lib/msgs/nb.msg |
f9871074 AG |
481 | %lang(ru) %{_datadir}/git-gui/lib/msgs/ru.msg |
482 | %lang(sv) %{_datadir}/git-gui/lib/msgs/sv.msg | |
483 | %lang(zh_cn) %{_datadir}/git-gui/lib/msgs/zh_cn.msg | |
484 | ||
f2c1983d AG |
485 | %files -n bash-completion-git |
486 | %defattr(644,root,root,755) | |
487 | %{_sysconfdir}/bash_completion.d/* | |
488 | ||
3dc01deb | 489 | %files -n perl-Git |
5d7220ad | 490 | %defattr(644,root,root,755) |
3dc01deb | 491 | %{perl_vendorlib}/Git.pm |
0afd37aa | 492 | %{_mandir}/man3/Git.3pm* |
f2c1983d AG |
493 | |
494 | %files -n vim-syntax-gitcommit | |
495 | %defattr(644,root,root,755) | |
496 | %doc contrib/vim/README | |
497 | %{_datadir}/vim/vimfiles/syntax/* |