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