]>
Commit | Line | Data |
---|---|---|
1f630180 | 1 | # TODO: |
9688ba4c | 2 | # - http://subversion.tigris.org/issues/show_bug.cgi?id=2753 |
1930bef0 | 3 | # |
bab73684 | 4 | # Conditional build: |
65c1d4bd | 5 | %bcond_with net_client_only # build only net client |
3fc01170 | 6 | %bcond_without neon # use serf instead of neon |
298f7114 | 7 | %bcond_without swig # disable bindings generation with Swig |
5b21aa20 ER |
8 | %bcond_without python # build without Python bindings (broken) |
9 | %bcond_without csvn # build Python csvn bindings | |
10 | %bcond_without perl # build without Perl bindings | |
11 | %bcond_without ruby # build without Ruby bindings | |
298f7114 | 12 | %bcond_without apache # build without Apache support (webdav, etc) |
65c1d4bd JB |
13 | %bcond_without javahl # build without javahl support (Java high-level bindings) |
14 | %bcond_without tests # don't perform "make check" | |
65f2befa | 15 | %bcond_without kwallet # build without kde4 wallet support |
5b21aa20 | 16 | %bcond_without kde # build without kde4 support (alias for kwallet) |
bfb248d0 | 17 | %bcond_without gnome # build without gnome keyring support |
298f7114 | 18 | %bcond_without db # disable Subversion Berkeley DB based filesystem library |
12c96b58 | 19 | |
298f7114 ER |
20 | %if %{with net_client_only} |
21 | %undefine with_apache | |
22 | %undefine with_db | |
23 | %undefine with_swig | |
24 | %undefine with_javahl | |
25 | %endif | |
26 | ||
27 | %if %{without swig} | |
28 | %undefine with_perl | |
29 | %undefine with_python | |
30 | %undefine with_ruby | |
31 | %endif | |
12c96b58 | 32 | |
d9d66e02 | 33 | %if %{without kde} |
3c200272 JB |
34 | %undefine with_kwallet |
35 | %endif | |
298f7114 ER |
36 | |
37 | %if %{without python} && %{without perl} && %{without ruby} | |
38 | %define without_swig 1 | |
39 | %endif | |
40 | ||
41 | %define apxs /usr/sbin/apxs | |
42 | %define pdir SVN | |
43 | %define pnam _Core | |
44 | ||
04129f48 | 45 | %if %{with neon} |
a510fada | 46 | %define webdavlib neon |
04129f48 AG |
47 | %else |
48 | %define webdavlib serf | |
a510fada | 49 | %endif |
0421a1ed | 50 | %{?with_perl:%include /usr/lib/rpm/macros.perl} |
67cb9518 | 51 | Summary: A Concurrent Versioning system similar to but better than CVS |
abe3c421 ER |
52 | Summary(pl.UTF-8): System kontroli wersji podobny, ale lepszy, niż CVS |
53 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
93b78127 | 54 | Name: subversion |
5c59669a | 55 | Version: 1.6.16 |
84e0d0fb | 56 | Release: 1 |
6f88d80e | 57 | License: Apache/BSD-like |
93b78127 | 58 | Group: Development/Version Control |
a5c00029 | 59 | Source0: http://subversion.tigris.org/downloads/%{name}-%{version}.tar.bz2 |
5c59669a | 60 | # Source0-md5: 32f25a6724559fe8691d1f57a63f636e |
93b78127 | 61 | Source1: %{name}-dav_svn.conf |
65318afa | 62 | Source2: %{name}-authz_svn.conf |
b56474ff AM |
63 | Source3: %{name}-svnserve.init |
64 | Source4: %{name}-svnserve.sysconfig | |
a510fada AM |
65 | # current subversion tarball has correct *.swg files |
66 | # but after regeneration these are broken again, so | |
67 | # we still need this script | |
f313e9a9 | 68 | Source5: %{name}-convert-typemaps-to-ifdef.py |
ed6210a2 | 69 | Patch0: %{name}-home_etc.patch |
d46e45ba | 70 | Patch1: %{name}-DESTDIR.patch |
00664663 | 71 | Patch2: %{name}-ruby-datadir-path.patch |
1cfe7af2 | 72 | Patch3: %{name}-tests.patch |
dc8fcc41 | 73 | URL: http://subversion.apache.org/ |
f2a757d6 | 74 | %{?with_apache:BuildRequires: apache-devel >= 2.2.0-8} |
1cfe7af2 | 75 | BuildRequires: autoconf |
7b27380f | 76 | BuildRequires: automake |
3817faf5 | 77 | BuildRequires: db-devel >= 4.1.25 |
1cfe7af2 | 78 | BuildRequires: libtool |
58f4b627 | 79 | BuildRequires: rpmbuild(macros) >= 1.583 |
0905b458 | 80 | %if %{with perl} |
522a69b4 | 81 | BuildRequires: perl-devel >= 1:5.8.0 |
82 | BuildRequires: rpm-perlprov >= 4.1-13 | |
15f9818d | 83 | BuildRequires: swig-perl >= 1.3.24 |
536b3fd3 | 84 | %endif |
5b21aa20 | 85 | %if %{with csvn} |
6ac3574b | 86 | BuildRequires: python-ctypesgen |
5b21aa20 ER |
87 | %endif |
88 | %if %{with python} | |
89 | BuildRequires: python-devel >= 1:2.4 | |
6ac3574b AM |
90 | BuildRequires: swig-python >= 1.3.24 |
91 | %endif | |
92 | %if %{with ruby} | |
93 | BuildRequires: ruby-devel | |
5f328a6e | 94 | BuildRequires: ruby-rubygems |
6ac3574b AM |
95 | BuildRequires: swig-ruby >= 1.3.24 |
96 | %endif | |
af0d490b | 97 | %if %{with javahl} |
20c5f543 | 98 | BuildRequires: jdk |
dfeb8a3c | 99 | BuildRequires: libstdc++-devel |
af0d490b | 100 | %endif |
16429189 | 101 | BuildRequires: apr-devel >= 1:1.0.0 |
a6ecf312 | 102 | BuildRequires: apr-util-devel >= 1:1.2.8-3 |
b0a7a5b2 | 103 | BuildRequires: autoconf >= 2.59 |
79d8c53c | 104 | BuildRequires: bison |
dfeb8a3c | 105 | BuildRequires: cyrus-sasl-devel |
93b78127 | 106 | BuildRequires: expat-devel |
86ea8fde | 107 | BuildRequires: gettext-devel |
65f2befa | 108 | %{?with_kwallet:BuildRequires: kde4-kdelibs-devel} |
5f328a6e | 109 | %{?with_gnome:BuildRequires: libgnome-keyring-devel} |
f4e6a380 | 110 | BuildRequires: libtool >= 1.4-9 |
54271075 | 111 | BuildRequires: pkgconfig |
c01720ea | 112 | BuildRequires: rpm-pythonprov |
a562165a | 113 | BuildRequires: sed >= 4.0 |
c26d84c4 | 114 | BuildRequires: sqlite3-devel >= 3.6.11 |
a562165a JB |
115 | BuildRequires: texinfo |
116 | BuildRequires: which | |
117 | %if %{with neon} | |
bd3c99a8 | 118 | BuildRequires: neon-devel >= 0.26.0 |
a562165a JB |
119 | %else |
120 | BuildRequires: serf-devel | |
e3ad24ea | 121 | %endif |
027f8ebe | 122 | Requires: %{name}-libs = %{version}-%{release} |
8b023a9d | 123 | %requires_ge sqlite3 |
93b78127 AM |
124 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
125 | ||
f4070f5f | 126 | %define _libexecdir %{_libdir}/svn |
1af5e34d ER |
127 | %define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
128 | %define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
93b78127 | 129 | |
58f4b627 JR |
130 | %define skip_post_check_so libsvn_swig_py-1.so.* libsvn_swig_perl-1.so.* |
131 | ||
93b78127 AM |
132 | %description |
133 | The goal of the Subversion project is to build a version control | |
134 | system that is a compelling replacement for CVS in the open source | |
135 | community. | |
136 | ||
137 | Our goals are: | |
138 | - All current CVS features. | |
139 | - Directories, renames, and file meta-data are versioned. | |
140 | - Symbolic links, etc, are supported | |
141 | - Commits are truly atomic. | |
142 | - Branching and tagging are cheap (constant time) operations | |
143 | - Repeated merges are handled gracefully | |
144 | - Support for plug-in client side diff programs | |
145 | - Natively client/server | |
146 | - Client/server protocol sends diffs in both directions | |
147 | - Costs are proportional to change size, not project size | |
148 | - Internationalization | |
149 | - Progressive multi-lingual support | |
150 | ||
aa59005f | 151 | %description -l pl.UTF-8 |
93b78127 AM |
152 | Celem projektu Subversion jest stworzenie systemu kontroli wersji jako |
153 | zamiennika dla CVS. | |
154 | ||
155 | Cele projektu to: | |
aa59005f | 156 | - Wszystkie aktualne możliwości CVS. |
24406120 JB |
157 | - Katalogi, zmiany nazw oraz metadane plików są wersjonowane. |
158 | - Obsługa dowiązań symbolicznych itp. | |
aa59005f JR |
159 | - Commity są w pełni atomowe. |
160 | - Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami. | |
24406120 JB |
161 | - Dobra obsługa powtarzanego łączenia (merge). |
162 | - Obsługa wtyczek diff po stronie klienta. | |
93b78127 | 163 | - Natywny klient/serwer. |
aa59005f | 164 | - Klient/Serwer przesyłają diffy w obu kierunkach. |
93b78127 AM |
165 | - Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu. |
166 | - Internacjonalizacja. | |
aa59005f | 167 | - Postępujące wsparcie dla wielu języków. |
93b78127 | 168 | |
aa59005f JR |
169 | %description -l pt_BR.UTF-8 |
170 | O objetivo do projeto Subversion é construir um sistema de controle de | |
171 | versões que seja um substituto para o CVS (Concurrent Versioning | |
92066deb | 172 | System) na comunidade opensource, fornecendo grandes melhorias. |
173 | ||
f4e6a380 AM |
174 | %package libs |
175 | Summary: Subversion libraries and modules | |
abe3c421 | 176 | Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły |
f4e6a380 | 177 | Group: Libraries |
04129f48 | 178 | %{?with_neon:Requires: neon >= 0.26.0} |
53855fbf | 179 | Obsoletes: libsubversion0 |
f4e6a380 AM |
180 | |
181 | %description libs | |
182 | Subversion libraries and modules. | |
183 | ||
aa59005f JR |
184 | %description libs -l pl.UTF-8 |
185 | Biblioteka subversion oraz ładowalne moduły. | |
f4e6a380 | 186 | |
93b78127 AM |
187 | %package devel |
188 | Summary: Header files and develpment documentation for subversion | |
abe3c421 ER |
189 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion |
190 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion | |
93b78127 | 191 | Group: Development/Libraries |
9cb7e099 | 192 | Requires: %{name}-libs = %{version}-%{release} |
c5b1d686 | 193 | Requires: apr-util-devel >= 1:1.0.0 |
04129f48 | 194 | %{?with_neon:Requires: neon-devel >= 0.26.0} |
12cf252c | 195 | Obsoletes: libsubversion0-devel |
93b78127 AM |
196 | |
197 | %description devel | |
198 | Header files and develpment documentation for subversion. | |
199 | ||
aa59005f JR |
200 | %description devel -l pl.UTF-8 |
201 | Pliki nagłówkowe i dokumetacja do subversion. | |
93b78127 | 202 | |
aa59005f JR |
203 | %description devel -l pt_BR.UTF-8 |
204 | Este pacote provê os arquivos necessários para desenvolvedores | |
92066deb | 205 | interagirem com o Subversion. |
206 | ||
93b78127 AM |
207 | %package static |
208 | Summary: Static subversion library | |
abe3c421 ER |
209 | Summary(pl.UTF-8): Biblioteka statyczna subversion |
210 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
93b78127 AM |
211 | Group: Development/Libraries |
212 | Requires: %{name}-devel = %{version} | |
12cf252c | 213 | Obsoletes: libsubversion0-static-devel |
93b78127 AM |
214 | |
215 | %description static | |
216 | Static subversion library. | |
217 | ||
aa59005f | 218 | %description static -l pl.UTF-8 |
93b78127 AM |
219 | Biblioteka statyczna subversion. |
220 | ||
aa59005f JR |
221 | %description static -l pt_BR.UTF-8 |
222 | Este pacote provê um cliente estático do subversion. | |
92066deb | 223 | |
b56474ff AM |
224 | %package svnserve |
225 | Summary: Subversion svnserve | |
abe3c421 | 226 | Summary(pl.UTF-8): Subversion svnserve |
b56474ff | 227 | Group: Networking/Daemons |
3817faf5 | 228 | Requires(post,preun): /sbin/chkconfig |
93f1d402 | 229 | Requires(postun): /usr/sbin/groupdel |
230 | Requires(postun): /usr/sbin/userdel | |
231 | Requires(pre): /bin/id | |
232 | Requires(pre): /usr/bin/getgid | |
233 | Requires(pre): /usr/lib/rpm/user_group.sh | |
234 | Requires(pre): /usr/sbin/groupadd | |
235 | Requires(pre): /usr/sbin/useradd | |
236 | Requires(pre): /usr/sbin/usermod | |
9cb7e099 | 237 | Requires: %{name} = %{version}-%{release} |
7b27380f | 238 | Requires: rc-scripts |
a1bac09d MŁ |
239 | Provides: group(svn) |
240 | Provides: user(svn) | |
b56474ff AM |
241 | |
242 | %description svnserve | |
243 | Subversion svnserve server. | |
244 | ||
aa59005f | 245 | %description svnserve -l pl.UTF-8 |
b56474ff AM |
246 | Serwer subversion svnserve. |
247 | ||
4bbdbbf8 AM |
248 | %package tools |
249 | Summary: Subversion tools and scripts | |
abe3c421 ER |
250 | Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion |
251 | Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion | |
4bbdbbf8 | 252 | Group: Applications |
4bbdbbf8 | 253 | %pyrequires_eq python |
7b27380f | 254 | Requires: %{name} = %{version}-%{release} |
4bbdbbf8 AM |
255 | Requires: python-subversion = %{version} |
256 | ||
257 | %description tools | |
258 | Subversion tools and scripts. | |
259 | ||
aa59005f JR |
260 | %description tools -l pl.UTF-8 |
261 | Narzędzia oraz skrypty dla subversion. | |
4bbdbbf8 | 262 | |
fe5bb6bb | 263 | %package -n bash-completion-subversion |
264 | Summary: bash completion for subversion | |
abe3c421 | 265 | Summary(pl.UTF-8): Dopełnienia basha dla subversion |
fe5bb6bb | 266 | Group: Applications/Shells |
e30588c4 | 267 | Requires: %{name} = %{version}-%{release} |
53855fbf | 268 | Requires: bash-completion |
e30588c4 | 269 | Conflicts: %{name}-tools <= 1.1.0-0.rc6.1 |
fe5bb6bb | 270 | |
271 | %description -n bash-completion-subversion | |
272 | Bash completion for subversion. | |
273 | ||
aa59005f JR |
274 | %description -n bash-completion-subversion -l pl.UTF-8 |
275 | Dopełnienia basha dla subversion. | |
fe5bb6bb | 276 | |
1cc7453a | 277 | %package -n java-subversion |
65c1d4bd JB |
278 | Summary: Subversion Java bindings |
279 | Summary(pl.UTF-8): Dowiązania do Subversion dla Javy | |
1cc7453a | 280 | Group: Development/Languages/Java |
281 | Requires: %{name}-libs = %{version}-%{release} | |
282 | ||
283 | %description -n java-subversion | |
284 | This is a set of Java classes which provide the functionality of | |
285 | subversion-libs, the Subversion libraries. It is useful if you want | |
286 | to, for example, write a Java class that manipulates a Subversion | |
287 | repository or working copy. See the 'subversion' package for more | |
288 | information. | |
289 | ||
65c1d4bd JB |
290 | %description -n java-subversion -l pl.UTF-8 |
291 | Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność | |
292 | subversion-libs, czyli bibliotek Subversion. Jest przydatny przy | |
d46e45ba AM |
293 | pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię |
294 | roboczą. Więcej informacji w pakiecie subversion. | |
65c1d4bd | 295 | |
fa3ff1b2 | 296 | %package -n python-subversion |
65c1d4bd JB |
297 | Summary: Subversion Python bindings |
298 | Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona | |
299 | Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion | |
f4e6a380 | 300 | Group: Development/Languages/Python |
f4e6a380 | 301 | %pyrequires_eq python |
9cb7e099 | 302 | Requires: %{name}-libs = %{version}-%{release} |
53855fbf | 303 | Obsoletes: subversion-python |
f4e6a380 | 304 | |
fa3ff1b2 | 305 | %description -n python-subversion |
65c1d4bd | 306 | Subversion Python bindings. |
f4e6a380 | 307 | |
aa59005f | 308 | %description -n python-subversion -l pl.UTF-8 |
65c1d4bd | 309 | Dowiązania do Subversion dla Pythona. |
f4e6a380 | 310 | |
aa59005f | 311 | %description -n python-subversion -l pt_BR.UTF-8 |
65c1d4bd | 312 | Módulos Python para acessar os recursos do Subversion. |
92066deb | 313 | |
137fcafd AM |
314 | %package -n python-csvn |
315 | Summary: CTypes Subversion Python bindings | |
316 | Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona | |
317 | Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion | |
318 | Group: Development/Languages/Python | |
319 | %pyrequires_eq python | |
320 | Requires: %{name}-libs = %{version}-%{release} | |
321 | ||
322 | %description -n python-csvn | |
323 | Subversion CTypes Python bindings. | |
324 | ||
325 | %description -n python-csvn -l pl.UTF-8 | |
326 | Dowiązania do Subversion dla Pythona używające CTypes. | |
327 | ||
328 | %description -n python-csvn -l pt_BR.UTF-8 | |
329 | Módulos Python para acessar os recursos do Subversion. | |
330 | ||
b56474ff | 331 | %package -n perl-subversion |
65c1d4bd JB |
332 | Summary: Subversion Perl bindings |
333 | Summary(pl.UTF-8): Dowiązania do Subversion dla Perla | |
334 | Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do Subversion | |
b56474ff | 335 | Group: Development/Languages/Perl |
9cb7e099 | 336 | Requires: %{name}-libs = %{version}-%{release} |
53855fbf | 337 | Obsoletes: subversion-perl |
b56474ff AM |
338 | |
339 | %description -n perl-subversion | |
65c1d4bd | 340 | Subversion Perl bindings. |
b56474ff | 341 | |
aa59005f | 342 | %description -n perl-subversion -l pl.UTF-8 |
65c1d4bd | 343 | Dowiązania do Subversion dla Perla. |
b56474ff | 344 | |
aa59005f | 345 | %description -n perl-subversion -l pt_BR.UTF-8 |
65c1d4bd | 346 | Módulos Perl para acessar os recursos do Subversion. |
b56474ff | 347 | |
d46e45ba AM |
348 | %package -n ruby-subversion |
349 | Summary: Subversion Ruby bindings | |
d2bf70bf | 350 | Summary(pl.UTF-8): Dowiązania do Subversion dla języka Ruby |
d46e45ba AM |
351 | Summary(pt_BR.UTF-8): Módulos Ruby para acessar os recursos do Subversion |
352 | Group: Development/Languages | |
353 | Requires: %{name}-libs = %{version}-%{release} | |
354 | Obsoletes: subversion-ruby | |
355 | ||
356 | %description -n ruby-subversion | |
357 | Subversion Ruby bindings. | |
358 | ||
359 | %description -n ruby-subversion -l pl.UTF-8 | |
d2bf70bf | 360 | Dowiązania do Subversion dla języka Ruby. |
d46e45ba AM |
361 | |
362 | %description -n ruby-subversion -l pt_BR.UTF-8 | |
363 | Módulos Ruby para acessar os recursos do Subversion. | |
364 | ||
93b78127 AM |
365 | %package -n apache-mod_dav_svn |
366 | Summary: Apache module: Subversion Server | |
abe3c421 | 367 | Summary(pl.UTF-8): Moduł apache: Serwer Subversion |
93b78127 | 368 | Group: Networking/Daemons |
7b27380f | 369 | Requires: %{name} = %{version}-%{release} |
53855fbf | 370 | Requires: apache(modules-api) = %apache_modules_api |
7887b1ac | 371 | Requires: apache-mod_dav |
93b78127 AM |
372 | |
373 | %description -n apache-mod_dav_svn | |
374 | Apache module: Subversion Server. | |
375 | ||
aa59005f JR |
376 | %description -n apache-mod_dav_svn -l pl.UTF-8 |
377 | Moduł apache: Serwer Subversion. | |
93b78127 | 378 | |
65318afa AF |
379 | %package -n apache-mod_authz_svn |
380 | Summary: Apache module: Subversion Server - path-based authorization | |
abe3c421 | 381 | Summary(pl.UTF-8): Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion |
65318afa | 382 | Group: Networking/Daemons |
53855fbf | 383 | Requires: apache(modules-api) = %apache_modules_api |
9cb7e099 | 384 | Requires: apache-mod_dav_svn = %{version}-%{release} |
65318afa AF |
385 | |
386 | %description -n apache-mod_authz_svn | |
387 | Apache module: Subversion Server - path-based authorization. | |
388 | ||
aa59005f JR |
389 | %description -n apache-mod_authz_svn -l pl.UTF-8 |
390 | Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion. | |
e23909be | 391 | |
1429fa1c | 392 | %package -n gnome-keyring-subversion |
fe242fac JB |
393 | Summary: GNOME Keyring authentication provider for Subversion |
394 | Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Subversion | |
1429fa1c AM |
395 | Group: X11/Applications |
396 | ||
397 | %description -n gnome-keyring-subversion | |
fe242fac JB |
398 | Authentication provider module for Subversion which allows SVN client |
399 | to authenticate using GNOME Keyring. | |
1429fa1c AM |
400 | |
401 | %description -n gnome-keyring-subversion -l pl.UTF-8 | |
fe242fac JB |
402 | Moduł uwierzytelniający dla Subversion pozwalający klientom SVN |
403 | uwierzytelniać się przy użyciu mechanizmu GNOME Keyring. | |
1429fa1c AM |
404 | |
405 | %package -n kde4-kwallet-subversion | |
fe242fac JB |
406 | Summary: KDE Wallet authentication provider for Subversion |
407 | Summary(pl.UTF-8): Moduł uwierzytelniający dla Subversion wykorzystujący Portfel KDE | |
1429fa1c AM |
408 | Group: X11/Applications |
409 | ||
410 | %description -n kde4-kwallet-subversion | |
fe242fac JB |
411 | Authentication provider module for Subversion which allows SVN client |
412 | to authenticate using KDE Wallet. | |
1429fa1c AM |
413 | |
414 | %description -n kde4-kwallet-subversion -l pl.UTF-8 | |
fe242fac JB |
415 | Moduł uwierzytelniający dla Subversion pozwalający klientom SVN |
416 | uwierzytelniać się przy użyciu Portfela KDE. | |
1429fa1c | 417 | |
93b78127 | 418 | %prep |
a5c00029 | 419 | %setup -q |
ed6210a2 | 420 | %patch0 -p0 |
d4bccc60 | 421 | %patch1 -p1 |
00664663 | 422 | %patch2 -p0 |
1cfe7af2 | 423 | %patch3 -p1 |
a510fada AM |
424 | |
425 | sed -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4 | |
426 | ||
427 | # serf.m4 macro is broken and ignores --without serf | |
244bdb04 | 428 | %{?with_neon:sed -i -e 's#serf_found="yes"#serf_found="no"#g' build/ac-macros/serf.m4} |
027f8ebe | 429 | |
93b78127 | 430 | %build |
1cfe7af2 JB |
431 | # disabled regeneration - subversion 1.6.13 is not ready for swig 2.0.x |
432 | #%{__rm} subversion/bindings/swig/proxy/*.swg | |
433 | #cd subversion/bindings/swig && python "%{SOURCE5}" && cd ../../.. | |
67cb9518 | 434 | chmod +x ./autogen.sh && ./autogen.sh |
1cfe7af2 | 435 | %{__libtoolize} |
93b78127 | 436 | %configure \ |
5dfeafd7 | 437 | --with-editor=vi \ |
12ae68c1 | 438 | --with-zlib=%{_libdir} \ |
fa6fa2cf | 439 | --disable-runtime-module-search \ |
86ee97d3 | 440 | --disable-mod-activation \ |
298f7114 | 441 | %if %{with db} |
ad5c551e | 442 | --with-berkeley-db="db.h:%{_includedir}:%{_libdir}:db" \ |
298f7114 ER |
443 | %else |
444 | --without-berkeley-db \ | |
445 | %endif | |
0905b458 | 446 | %if %{with apache} |
536b3fd3 | 447 | --with-apxs=%{_sbindir}/apxs \ |
0905b458 | 448 | %else |
0905b458 | 449 | --without-apxs \ |
0905b458 | 450 | %endif |
298f7114 | 451 | %if %{without swig} |
0905b458 | 452 | --without-swig \ |
5c072a77 ER |
453 | %endif |
454 | %if %{without ruby} | |
455 | ac_cv_path_RUBY=none \ | |
0905b458 | 456 | %endif |
a26edfbd ER |
457 | %if %{with csvn} |
458 | --with-ctypesgen=%{_bindir}/ctypesgen.py \ | |
459 | %endif | |
460 | %if %{with javahl} | |
461 | --enable-javahl \ | |
1cc7453a | 462 | --with-jdk="%{java_home}" \ |
cf2589d0 | 463 | --without-jikes \ |
a26edfbd ER |
464 | %else |
465 | --disable-javahl \ | |
466 | %endif | |
04129f48 | 467 | %if %{with neon} |
e3ad24ea | 468 | --without-serf \ |
e30588c4 | 469 | --with-neon=%{_prefix} \ |
78f330c4 | 470 | --disable-neon-version-check \ |
04129f48 AG |
471 | %else |
472 | --with-serf=%{_prefix} \ | |
473 | --without-neon \ | |
e3ad24ea | 474 | %endif |
16429189 | 475 | --with-apr=%{_bindir}/apr-1-config \ |
1429fa1c | 476 | --with-apr-util=%{_bindir}/apu-1-config \ |
65f2befa | 477 | %if %{with kwallet} |
1429fa1c | 478 | --with-kwallet \ |
65f2befa | 479 | %endif |
bfb248d0 | 480 | %if %{with gnome} |
1429fa1c | 481 | --with-gnome-keyring |
bfb248d0 | 482 | %endif |
536b3fd3 | 483 | |
1f630180 | 484 | %{__make} -j1 |
536b3fd3 | 485 | |
5b21aa20 | 486 | %if %{with csvn} |
a26edfbd | 487 | # Python ctypes bindings |
137fcafd | 488 | %{__make} ctypes-python |
5b21aa20 | 489 | %endif |
a26edfbd ER |
490 | %if %{with python} |
491 | # Python swig bindings | |
86a4919e | 492 | %{__make} swig-py \ |
65318afa AF |
493 | swig_pydir=%{py_sitedir}/libsvn \ |
494 | swig_pydir_extra=%{py_sitedir}/svn | |
0905b458 | 495 | %endif |
0905b458 | 496 | %if %{with perl} |
a26edfbd | 497 | # Perl swig bindings |
390bb8f4 | 498 | %{__make} -j1 swig-pl-lib |
bf539998 AM |
499 | cd subversion/bindings/swig/perl/native |
500 | %{__perl} Makefile.PL INSTALLDIRS=vendor | |
b445847c | 501 | %{__make} -j1 |
a26edfbd | 502 | cd - |
536b3fd3 | 503 | %endif |
1cc7453a | 504 | %if %{with javahl} |
b445847c | 505 | %{__make} -j1 javahl \ |
1cc7453a | 506 | javahl_javadir="%{_javadir}" |
507 | %endif | |
d46e45ba AM |
508 | # ruby |
509 | %if %{with ruby} | |
510 | %{__make} swig-rb | |
511 | %endif | |
12ae68c1 AM |
512 | |
513 | %if %{with tests} | |
514 | %{__make} check | |
5b21aa20 | 515 | %if %{with csvn} |
137fcafd | 516 | %{__make} check-ctypes-python |
5b21aa20 | 517 | %endif |
a26edfbd | 518 | %if %{with python} |
d46e45ba AM |
519 | %{__make} check-swig-py |
520 | %endif | |
521 | %if %{with perl} | |
522 | %{__make} check-swig-pl | |
523 | %endif | |
524 | %if %{with ruby} | |
6e3aae2d ER |
525 | # disabled, see https://bugs.launchpad.net/pld-linux/+bug/734340 |
526 | #%{__make} check-swig-rb | |
d46e45ba | 527 | %endif |
0905b458 | 528 | %endif |
93b78127 AM |
529 | |
530 | %install | |
531 | rm -rf $RPM_BUILD_ROOT | |
1326bb99 | 532 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \ |
1af5e34d | 533 | $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \ |
afb35189 | 534 | $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \ |
d9d66e02 | 535 | $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \ |
a54611db | 536 | $RPM_BUILD_ROOT/home/services/subversion{,/repos} |
93b78127 | 537 | |
1f630180 | 538 | %{__make} install -j1 \ |
a26edfbd ER |
539 | DESTDIR=$RPM_BUILD_ROOT \ |
540 | APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \ | |
1cc7453a | 541 | %if %{with javahl} |
542 | install-javahl \ | |
543 | javahl_javadir="%{_javadir}" \ | |
544 | %endif | |
d46e45ba | 545 | %if %{with python} |
0905b458 | 546 | install-swig-py \ |
a26edfbd ER |
547 | swig_pydir=%{py_sitedir}/libsvn \ |
548 | swig_pydir_extra=%{py_sitedir}/svn | |
549 | %endif | |
5b21aa20 | 550 | %if %{with csvn} |
137fcafd | 551 | install-ctypes-python \ |
d46e45ba | 552 | %endif |
49f25a64 | 553 | |
d46e45ba | 554 | %if %{with ruby} |
49f25a64 ER |
555 | %{__make} install -j1 \ |
556 | DESTDIR=$RPM_BUILD_ROOT \ | |
d46e45ba | 557 | install-swig-rb install-swig-rb-doc \ |
49f25a64 ER |
558 | |
559 | # not our package | |
560 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Kernel | |
561 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/OptionParser | |
562 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Time | |
563 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Uconv | |
564 | %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri | |
565 | %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid | |
0905b458 | 566 | %endif |
93b78127 | 567 | |
298f7114 | 568 | %if %{with perl} |
bf539998 AM |
569 | %{__make} install-swig-pl-lib \ |
570 | DESTDIR=$RPM_BUILD_ROOT | |
b445847c | 571 | %{__make} -C subversion/bindings/swig/perl/native install \ |
bf539998 AM |
572 | DESTDIR=$RPM_BUILD_ROOT \ |
573 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ | |
574 | LIBDIR=$RPM_BUILD_ROOT%{_libdir} | |
bf539998 AM |
575 | %endif |
576 | ||
0905b458 | 577 | %if %{with apache} |
d9d66e02 ER |
578 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf |
579 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf | |
580 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve | |
581 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve | |
0905b458 | 582 | %endif |
93b78127 | 583 | |
d9d66e02 ER |
584 | %if %{without net_client_only} |
585 | install -p tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup | |
298f7114 | 586 | %endif |
e834894b | 587 | %if %{with python} || %{with csvn} |
f4e6a380 AM |
588 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
589 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
3c200272 | 590 | %py_postclean |
e834894b ER |
591 | %endif |
592 | %if %{with python} | |
3c200272 | 593 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la |
f37da0a1 ER |
594 | # .a created on ac only |
595 | %{__rm} -f $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.a | |
596 | cp -p tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
536b3fd3 | 597 | %endif |
f4e6a380 | 598 | |
d9d66e02 ER |
599 | cp -p tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name} |
600 | cp -p tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
1326bb99 | 601 | |
a26edfbd ER |
602 | %if %{with javahl} |
603 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a} | |
604 | %endif | |
298f7114 | 605 | %if %{with swig} |
fe242fac | 606 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a} |
5c072a77 | 607 | %if %{with ruby} |
fe242fac | 608 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*/svn/ext/*.la |
5f328a6e | 609 | %endif |
5c072a77 | 610 | %endif |
fe242fac JB |
611 | %if %{with gnome} || %{with kwallet} |
612 | # dlopened by soname (libsvn_auth_*-1.so.0) | |
613 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la,a} | |
614 | %endif | |
205a3ddc | 615 | |
fe242fac | 616 | %find_lang %{name} |
a6ecf312 | 617 | |
e23909be JB |
618 | %clean |
619 | rm -rf $RPM_BUILD_ROOT | |
620 | ||
a1bac09d MŁ |
621 | %pre svnserve |
622 | %groupadd -g 86 svn | |
623 | %useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn | |
624 | ||
d2bf70bf JB |
625 | %post libs -p /sbin/ldconfig |
626 | %postun libs -p /sbin/ldconfig | |
627 | ||
628 | %post devel -p /sbin/postshell | |
6f99c3bd | 629 | -/usr/sbin/fix-info-dir -c %{_infodir} |
93b78127 | 630 | |
d2bf70bf | 631 | %postun devel -p /sbin/postshell |
6f99c3bd | 632 | -/usr/sbin/fix-info-dir -c %{_infodir} |
93b78127 | 633 | |
12c96b58 ER |
634 | %post -n java-subversion -p /sbin/ldconfig |
635 | %postun -n java-subversion -p /sbin/ldconfig | |
636 | ||
d2bf70bf JB |
637 | %post -n perl-subversion -p /sbin/ldconfig |
638 | %postun -n perl-subversion -p /sbin/ldconfig | |
639 | ||
640 | %post -n python-subversion -p /sbin/ldconfig | |
641 | %postun -n python-subversion -p /sbin/ldconfig | |
f4e6a380 | 642 | |
12c96b58 ER |
643 | %post -n ruby-subversion -p /sbin/ldconfig |
644 | %postun -n ruby-subversion -p /sbin/ldconfig | |
645 | ||
646 | %post -n gnome-keyring-subversion -p /sbin/ldconfig | |
647 | %postun -n gnome-keyring-subversion -p /sbin/ldconfig | |
648 | ||
649 | %post -n kde4-kwallet-subversion -p /sbin/ldconfig | |
650 | %postun -n kde4-kwallet-subversion -p /sbin/ldconfig | |
651 | ||
b56474ff | 652 | %post svnserve |
e8d9186f ER |
653 | /sbin/chkconfig --add svnserve |
654 | %service svnserve restart "svnserve daemon" | |
655 | ||
b56474ff AM |
656 | %preun svnserve |
657 | if [ "$1" = "0" ]; then | |
e8d9186f ER |
658 | %service svnserve stop |
659 | /sbin/chkconfig --del svnserve | |
b56474ff AM |
660 | fi |
661 | ||
a1bac09d MŁ |
662 | %postun svnserve |
663 | if [ "$1" = "0" ]; then | |
12c96b58 ER |
664 | %userremove svn |
665 | %groupremove svn | |
a1bac09d MŁ |
666 | fi |
667 | ||
93b78127 | 668 | %post -n apache-mod_dav_svn |
e8d9186f | 669 | %service -q httpd restart |
93b78127 | 670 | |
ba425c92 | 671 | %postun -n apache-mod_dav_svn |
93b78127 | 672 | if [ "$1" = "0" ]; then |
e8d9186f | 673 | %service -q httpd restart |
93b78127 AM |
674 | fi |
675 | ||
9688ba4c JR |
676 | %post -n apache-mod_authz_svn |
677 | %service -q httpd restart | |
678 | ||
ba425c92 | 679 | %postun -n apache-mod_authz_svn |
9688ba4c JR |
680 | if [ "$1" = "0" ]; then |
681 | %service -q httpd restart | |
682 | fi | |
683 | ||
93b78127 AM |
684 | %files |
685 | %defattr(644,root,root,755) | |
983a49f6 | 686 | %doc BUGS CHANGES COPYING INSTALL README |
d37298dc | 687 | %doc doc/*/*.html |
4bbdbbf8 AM |
688 | %doc tools/hook-scripts/*.{pl,py,example} |
689 | %doc tools/hook-scripts/mailer/*.{py,example} | |
1326bb99 | 690 | %doc tools/xslt/* |
b445847c JB |
691 | %attr(755,root,root) %{_bindir}/svn |
692 | %attr(755,root,root) %{_bindir}/svnadmin | |
693 | %attr(755,root,root) %{_bindir}/svndumpfilter | |
694 | %attr(755,root,root) %{_bindir}/svnlook | |
695 | %attr(755,root,root) %{_bindir}/svnsync | |
696 | %attr(755,root,root) %{_bindir}/svnversion | |
697 | %{_mandir}/man1/svn.1* | |
698 | %{_mandir}/man1/svnadmin.1* | |
699 | %{_mandir}/man1/svndumpfilter.1* | |
700 | %{_mandir}/man1/svnlook.1* | |
701 | %{_mandir}/man1/svnsync.1* | |
702 | %{_mandir}/man1/svnversion.1* | |
f4e6a380 | 703 | |
205a3ddc | 704 | %files libs -f %{name}.lang |
f4e6a380 | 705 | %defattr(644,root,root,755) |
d9d66e02 | 706 | %dir %{_sysconfdir}/%{name} |
b445847c JB |
707 | %attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.* |
708 | %attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0 | |
709 | %attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.* | |
710 | %attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0 | |
711 | %attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.* | |
712 | %attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0 | |
713 | %attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.* | |
714 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0 | |
5f328a6e | 715 | %if %{without net_client_only} |
b445847c JB |
716 | %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.* |
717 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0 | |
5f328a6e | 718 | %endif |
b445847c JB |
719 | %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.* |
720 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0 | |
721 | %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.* | |
722 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0 | |
723 | %attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.* | |
724 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0 | |
725 | %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.* | |
726 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0 | |
a510fada AM |
727 | %attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so.*.*.* |
728 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_%{webdavlib}-1.so.0 | |
b445847c JB |
729 | %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.* |
730 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0 | |
731 | %attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.* | |
732 | %attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0 | |
733 | %attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.* | |
734 | %attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0 | |
735 | %attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.* | |
736 | %attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0 | |
93b78127 AM |
737 | |
738 | %files devel | |
739 | %defattr(644,root,root,755) | |
b445847c JB |
740 | %attr(755,root,root) %{_libdir}/libsvn_client-1.so |
741 | %attr(755,root,root) %{_libdir}/libsvn_delta-1.so | |
742 | %attr(755,root,root) %{_libdir}/libsvn_diff-1.so | |
743 | %attr(755,root,root) %{_libdir}/libsvn_fs-1.so | |
5f328a6e | 744 | %if %{without net_client_only} |
b445847c | 745 | %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so |
5f328a6e | 746 | %endif |
b445847c JB |
747 | %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so |
748 | %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so | |
749 | %attr(755,root,root) %{_libdir}/libsvn_ra-1.so | |
750 | %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so | |
a510fada | 751 | %attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so |
b445847c JB |
752 | %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so |
753 | %attr(755,root,root) %{_libdir}/libsvn_repos-1.so | |
754 | %attr(755,root,root) %{_libdir}/libsvn_subr-1.so | |
755 | %attr(755,root,root) %{_libdir}/libsvn_wc-1.so | |
756 | %{_libdir}/libsvn_client-1.la | |
757 | %{_libdir}/libsvn_delta-1.la | |
758 | %{_libdir}/libsvn_diff-1.la | |
759 | %{_libdir}/libsvn_fs-1.la | |
5f328a6e | 760 | %if %{without net_client_only} |
b445847c | 761 | %{_libdir}/libsvn_fs_base-1.la |
5f328a6e | 762 | %endif |
b445847c JB |
763 | %{_libdir}/libsvn_fs_fs-1.la |
764 | %{_libdir}/libsvn_fs_util-1.la | |
765 | %{_libdir}/libsvn_ra-1.la | |
766 | %{_libdir}/libsvn_ra_local-1.la | |
a510fada | 767 | %{_libdir}/libsvn_ra_%{webdavlib}-1.la |
b445847c JB |
768 | %{_libdir}/libsvn_ra_svn-1.la |
769 | %{_libdir}/libsvn_repos-1.la | |
770 | %{_libdir}/libsvn_subr-1.la | |
771 | %{_libdir}/libsvn_wc-1.la | |
772 | %{_includedir}/%{name}-1 | |
1326bb99 | 773 | %{_examplesdir}/%{name}-%{version} |
93b78127 AM |
774 | |
775 | %files static | |
776 | %defattr(644,root,root,755) | |
b445847c JB |
777 | %{_libdir}/libsvn_client-1.a |
778 | %{_libdir}/libsvn_delta-1.a | |
779 | %{_libdir}/libsvn_diff-1.a | |
780 | %{_libdir}/libsvn_fs-1.a | |
5f328a6e | 781 | %if %{without net_client_only} |
b445847c | 782 | %{_libdir}/libsvn_fs_base-1.a |
5f328a6e | 783 | %endif |
b445847c JB |
784 | %{_libdir}/libsvn_fs_fs-1.a |
785 | %{_libdir}/libsvn_fs_util-1.a | |
786 | %{_libdir}/libsvn_ra-1.a | |
787 | %{_libdir}/libsvn_ra_local-1.a | |
a510fada | 788 | %{_libdir}/libsvn_ra_%{webdavlib}-1.a |
b445847c JB |
789 | %{_libdir}/libsvn_ra_svn-1.a |
790 | %{_libdir}/libsvn_repos-1.a | |
791 | %{_libdir}/libsvn_subr-1.a | |
792 | %{_libdir}/libsvn_wc-1.a | |
93b78127 | 793 | |
bfb248d0 | 794 | %if %{with gnome} |
1429fa1c AM |
795 | %files -n gnome-keyring-subversion |
796 | %defattr(644,root,root,755) | |
797 | %attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.* | |
798 | %attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0 | |
bfb248d0 | 799 | %endif |
1429fa1c | 800 | |
65f2befa | 801 | %if %{with kwallet} |
1429fa1c AM |
802 | %files -n kde4-kwallet-subversion |
803 | %defattr(644,root,root,755) | |
804 | %attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.* | |
805 | %attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0 | |
65f2befa | 806 | %endif |
1429fa1c | 807 | |
12c96b58 | 808 | %if %{without net_client_only} |
b56474ff AM |
809 | %files svnserve |
810 | %defattr(644,root,root,755) | |
811 | %attr(755,root,root) %{_bindir}/svnserve | |
b445847c JB |
812 | %{_mandir}/man5/svnserve.conf.5* |
813 | %{_mandir}/man8/svnserve.8* | |
a1bac09d MŁ |
814 | %dir %attr(750,svn,svn) /home/services/subversion |
815 | %dir %attr(750,svn,svn) /home/services/subversion/repos | |
0905b458 | 816 | %if %{with apache} |
b56474ff | 817 | %attr(754,root,root) /etc/rc.d/init.d/svnserve |
86ea8fde | 818 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve |
0905b458 | 819 | %endif |
b56474ff | 820 | |
4bbdbbf8 AM |
821 | %files tools |
822 | %defattr(644,root,root,755) | |
1326bb99 | 823 | %attr(755,root,root) %{_bindir}/svn-hot-backup |
fe5bb6bb | 824 | |
825 | %files -n bash-completion-subversion | |
101e74de | 826 | %defattr(644,root,root,755) |
1326bb99 | 827 | /etc/bash_completion.d/%{name} |
536b3fd3 | 828 | |
f37da0a1 ER |
829 | %endif # net_client_only |
830 | ||
1cc7453a | 831 | %if %{with javahl} |
832 | %files -n java-subversion | |
833 | %defattr(644,root,root,755) | |
b445847c JB |
834 | %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.* |
835 | %attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0 | |
836 | %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so | |
1cc7453a | 837 | %{_javadir}/svn-javahl.jar |
838 | %endif | |
839 | ||
0905b458 | 840 | %if %{with python} |
fa3ff1b2 | 841 | %files -n python-subversion |
f4e6a380 | 842 | %defattr(644,root,root,755) |
693a6ddf | 843 | %doc tools/backup/*.py |
b445847c JB |
844 | %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.* |
845 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0 | |
846 | %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so | |
65318afa | 847 | %dir %{py_sitedir}/libsvn |
3c200272 | 848 | %attr(755,root,root) %{py_sitedir}/libsvn/_*.so |
65318afa | 849 | %{py_sitedir}/libsvn/*.py[co] |
b445847c JB |
850 | %dir %{py_sitedir}/svn |
851 | %{py_sitedir}/svn/*.py[co] | |
1326bb99 | 852 | %{_examplesdir}/python-%{name}-%{version} |
a26edfbd | 853 | %endif |
137fcafd | 854 | |
5b21aa20 | 855 | %if %{with csvn} |
137fcafd AM |
856 | %files -n python-csvn |
857 | %defattr(644,root,root,755) | |
858 | %doc subversion/bindings/ctypes-python/{README,TODO} | |
859 | %doc subversion/bindings/ctypes-python/examples/*.py | |
860 | %dir %{py_sitescriptdir}/csvn | |
861 | %{py_sitescriptdir}/csvn/*.py[co] | |
862 | %dir %{py_sitescriptdir}/csvn/core | |
863 | %{py_sitescriptdir}/csvn/core/*.py[co] | |
864 | %dir %{py_sitescriptdir}/csvn/ext | |
865 | %{py_sitescriptdir}/csvn/ext/*.py[co] | |
3c200272 | 866 | %{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info |
0905b458 | 867 | %endif |
f4e6a380 | 868 | |
0905b458 | 869 | %if %{with perl} |
b56474ff AM |
870 | %files -n perl-subversion |
871 | %defattr(644,root,root,755) | |
b445847c JB |
872 | %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.* |
873 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0 | |
874 | %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so | |
b56474ff AM |
875 | %{perl_vendorarch}/SVN |
876 | %dir %{perl_vendorarch}/auto/SVN | |
877 | %dir %{perl_vendorarch}/auto/SVN/* | |
878 | %attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so | |
879 | %{perl_vendorarch}/auto/SVN/*/*.bs | |
880 | %{_mandir}/man3/*.3pm* | |
0905b458 | 881 | %endif |
b56474ff | 882 | |
d46e45ba AM |
883 | %if %{with ruby} |
884 | %files -n ruby-subversion | |
885 | %defattr(644,root,root,755) | |
b445847c JB |
886 | %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.* |
887 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0 | |
888 | %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so | |
916011ef JR |
889 | %dir %{ruby_sitelibdir}/svn |
890 | %{ruby_sitelibdir}/svn/*.rb | |
891 | %dir %{ruby_sitearchdir}/svn | |
892 | %dir %{ruby_sitearchdir}/svn/ext | |
e2c6dc67 | 893 | %attr(755,root,root) %{ruby_sitearchdir}/svn/ext/*.so |
916011ef | 894 | %{ruby_ridir}/Svn |
d46e45ba AM |
895 | %endif |
896 | ||
0905b458 | 897 | %if %{with apache} |
93b78127 AM |
898 | %files -n apache-mod_dav_svn |
899 | %defattr(644,root,root,755) | |
1af5e34d ER |
900 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf |
901 | %attr(755,root,root) %{apachelibdir}/mod_dav_svn.so | |
65318afa AF |
902 | |
903 | %files -n apache-mod_authz_svn | |
904 | %defattr(644,root,root,755) | |
905 | %doc subversion/mod_authz_svn/INSTALL | |
1af5e34d ER |
906 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf |
907 | %attr(755,root,root) %{apachelibdir}/mod_authz_svn.so | |
536b3fd3 | 908 | %endif |