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