]>
Commit | Line | Data |
---|---|---|
891d0b05 JB |
1 | # Conditional build: |
2 | %bcond_without tests # don't perform make test | |
3 | # | |
89a476f8 | 4 | %include /usr/lib/rpm/macros.perl |
51c3b977 | 5 | Summary: The stupid content tracker |
3f8032f4 | 6 | Summary(pl.UTF-8): Prymitywne narzędzie do śledzenia treści |
51c3b977 | 7 | Name: git-core |
e2102902 AM |
8 | Version: 1.5.2.4 |
9 | Release: 1 | |
51c3b977 | 10 | License: GPL v2 |
11 | Group: Development/Tools | |
bf83806a | 12 | Source0: http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2 |
e2102902 | 13 | # Source0-md5: 641e97e6d77f094261cf80c6f68aa874 |
be2ccf99 AG |
14 | Source1: %{name}-gitweb.conf |
15 | Source2: %{name}-gitweb-httpd.conf | |
508ade43 | 16 | URL: http://git.or.cz/ |
7fdeb28c | 17 | BuildRequires: asciidoc |
11856720 AM |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
51c3b977 | 20 | BuildRequires: curl-devel |
115484e9 | 21 | BuildRequires: expat-devel |
51c3b977 | 22 | BuildRequires: openssl-devel |
27b79a12 | 23 | BuildRequires: perl-Error |
51c3b977 | 24 | BuildRequires: perl-base |
25 | BuildRequires: python | |
89a476f8 | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
be2ccf99 | 27 | BuildRequires: rpmbuild(macros) >= 1.264 |
7fdeb28c | 28 | BuildRequires: xmlto |
51c3b977 | 29 | BuildRequires: zlib-devel |
3f245fc5 | 30 | Requires: coreutils |
11856720 AM |
31 | Requires: curl |
32 | Requires: diffutils | |
3f245fc5 AM |
33 | Requires: findutils |
34 | Requires: grep | |
11856720 | 35 | Requires: openssh-clients |
f266cd28 | 36 | Requires: perl-Error |
401f46f5 | 37 | Requires: rcs |
3f245fc5 | 38 | Requires: sed |
51c3b977 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
be2ccf99 AG |
41 | %define webapp gitweb |
42 | %define webappdir %{_sysconfdir}/webapps/%{webapp} | |
43 | %define appdir %{_datadir}/%{webapp} | |
44 | %define cgibindir %{_prefix}/lib/cgi-bin | |
45 | ||
51c3b977 | 46 | %description |
47 | "git" can mean anything, depending on your mood. | |
48 | ||
49 | - random three-letter combination that is pronounceable, and not | |
c751087d | 50 | actually used by any common UNIX command. The fact that it is a |
51c3b977 | 51 | mispronunciation of "get" may or may not be relevant. |
52 | - stupid. contemptible and despicable. simple. Take your pick from the | |
53 | dictionary of slang. | |
54 | - "global information tracker": you're in a good mood, and it actually | |
55 | works for you. Angels sing, and a light suddenly fills the room. | |
56 | - "goddamn idiotic truckload of sh*t": when it breaks | |
57 | ||
c751087d | 58 | This is a stupid (but extremely fast) directory content manager. It |
51c3b977 | 59 | doesn't do a whole lot, but what it 'does' do is track directory |
60 | contents efficiently. | |
61 | ||
ea061c99 JR |
62 | %description -l pl.UTF-8 |
63 | "git" może oznaczać cokolwiek, w zależności od nastroju. | |
64 | ||
be2ccf99 AG |
65 | - losową kombinację trzech liter, która jest wymawialna i |
66 | właściwie nie używana przez żadne popularne polecenie uniksowe. | |
67 | Fakt, że jest to błędna pisownia słowa "get" może mieć lub nie | |
68 | mieć znaczenia. | |
ea061c99 JR |
69 | - głupi, pogardliwy, prosty. Można wybrać ze słownika slangu. |
70 | - "global information tracker" (narzędzie do globalnego śledzenia | |
71 | informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa. | |
72 | Anioły śpiewają, a światło niespodziewanie wypełnia pokój. | |
73 | - "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek | |
74 | g*) - kiedy się zepsuje. | |
75 | ||
76 | Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej. | |
77 | Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości | |
c751087d JB |
78 | katalogu. |
79 | ||
e3cefa79 | 80 | %package devel |
66a7f095 | 81 | Summary: Header files for git-core |
3f8032f4 | 82 | Summary(pl.UTF-8): Pliki nagłówkowe dla git-core |
66a7f095 | 83 | Group: Development/Libraries |
e3cefa79 | 84 | |
85 | %description devel | |
66a7f095 | 86 | Header files for git-core. |
87 | ||
ea061c99 JR |
88 | %description devel -l pl.UTF-8 |
89 | Pliki nagłówkowe dla git-core. | |
e3cefa79 | 90 | |
91396e2e AG |
91 | %package gitk |
92 | Summary: Tcl/Tk interface to the Git version control system | |
93 | Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git | |
94 | Group: Development/Tools | |
95 | Requires: %{name} = %{version}-%{release} | |
96 | Requires: tk | |
97 | ||
98 | %description gitk | |
99 | Displays changes in a repository or a selected set of commits. This | |
100 | includes visualizing the commit graph, showing information related to | |
101 | each commit, and the files in the trees of each revision. | |
102 | ||
103 | Historically, gitk was the first repository browser. It's written in | |
04fdf912 | 104 | Tcl/Tk and started off in a separate repository but was later merged |
91396e2e AG |
105 | into the main git repository. |
106 | ||
107 | %description gitk -l pl.UTF-8 | |
be2ccf99 AG |
108 | Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów. |
109 | Oznacza to wizualizację grafu commitów, wyświetlanie informacji | |
110 | związanych z każdym z commitów oraz listę plików dla każdej | |
111 | rewizji. | |
91396e2e | 112 | |
04fdf912 | 113 | Z punktu widzenia historii, gitk był pierwszą przeglądarką |
be2ccf99 AG |
114 | repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany |
115 | w osobnym repozytorium, ale z czasem został włączony do głównego | |
2712fe7b | 116 | repozytorium gita. |
91396e2e | 117 | |
be2ccf99 AG |
118 | %package gitweb |
119 | Summary: Web frontend to git | |
120 | Summary(pl.UTF-8): Webowy frontend do git | |
121 | Group: Development/Tools | |
122 | Requires: %{name} = %{version}-%{release} | |
123 | Requires: webapps | |
124 | ||
125 | %description gitweb | |
126 | This package provides a web interface for browsing git repositories. | |
127 | ||
128 | %description gitweb -l pl.UTF-8 | |
2712fe7b | 129 | Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita. |
be2ccf99 | 130 | |
f2c1983d AG |
131 | %package -n bash-completion-git |
132 | Summary: bash-completion for git | |
2712fe7b | 133 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita |
f2c1983d AG |
134 | Group: Applications/Shell |
135 | Requires: bash-completion | |
136 | ||
137 | %description -n bash-completion-git | |
138 | This package provides bash-completion for git. | |
139 | ||
140 | %description -n bash-completion-git -l pl.UTF-8 | |
2712fe7b | 141 | Pakiet ten dostarcza bashowego uzupełniania nazw dla gita. |
f2c1983d | 142 | |
3dc01deb | 143 | %package -n perl-Git |
5d7220ad | 144 | Summary: Perl interface to the Git version control system |
3f8032f4 | 145 | Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git |
5d7220ad AM |
146 | Group: Development/Languages/Perl |
147 | Requires: %{name} = %{version}-%{release} | |
27b79a12 | 148 | Obsoletes: perl-git-core |
5d7220ad | 149 | |
3dc01deb | 150 | %description -n perl-Git |
5d7220ad AM |
151 | This module provides Perl scripts easy way to interface the Git |
152 | version control system. The modules have an easy and well-tested way | |
153 | to call arbitrary Git commands; in the future, the interface will also | |
154 | provide specialized methods for doing easily operations which are not | |
155 | totally trivial to do over the generic command interface. | |
156 | ||
ea061c99 JR |
157 | %description -n perl-Git -l pl.UTF-8 |
158 | Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli | |
be2ccf99 AG |
159 | wersji Git. W łatwy i dobrze przetestowany sposób pozwala |
160 | wywoływać dowolne polecenia Gita; w przyszłości interfejs | |
161 | udostępni także specjalne metody do łatwego wykonywania operacji | |
162 | nietrywialnych do wykonania przy użyciu ogólnego interfejsu | |
163 | poleceń. | |
7eef96e1 | 164 | |
f2c1983d AG |
165 | %package -n vim-syntax-gitcommit |
166 | Summary: Vim syntax: gitcommit | |
2712fe7b | 167 | Summary(pl.UTF-8): Składnia dla Vima: gitcommit |
f2c1983d AG |
168 | Group: Applications/Editors/Vim |
169 | # for _vimdatadir existence | |
170 | Requires: vim >= 4:6.3.058-3 | |
171 | ||
172 | %description -n vim-syntax-gitcommit | |
173 | This plugin provides syntax highlighting for git's commit messages. | |
174 | ||
175 | %description -n vim-syntax-gitcommit -l pl.UTF-8 | |
2712fe7b | 176 | Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita. |
f2c1983d | 177 | |
51c3b977 | 178 | %prep |
bf83806a | 179 | %setup -q -n git-%{version} |
a1036d06 | 180 | |
181 | %build | |
11856720 AM |
182 | %{__aclocal} |
183 | %{__autoconf} | |
184 | %configure \ | |
185 | --with-openssl | |
51c3b977 | 186 | |
b69112f7 | 187 | %{__make} \ |
be2ccf99 AG |
188 | INSTALLDIRS=vendor \ |
189 | GITWEB_CONFIG="%{webappdir}/gitweb.conf" \ | |
190 | GITWEB_PROJECTROOT="/var/lib/git" \ | |
191 | GITWEB_CSS="/gitweb/gitweb.css" \ | |
192 | GITWEB_LOGO="/gitweb/git-logo.png" \ | |
193 | GITWEB_FAVICON="/gitweb/git-favicon.png" | |
27b79a12 | 194 | |
7fdeb28c | 195 | %{__make} -C Documentation |
196 | ||
6c0d6e05 AM |
197 | %{?with_tests:%{__make} test} |
198 | ||
51c3b977 | 199 | %install |
200 | rm -rf $RPM_BUILD_ROOT | |
be2ccf99 AG |
201 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_sharedstatedir}/git} |
202 | install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}} | |
f2c1983d AG |
203 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax |
204 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
c751087d | 205 | |
51c3b977 | 206 | %{__make} install \ |
d778c02c | 207 | INSTALLDIRS=vendor \ |
51c3b977 | 208 | DESTDIR=$RPM_BUILD_ROOT |
209 | ||
7fdeb28c | 210 | %{__make} -C Documentation install \ |
7fdeb28c | 211 | DESTDIR=$RPM_BUILD_ROOT |
212 | ||
1f25da6d | 213 | # header files and lib |
e3cefa79 | 214 | install *.h $RPM_BUILD_ROOT%{_includedir}/%{name} |
215 | install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff | |
1f25da6d | 216 | install libgit.a $RPM_BUILD_ROOT%{_libdir} |
e3cefa79 | 217 | |
f2c1983d AG |
218 | # bash completion |
219 | install contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
220 | ||
221 | # vim syntax | |
222 | install contrib/vim/syntax/gitcommit.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax | |
223 | ||
be2ccf99 AG |
224 | # gitweb |
225 | install gitweb/*.css gitweb/*.png $RPM_BUILD_ROOT%{appdir} | |
226 | install gitweb/gitweb.cgi $RPM_BUILD_ROOT%{cgibindir} | |
227 | install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf | |
228 | install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf | |
229 | install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf | |
230 | ||
231 | # remove unneeded files | |
27b79a12 ER |
232 | rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
233 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist | |
234 | ||
51c3b977 | 235 | %clean |
236 | rm -rf $RPM_BUILD_ROOT | |
237 | ||
be2ccf99 AG |
238 | %triggerin gitweb -- apache1 < 1.3.37-3, apache1-base |
239 | %webapp_register apache %{webapp} | |
240 | ||
241 | %triggerun gitweb -- apache1 < 1.3.37-3, apache1-base | |
242 | %webapp_unregister apache %{webapp} | |
243 | ||
244 | %triggerin gitweb -- apache < 2.2.0, apache-base | |
245 | %webapp_register httpd %{webapp} | |
246 | ||
247 | %triggerun gitweb -- apache < 2.2.0, apache-base | |
248 | %webapp_unregister httpd %{webapp} | |
249 | ||
51c3b977 | 250 | %files |
251 | %defattr(644,root,root,755) | |
f2c1983d | 252 | %doc README Documentation/{[!g]*,g[!i]*,git,git[!k]*}.html Documentation/howto Documentation/technical contrib |
0afd37aa JB |
253 | %attr(755,root,root) %{_bindir}/git |
254 | %attr(755,root,root) %{_bindir}/git-* | |
255 | %{_mandir}/man1/git-*.1* | |
256 | %{_mandir}/man5/gitattributes.5* | |
257 | %{_mandir}/man5/gitignore.5* | |
258 | %{_mandir}/man7/git.7* | |
6c4f9a5b AM |
259 | %{_datadir}/%{name} |
260 | %{_datadir}/git-gui | |
be2ccf99 | 261 | %{_sharedstatedir}/git |
e3cefa79 | 262 | |
263 | %files devel | |
3ff86e9e | 264 | %defattr(644,root,root,755) |
e3cefa79 | 265 | %{_includedir}/* |
1f25da6d | 266 | %{_libdir}/*.a |
5d7220ad | 267 | |
91396e2e AG |
268 | %files gitk |
269 | %defattr(644,root,root,755) | |
270 | %doc Documentation/gitk.html | |
271 | %attr(755,root,root) %{_bindir}/gitk | |
272 | %{_mandir}/man1/gitk.1* | |
273 | ||
be2ccf99 AG |
274 | %files gitweb |
275 | %defattr(644,root,root,755) | |
276 | %doc gitweb/{README,INSTALL} | |
277 | %dir %{webappdir} | |
278 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf | |
279 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf | |
280 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf | |
281 | %attr(755,root,root) %{cgibindir}/gitweb.cgi | |
282 | %{appdir} | |
283 | ||
f2c1983d AG |
284 | %files -n bash-completion-git |
285 | %defattr(644,root,root,755) | |
286 | %{_sysconfdir}/bash_completion.d/* | |
287 | ||
3dc01deb | 288 | %files -n perl-Git |
5d7220ad | 289 | %defattr(644,root,root,755) |
3dc01deb | 290 | %{perl_vendorlib}/Git.pm |
0afd37aa | 291 | %{_mandir}/man3/Git.3pm* |
f2c1983d AG |
292 | |
293 | %files -n vim-syntax-gitcommit | |
294 | %defattr(644,root,root,755) | |
295 | %doc contrib/vim/README | |
296 | %{_datadir}/vim/vimfiles/syntax/* |