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