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