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