]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - remove net_client_only and add db bcond (then without apache and | |
3 | # without db => net_client_only - spec will be more simpler, I think) | |
4 | # - finish ruby | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_with net_client_only # build only net client | |
8 | %bcond_without neon # use neon instead of serf | |
9 | %bcond_without python # build without python bindings (broken) | |
10 | %bcond_without perl # build without perl bindings | |
11 | %bcond_without ruby # build without ruby bindings | |
12 | %bcond_without apache # build without apache support (webdav, etc) | |
13 | %bcond_without javahl # build without javahl support (Java high-level bindings) | |
14 | %bcond_without tests # don't perform "make check" | |
15 | # | |
16 | %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
17 | %undefine with_javahl | |
18 | %endif | |
19 | # | |
20 | %{!?with_net_client_only:%include /usr/lib/rpm/macros.perl} | |
21 | %define apxs /usr/sbin/apxs | |
22 | %define pdir SVN | |
23 | %define pnam _Core | |
24 | # | |
25 | %if %{with neon} | |
26 | %define webdavlib neon | |
27 | %else | |
28 | %define webdavlib serf | |
29 | %endif | |
30 | # | |
31 | Summary: A Concurrent Versioning system similar to but better than CVS | |
32 | Summary(pl.UTF-8): System kontroli wersji podobny, ale lepszy, niż CVS | |
33 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
34 | Name: subversion | |
35 | Version: 1.5.2 | |
36 | Release: 4 | |
37 | License: Apache/BSD-like | |
38 | Group: Development/Version Control | |
39 | Source0: http://subversion.tigris.org/downloads/%{name}-%{version}.tar.bz2 | |
40 | # Source0-md5: 8321d0e1964846090f0174cb6bb18838 | |
41 | Source1: %{name}-dav_svn.conf | |
42 | Source2: %{name}-authz_svn.conf | |
43 | Source3: %{name}-svnserve.init | |
44 | Source4: %{name}-svnserve.sysconfig | |
45 | # current subversion tarball has correct *.swg files | |
46 | # but after regeneration these are broken again, so | |
47 | # we still need this script | |
48 | Source5: %{name}-convert-typemaps-to-ifdef.py | |
49 | Patch0: %{name}-home_etc.patch | |
50 | Patch1: %{name}-DESTDIR.patch | |
51 | Patch2: %{name}-ruby-datadir-path.patch | |
52 | Patch3: %{name}-tests.patch | |
53 | URL: http://subversion.tigris.org/ | |
54 | %if %{with net_client_only} | |
55 | %global apache_modules_api 0 | |
56 | %else | |
57 | %{?with_apache:BuildRequires: apache-devel >= 2.2.0-8} | |
58 | BuildRequires: automake | |
59 | BuildRequires: db-devel >= 4.1.25 | |
60 | BuildRequires: rpmbuild(macros) >= 1.268 | |
61 | %if %{with perl} | |
62 | BuildRequires: perl-devel >= 1:5.8.0 | |
63 | BuildRequires: rpm-perlprov >= 4.1-13 | |
64 | BuildRequires: swig-perl >= 1.3.24 | |
65 | %endif | |
66 | %{?with_javahl:BuildRequires: jdk} | |
67 | %endif | |
68 | BuildRequires: apr-devel >= 1:1.0.0 | |
69 | BuildRequires: apr-util-devel >= 1:1.2.8-3 | |
70 | BuildRequires: autoconf >= 2.59 | |
71 | BuildRequires: bison | |
72 | BuildRequires: cyrus-sasl-devel | |
73 | BuildRequires: expat-devel | |
74 | BuildRequires: gettext-devel | |
75 | BuildRequires: libtool >= 1.4-9 | |
76 | BuildRequires: sed >= 4.0 | |
77 | BuildRequires: texinfo | |
78 | BuildRequires: which | |
79 | %if %{with neon} | |
80 | BuildRequires: neon-devel >= 0.26.0 | |
81 | %else | |
82 | BuildRequires: serf-devel | |
83 | %endif | |
84 | BuildRequires: python >= 2.2 | |
85 | BuildRequires: python-modules >= 2.2 | |
86 | %if %{with python} | |
87 | BuildRequires: python-devel >= 2.2 | |
88 | BuildRequires: swig-python >= 1.3.24 | |
89 | %endif | |
90 | %if %{with ruby} | |
91 | BuildRequires: ruby-devel | |
92 | BuildRequires: swig-ruby >= 1.3.24 | |
93 | %endif | |
94 | Requires: %{name}-libs = %{version}-%{release} | |
95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
96 | ||
97 | %define _libexecdir %{_libdir}/svn | |
98 | %define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d | |
99 | %define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
100 | ||
101 | %description | |
102 | The goal of the Subversion project is to build a version control | |
103 | system that is a compelling replacement for CVS in the open source | |
104 | community. | |
105 | ||
106 | Our goals are: | |
107 | - All current CVS features. | |
108 | - Directories, renames, and file meta-data are versioned. | |
109 | - Symbolic links, etc, are supported | |
110 | - Commits are truly atomic. | |
111 | - Branching and tagging are cheap (constant time) operations | |
112 | - Repeated merges are handled gracefully | |
113 | - Support for plug-in client side diff programs | |
114 | - Natively client/server | |
115 | - Client/server protocol sends diffs in both directions | |
116 | - Costs are proportional to change size, not project size | |
117 | - Internationalization | |
118 | - Progressive multi-lingual support | |
119 | ||
120 | %description -l pl.UTF-8 | |
121 | Celem projektu Subversion jest stworzenie systemu kontroli wersji jako | |
122 | zamiennika dla CVS. | |
123 | ||
124 | Cele projektu to: | |
125 | - Wszystkie aktualne możliwości CVS. | |
126 | - Katalogi, zmiany nazw oraz metadane plików są wersjonowane. | |
127 | - Obsługa dowiązań symbolicznych itp. | |
128 | - Commity są w pełni atomowe. | |
129 | - Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami. | |
130 | - Dobra obsługa powtarzanego łączenia (merge). | |
131 | - Obsługa wtyczek diff po stronie klienta. | |
132 | - Natywny klient/serwer. | |
133 | - Klient/Serwer przesyłają diffy w obu kierunkach. | |
134 | - Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu. | |
135 | - Internacjonalizacja. | |
136 | - Postępujące wsparcie dla wielu języków. | |
137 | ||
138 | %description -l pt_BR.UTF-8 | |
139 | O objetivo do projeto Subversion é construir um sistema de controle de | |
140 | versões que seja um substituto para o CVS (Concurrent Versioning | |
141 | System) na comunidade opensource, fornecendo grandes melhorias. | |
142 | ||
143 | %package libs | |
144 | Summary: Subversion libraries and modules | |
145 | Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły | |
146 | Group: Libraries | |
147 | %{?with_neon:Requires: neon >= 0.26.0} | |
148 | Obsoletes: libsubversion0 | |
149 | ||
150 | %description libs | |
151 | Subversion libraries and modules. | |
152 | ||
153 | %description libs -l pl.UTF-8 | |
154 | Biblioteka subversion oraz ładowalne moduły. | |
155 | ||
156 | %package devel | |
157 | Summary: Header files and develpment documentation for subversion | |
158 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion | |
159 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion | |
160 | Group: Development/Libraries | |
161 | Requires: %{name}-libs = %{version}-%{release} | |
162 | Requires: apr-util-devel >= 1:1.0.0 | |
163 | %{?with_neon:Requires: neon-devel >= 0.26.0} | |
164 | Obsoletes: libsubversion0-devel | |
165 | ||
166 | %description devel | |
167 | Header files and develpment documentation for subversion. | |
168 | ||
169 | %description devel -l pl.UTF-8 | |
170 | Pliki nagłówkowe i dokumetacja do subversion. | |
171 | ||
172 | %description devel -l pt_BR.UTF-8 | |
173 | Este pacote provê os arquivos necessários para desenvolvedores | |
174 | interagirem com o Subversion. | |
175 | ||
176 | %package static | |
177 | Summary: Static subversion library | |
178 | Summary(pl.UTF-8): Biblioteka statyczna subversion | |
179 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
180 | Group: Development/Libraries | |
181 | Requires: %{name}-devel = %{version} | |
182 | Obsoletes: libsubversion0-static-devel | |
183 | ||
184 | %description static | |
185 | Static subversion library. | |
186 | ||
187 | %description static -l pl.UTF-8 | |
188 | Biblioteka statyczna subversion. | |
189 | ||
190 | %description static -l pt_BR.UTF-8 | |
191 | Este pacote provê um cliente estático do subversion. | |
192 | ||
193 | %package svnserve | |
194 | Summary: Subversion svnserve | |
195 | Summary(pl.UTF-8): Subversion svnserve | |
196 | Group: Networking/Daemons | |
197 | Requires(post,preun): /sbin/chkconfig | |
198 | Requires(postun): /usr/sbin/groupdel | |
199 | Requires(postun): /usr/sbin/userdel | |
200 | Requires(pre): /bin/id | |
201 | Requires(pre): /usr/bin/getgid | |
202 | Requires(pre): /usr/lib/rpm/user_group.sh | |
203 | Requires(pre): /usr/sbin/groupadd | |
204 | Requires(pre): /usr/sbin/useradd | |
205 | Requires(pre): /usr/sbin/usermod | |
206 | Requires: %{name} = %{version}-%{release} | |
207 | Requires: rc-scripts | |
208 | Provides: group(svn) | |
209 | Provides: user(svn) | |
210 | ||
211 | %description svnserve | |
212 | Subversion svnserve server. | |
213 | ||
214 | %description svnserve -l pl.UTF-8 | |
215 | Serwer subversion svnserve. | |
216 | ||
217 | %package tools | |
218 | Summary: Subversion tools and scripts | |
219 | Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion | |
220 | Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion | |
221 | Group: Applications | |
222 | %pyrequires_eq python | |
223 | Requires: %{name} = %{version}-%{release} | |
224 | Requires: python-rcsparse >= 0.1-0.20031026.0 | |
225 | Requires: python-subversion = %{version} | |
226 | ||
227 | %description tools | |
228 | Subversion tools and scripts. | |
229 | ||
230 | %description tools -l pl.UTF-8 | |
231 | Narzędzia oraz skrypty dla subversion. | |
232 | ||
233 | %package -n bash-completion-subversion | |
234 | Summary: bash completion for subversion | |
235 | Summary(pl.UTF-8): Dopełnienia basha dla subversion | |
236 | Group: Applications/Shells | |
237 | Requires: %{name} = %{version}-%{release} | |
238 | Requires: bash-completion | |
239 | Conflicts: %{name}-tools <= 1.1.0-0.rc6.1 | |
240 | ||
241 | %description -n bash-completion-subversion | |
242 | Bash completion for subversion. | |
243 | ||
244 | %description -n bash-completion-subversion -l pl.UTF-8 | |
245 | Dopełnienia basha dla subversion. | |
246 | ||
247 | %package -n java-subversion | |
248 | Summary: Subversion Java bindings | |
249 | Summary(pl.UTF-8): Dowiązania do Subversion dla Javy | |
250 | Group: Development/Languages/Java | |
251 | Requires: %{name}-libs = %{version}-%{release} | |
252 | ||
253 | %description -n java-subversion | |
254 | This is a set of Java classes which provide the functionality of | |
255 | subversion-libs, the Subversion libraries. It is useful if you want | |
256 | to, for example, write a Java class that manipulates a Subversion | |
257 | repository or working copy. See the 'subversion' package for more | |
258 | information. | |
259 | ||
260 | %description -n java-subversion -l pl.UTF-8 | |
261 | Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność | |
262 | subversion-libs, czyli bibliotek Subversion. Jest przydatny przy | |
263 | pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię | |
264 | roboczą. Więcej informacji w pakiecie subversion. | |
265 | ||
266 | %package -n python-subversion | |
267 | Summary: Subversion Python bindings | |
268 | Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona | |
269 | Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion | |
270 | Group: Development/Languages/Python | |
271 | %pyrequires_eq python | |
272 | Requires: %{name}-libs = %{version}-%{release} | |
273 | Obsoletes: subversion-python | |
274 | ||
275 | %description -n python-subversion | |
276 | Subversion Python bindings. | |
277 | ||
278 | %description -n python-subversion -l pl.UTF-8 | |
279 | Dowiązania do Subversion dla Pythona. | |
280 | ||
281 | %description -n python-subversion -l pt_BR.UTF-8 | |
282 | Módulos Python para acessar os recursos do Subversion. | |
283 | ||
284 | %package -n perl-subversion | |
285 | Summary: Subversion Perl bindings | |
286 | Summary(pl.UTF-8): Dowiązania do Subversion dla Perla | |
287 | Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do Subversion | |
288 | Group: Development/Languages/Perl | |
289 | Requires: %{name}-libs = %{version}-%{release} | |
290 | Obsoletes: subversion-perl | |
291 | ||
292 | %description -n perl-subversion | |
293 | Subversion Perl bindings. | |
294 | ||
295 | %description -n perl-subversion -l pl.UTF-8 | |
296 | Dowiązania do Subversion dla Perla. | |
297 | ||
298 | %description -n perl-subversion -l pt_BR.UTF-8 | |
299 | Módulos Perl para acessar os recursos do Subversion. | |
300 | ||
301 | %package -n ruby-subversion | |
302 | Summary: Subversion Ruby bindings | |
303 | Summary(pl.UTF-8): Dowiązania do Subversion dla języka Ruby | |
304 | Summary(pt_BR.UTF-8): Módulos Ruby para acessar os recursos do Subversion | |
305 | Group: Development/Languages | |
306 | Requires: %{name}-libs = %{version}-%{release} | |
307 | Obsoletes: subversion-ruby | |
308 | ||
309 | %description -n ruby-subversion | |
310 | Subversion Ruby bindings. | |
311 | ||
312 | %description -n ruby-subversion -l pl.UTF-8 | |
313 | Dowiązania do Subversion dla języka Ruby. | |
314 | ||
315 | %description -n ruby-subversion -l pt_BR.UTF-8 | |
316 | Módulos Ruby para acessar os recursos do Subversion. | |
317 | ||
318 | %package -n apache-mod_dav_svn | |
319 | Summary: Apache module: Subversion Server | |
320 | Summary(pl.UTF-8): Moduł apache: Serwer Subversion | |
321 | Group: Networking/Daemons | |
322 | Requires: %{name} = %{version}-%{release} | |
323 | Requires: apache(modules-api) = %apache_modules_api | |
324 | Requires: apache-mod_dav | |
325 | ||
326 | %description -n apache-mod_dav_svn | |
327 | Apache module: Subversion Server. | |
328 | ||
329 | %description -n apache-mod_dav_svn -l pl.UTF-8 | |
330 | Moduł apache: Serwer Subversion. | |
331 | ||
332 | %package -n apache-mod_authz_svn | |
333 | Summary: Apache module: Subversion Server - path-based authorization | |
334 | Summary(pl.UTF-8): Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion | |
335 | Group: Networking/Daemons | |
336 | Requires: apache(modules-api) = %apache_modules_api | |
337 | Requires: apache-mod_dav_svn = %{version}-%{release} | |
338 | ||
339 | %description -n apache-mod_authz_svn | |
340 | Apache module: Subversion Server - path-based authorization. | |
341 | ||
342 | %description -n apache-mod_authz_svn -l pl.UTF-8 | |
343 | Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion. | |
344 | ||
345 | %prep | |
346 | %setup -q | |
347 | rm -rf apr apr-util neon | |
348 | %patch0 -p0 | |
349 | %patch1 -p1 | |
350 | %patch2 -p0 | |
351 | %patch3 -p0 | |
352 | ||
353 | sed -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4 | |
354 | ||
355 | # serf.m4 macro is broken and ignores --without serf | |
356 | %{?with_neon:sed -i -e 's#serf_found="yes"#serf_found="no"#g' build/ac-macros/serf.m4} | |
357 | ||
358 | %build | |
359 | rm subversion/bindings/swig/proxy/*.swg | |
360 | cd subversion/bindings/swig && python "%{SOURCE5}" && cd ../../.. | |
361 | cp -f /usr/share/automake/config.sub ac-helpers | |
362 | chmod +x ./autogen.sh && ./autogen.sh | |
363 | ||
364 | %configure \ | |
365 | --with-editor=vi \ | |
366 | --with-zlib=%{_libdir} \ | |
367 | %if %{with net_client_only} | |
368 | --without-apache \ | |
369 | --without-swig \ | |
370 | --without-apxs \ | |
371 | --without-berkeley-db \ | |
372 | %else | |
373 | --disable-runtime-module-search \ | |
374 | --disable-mod-activation \ | |
375 | %if %{with apache} | |
376 | --with-apxs=%{_sbindir}/apxs \ | |
377 | %else | |
378 | --without-apache \ | |
379 | --without-apxs \ | |
380 | --with-berkeley-db=%{_includedir}/db4:%{_libdir} \ | |
381 | %endif | |
382 | %if !%{with python} && !%{with perl} && !%{with ruby} | |
383 | --without-swig \ | |
384 | %endif | |
385 | --%{?with_javahl:en}%{!?with_javahl:dis}able-javahl \ | |
386 | %endif | |
387 | --with-jdk="%{java_home}" \ | |
388 | %if %{with neon} | |
389 | --without-serf \ | |
390 | --with-neon=%{_prefix} \ | |
391 | --disable-neon-version-check \ | |
392 | %else | |
393 | --with-serf=%{_prefix} \ | |
394 | --without-neon \ | |
395 | %endif | |
396 | --with-apr=%{_bindir}/apr-1-config \ | |
397 | --with-apr-util=%{_bindir}/apu-1-config | |
398 | ||
399 | %{__make} -j1 | |
400 | ||
401 | %if !%{with net_client_only} | |
402 | # python | |
403 | %if %{with python} | |
404 | %{__make} swig-py \ | |
405 | swig_pydir=%{py_sitedir}/libsvn \ | |
406 | swig_pydir_extra=%{py_sitedir}/svn | |
407 | %endif | |
408 | # perl | |
409 | %if %{with perl} | |
410 | %{__make} swig-pl-lib | |
411 | odir=$(pwd) | |
412 | cd subversion/bindings/swig/perl/native | |
413 | %{__perl} Makefile.PL INSTALLDIRS=vendor | |
414 | %{__make} -j1 | |
415 | cd $odir | |
416 | %endif | |
417 | %if %{with javahl} | |
418 | %{__make} -j1 javahl \ | |
419 | javahl_javadir="%{_javadir}" | |
420 | %endif | |
421 | # ruby | |
422 | %if %{with ruby} | |
423 | %{__make} swig-rb | |
424 | %endif | |
425 | %endif | |
426 | ||
427 | %if %{with tests} | |
428 | %{__make} check | |
429 | %if %{with python} | |
430 | %{__make} check-swig-py | |
431 | %endif | |
432 | %if %{with perl} | |
433 | %{__make} check-swig-pl | |
434 | %endif | |
435 | %if %{with ruby} | |
436 | %{__make} check-swig-rb | |
437 | %endif | |
438 | %endif | |
439 | ||
440 | %install | |
441 | rm -rf $RPM_BUILD_ROOT | |
442 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \ | |
443 | $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \ | |
444 | $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \ | |
445 | $RPM_BUILD_ROOT/home/services/subversion{,/repos} | |
446 | ||
447 | %{__make} install -j1 \ | |
448 | %if %{with javahl} | |
449 | install-javahl \ | |
450 | javahl_javadir="%{_javadir}" \ | |
451 | %endif | |
452 | %if !%{with net_client_only} | |
453 | %if %{with python} | |
454 | install-swig-py \ | |
455 | %endif | |
456 | %if %{with ruby} | |
457 | install-swig-rb install-swig-rb-doc \ | |
458 | %endif | |
459 | %endif | |
460 | APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \ | |
461 | DESTDIR=$RPM_BUILD_ROOT \ | |
462 | swig_pydir=%{py_sitedir}/libsvn \ | |
463 | swig_pydir_extra=%{py_sitedir}/svn | |
464 | ||
465 | %if !%{with net_client_only} && %{with perl} | |
466 | %{__make} install-swig-pl-lib \ | |
467 | DESTDIR=$RPM_BUILD_ROOT | |
468 | %{__make} -C subversion/bindings/swig/perl/native install \ | |
469 | DESTDIR=$RPM_BUILD_ROOT \ | |
470 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ | |
471 | LIBDIR=$RPM_BUILD_ROOT%{_libdir} | |
472 | %endif | |
473 | ||
474 | %if %{with apache} | |
475 | install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf | |
476 | install %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf | |
477 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve | |
478 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve | |
479 | %endif | |
480 | ||
481 | %if !%{with net_client_only} | |
482 | install tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup | |
483 | %if %{with python} | |
484 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
485 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
486 | find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f | |
487 | install tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
488 | %endif | |
489 | %endif | |
490 | ||
491 | install tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name} | |
492 | install tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
493 | ||
494 | %find_lang %{name} | |
495 | ||
496 | rm -f $RPM_BUILD_ROOT%{_libdir}/libsvn{javahl,_swig}*.{la,a} | |
497 | rm -f $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/svn/ext/*.la | |
498 | ||
499 | %clean | |
500 | rm -rf $RPM_BUILD_ROOT | |
501 | ||
502 | %pre svnserve | |
503 | %groupadd -g 86 svn | |
504 | %useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn | |
505 | ||
506 | %post libs -p /sbin/ldconfig | |
507 | %postun libs -p /sbin/ldconfig | |
508 | ||
509 | %post devel -p /sbin/postshell | |
510 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
511 | ||
512 | %postun devel -p /sbin/postshell | |
513 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
514 | ||
515 | %post -n perl-subversion -p /sbin/ldconfig | |
516 | %postun -n perl-subversion -p /sbin/ldconfig | |
517 | ||
518 | %post -n python-subversion -p /sbin/ldconfig | |
519 | %postun -n python-subversion -p /sbin/ldconfig | |
520 | ||
521 | %post svnserve | |
522 | /sbin/chkconfig --add svnserve | |
523 | %service svnserve restart "svnserve daemon" | |
524 | ||
525 | %preun svnserve | |
526 | if [ "$1" = "0" ]; then | |
527 | %service svnserve stop | |
528 | /sbin/chkconfig --del svnserve | |
529 | fi | |
530 | ||
531 | %postun svnserve | |
532 | if [ "$1" = "0" ]; then | |
533 | %userremove svn | |
534 | %groupremove svn | |
535 | fi | |
536 | ||
537 | %post -n apache-mod_dav_svn | |
538 | %service -q httpd restart | |
539 | ||
540 | %preun -n apache-mod_dav_svn | |
541 | if [ "$1" = "0" ]; then | |
542 | %service -q httpd restart | |
543 | fi | |
544 | ||
545 | %files | |
546 | %defattr(644,root,root,755) | |
547 | %doc BUGS CHANGES COPYING INSTALL README | |
548 | %doc doc/*/*.html | |
549 | %doc tools/hook-scripts/*.{pl,py,example} | |
550 | %doc tools/hook-scripts/mailer/*.{py,example} | |
551 | %doc tools/xslt/* | |
552 | %attr(755,root,root) %{_bindir}/svn | |
553 | %attr(755,root,root) %{_bindir}/svnadmin | |
554 | %attr(755,root,root) %{_bindir}/svndumpfilter | |
555 | %attr(755,root,root) %{_bindir}/svnlook | |
556 | %attr(755,root,root) %{_bindir}/svnsync | |
557 | %attr(755,root,root) %{_bindir}/svnversion | |
558 | %{_mandir}/man1/svn.1* | |
559 | %{_mandir}/man1/svnadmin.1* | |
560 | %{_mandir}/man1/svndumpfilter.1* | |
561 | %{_mandir}/man1/svnlook.1* | |
562 | %{_mandir}/man1/svnsync.1* | |
563 | %{_mandir}/man1/svnversion.1* | |
564 | ||
565 | %files libs -f %{name}.lang | |
566 | %defattr(644,root,root,755) | |
567 | %attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.* | |
568 | %attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0 | |
569 | %attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.* | |
570 | %attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0 | |
571 | %attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.* | |
572 | %attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0 | |
573 | %attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.* | |
574 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0 | |
575 | %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.* | |
576 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0 | |
577 | %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.* | |
578 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0 | |
579 | %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.* | |
580 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0 | |
581 | %attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.* | |
582 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0 | |
583 | %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.* | |
584 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0 | |
585 | %attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so.*.*.* | |
586 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_%{webdavlib}-1.so.0 | |
587 | %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.* | |
588 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0 | |
589 | %attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.* | |
590 | %attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0 | |
591 | %attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.* | |
592 | %attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0 | |
593 | %attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.* | |
594 | %attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0 | |
595 | ||
596 | %files devel | |
597 | %defattr(644,root,root,755) | |
598 | %attr(755,root,root) %{_libdir}/libsvn_client-1.so | |
599 | %attr(755,root,root) %{_libdir}/libsvn_delta-1.so | |
600 | %attr(755,root,root) %{_libdir}/libsvn_diff-1.so | |
601 | %attr(755,root,root) %{_libdir}/libsvn_fs-1.so | |
602 | %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so | |
603 | %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so | |
604 | %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so | |
605 | %attr(755,root,root) %{_libdir}/libsvn_ra-1.so | |
606 | %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so | |
607 | %attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so | |
608 | %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so | |
609 | %attr(755,root,root) %{_libdir}/libsvn_repos-1.so | |
610 | %attr(755,root,root) %{_libdir}/libsvn_subr-1.so | |
611 | %attr(755,root,root) %{_libdir}/libsvn_wc-1.so | |
612 | %{_libdir}/libsvn_client-1.la | |
613 | %{_libdir}/libsvn_delta-1.la | |
614 | %{_libdir}/libsvn_diff-1.la | |
615 | %{_libdir}/libsvn_fs-1.la | |
616 | %{_libdir}/libsvn_fs_base-1.la | |
617 | %{_libdir}/libsvn_fs_fs-1.la | |
618 | %{_libdir}/libsvn_fs_util-1.la | |
619 | %{_libdir}/libsvn_ra-1.la | |
620 | %{_libdir}/libsvn_ra_local-1.la | |
621 | %{_libdir}/libsvn_ra_%{webdavlib}-1.la | |
622 | %{_libdir}/libsvn_ra_svn-1.la | |
623 | %{_libdir}/libsvn_repos-1.la | |
624 | %{_libdir}/libsvn_subr-1.la | |
625 | %{_libdir}/libsvn_wc-1.la | |
626 | %{_includedir}/%{name}-1 | |
627 | %{_examplesdir}/%{name}-%{version} | |
628 | ||
629 | %files static | |
630 | %defattr(644,root,root,755) | |
631 | %{_libdir}/libsvn_client-1.a | |
632 | %{_libdir}/libsvn_delta-1.a | |
633 | %{_libdir}/libsvn_diff-1.a | |
634 | %{_libdir}/libsvn_fs-1.a | |
635 | %{_libdir}/libsvn_fs_base-1.a | |
636 | %{_libdir}/libsvn_fs_fs-1.a | |
637 | %{_libdir}/libsvn_fs_util-1.a | |
638 | %{_libdir}/libsvn_ra-1.a | |
639 | %{_libdir}/libsvn_ra_local-1.a | |
640 | %{_libdir}/libsvn_ra_%{webdavlib}-1.a | |
641 | %{_libdir}/libsvn_ra_svn-1.a | |
642 | %{_libdir}/libsvn_repos-1.a | |
643 | %{_libdir}/libsvn_subr-1.a | |
644 | %{_libdir}/libsvn_wc-1.a | |
645 | ||
646 | %if !%{with net_client_only} | |
647 | %files svnserve | |
648 | %defattr(644,root,root,755) | |
649 | %attr(755,root,root) %{_bindir}/svnserve | |
650 | %{_mandir}/man5/svnserve.conf.5* | |
651 | %{_mandir}/man8/svnserve.8* | |
652 | %dir %attr(750,svn,svn) /home/services/subversion | |
653 | %dir %attr(750,svn,svn) /home/services/subversion/repos | |
654 | %if %{with apache} | |
655 | %attr(754,root,root) /etc/rc.d/init.d/svnserve | |
656 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve | |
657 | %endif | |
658 | ||
659 | %files tools | |
660 | %defattr(644,root,root,755) | |
661 | %attr(755,root,root) %{_bindir}/svn-hot-backup | |
662 | ||
663 | %files -n bash-completion-subversion | |
664 | %defattr(644,root,root,755) | |
665 | /etc/bash_completion.d/%{name} | |
666 | ||
667 | %if %{with javahl} | |
668 | %files -n java-subversion | |
669 | %defattr(644,root,root,755) | |
670 | %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.* | |
671 | %attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0 | |
672 | %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so | |
673 | %{_javadir}/svn-javahl.jar | |
674 | %endif | |
675 | ||
676 | %if %{with python} | |
677 | %files -n python-subversion | |
678 | %defattr(644,root,root,755) | |
679 | %doc tools/backup/*.py tools/examples/*.py | |
680 | %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.* | |
681 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0 | |
682 | %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so | |
683 | %dir %{py_sitedir}/libsvn | |
684 | %{py_sitedir}/libsvn/*.py[co] | |
685 | %dir %{py_sitedir}/svn | |
686 | %{py_sitedir}/svn/*.py[co] | |
687 | %attr(755,root,root) %{py_sitedir}/libsvn/*.so | |
688 | %{_examplesdir}/python-%{name}-%{version} | |
689 | %endif | |
690 | ||
691 | %if %{with perl} | |
692 | %files -n perl-subversion | |
693 | %defattr(644,root,root,755) | |
694 | %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.* | |
695 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0 | |
696 | %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so | |
697 | %{perl_vendorarch}/SVN | |
698 | %dir %{perl_vendorarch}/auto/SVN | |
699 | %dir %{perl_vendorarch}/auto/SVN/* | |
700 | %attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so | |
701 | %{perl_vendorarch}/auto/SVN/*/*.bs | |
702 | %{_mandir}/man3/*.3pm* | |
703 | %endif | |
704 | ||
705 | %if %{with ruby} | |
706 | %files -n ruby-subversion | |
707 | %defattr(644,root,root,755) | |
708 | %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.* | |
709 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0 | |
710 | %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so | |
711 | %dir %{_libdir}/ruby/site_ruby/svn | |
712 | %{_libdir}/ruby/site_ruby/svn/*.rb | |
713 | %dir %{_libdir}/ruby/site_ruby/svn/ext | |
714 | %attr(755,root,root) %{_libdir}/ruby/site_ruby/svn/ext/*.so | |
715 | %{_datadir}/ri/*.*/system/OptionParser | |
716 | %{_datadir}/ri/*.*/system/Svn | |
717 | %{_datadir}/ri/*.*/system/Time | |
718 | %{_datadir}/ri/*.*/system/Uconv | |
719 | %{_datadir}/ri/*.*/system/*.rid | |
720 | %{_datadir}/ri/*.*/system/Kernel/* | |
721 | %endif | |
722 | ||
723 | %if %{with apache} | |
724 | %files -n apache-mod_dav_svn | |
725 | %defattr(644,root,root,755) | |
726 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf | |
727 | %attr(755,root,root) %{apachelibdir}/mod_dav_svn.so | |
728 | ||
729 | %files -n apache-mod_authz_svn | |
730 | %defattr(644,root,root,755) | |
731 | %doc subversion/mod_authz_svn/INSTALL | |
732 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf | |
733 | %attr(755,root,root) %{apachelibdir}/mod_authz_svn.so | |
734 | %endif | |
735 | ||
736 | %endif # net_client_only |