]> git.pld-linux.org Git - packages/subversion.git/blame - subversion.spec
up to 1.14.2 (fixes CVE-2021-28544 CVE-2022-24070)
[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
a0c21d09
JP
53Version: 1.14.2
54Release: 1
8df86594 55License: Apache v2.0
93b78127 56Group: Development/Version Control
8942083b 57Source0: http://www.apache.org/dist/subversion/%{name}-%{version}.tar.bz2
a0c21d09 58# Source0-md5: 9927b167d1c67d663ca63125907f6f69
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
4bbdbbf8
AM
269
270%description tools
271Subversion tools and scripts.
272
aa59005f
JR
273%description tools -l pl.UTF-8
274Narzędzia oraz skrypty dla subversion.
4bbdbbf8 275
fe5bb6bb 276%package -n bash-completion-subversion
277Summary: bash completion for subversion
abe3c421 278Summary(pl.UTF-8): Dopełnienia basha dla subversion
fe5bb6bb 279Group: Applications/Shells
e30588c4 280Requires: %{name} = %{version}-%{release}
53855fbf 281Requires: bash-completion
e30588c4 282Conflicts: %{name}-tools <= 1.1.0-0.rc6.1
90db6d36 283BuildArch: noarch
fe5bb6bb 284
285%description -n bash-completion-subversion
286Bash completion for subversion.
287
aa59005f
JR
288%description -n bash-completion-subversion -l pl.UTF-8
289Dopełnienia basha dla subversion.
fe5bb6bb 290
1cc7453a 291%package -n java-subversion
65c1d4bd
JB
292Summary: Subversion Java bindings
293Summary(pl.UTF-8): Dowiązania do Subversion dla Javy
1cc7453a 294Group: Development/Languages/Java
295Requires: %{name}-libs = %{version}-%{release}
296
297%description -n java-subversion
298This is a set of Java classes which provide the functionality of
299subversion-libs, the Subversion libraries. It is useful if you want
300to, for example, write a Java class that manipulates a Subversion
301repository or working copy. See the 'subversion' package for more
302information.
303
65c1d4bd
JB
304%description -n java-subversion -l pl.UTF-8
305Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność
306subversion-libs, czyli bibliotek Subversion. Jest przydatny przy
d46e45ba
AM
307pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię
308roboczą. Więcej informacji w pakiecie subversion.
65c1d4bd 309
fa3ff1b2 310%package -n python-subversion
65c1d4bd
JB
311Summary: Subversion Python bindings
312Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona
313Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion
f4e6a380 314Group: Development/Languages/Python
9cb7e099 315Requires: %{name}-libs = %{version}-%{release}
4975bf39 316Requires: python
53855fbf 317Obsoletes: subversion-python
f4e6a380 318
fa3ff1b2 319%description -n python-subversion
65c1d4bd 320Subversion Python bindings.
f4e6a380 321
aa59005f 322%description -n python-subversion -l pl.UTF-8
65c1d4bd 323Dowiązania do Subversion dla Pythona.
f4e6a380 324
aa59005f 325%description -n python-subversion -l pt_BR.UTF-8
65c1d4bd 326Módulos Python para acessar os recursos do Subversion.
92066deb 327
137fcafd
AM
328%package -n python-csvn
329Summary: CTypes Subversion Python bindings
330Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona
331Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion
332Group: Development/Languages/Python
137fcafd 333Requires: %{name}-libs = %{version}-%{release}
4975bf39 334Requires: python
137fcafd
AM
335
336%description -n python-csvn
337Subversion CTypes Python bindings.
338
339%description -n python-csvn -l pl.UTF-8
340Dowiązania do Subversion dla Pythona używające CTypes.
341
342%description -n python-csvn -l pt_BR.UTF-8
343Módulos Python para acessar os recursos do Subversion.
344
b56474ff 345%package -n perl-subversion
65c1d4bd
JB
346Summary: Subversion Perl bindings
347Summary(pl.UTF-8): Dowiązania do Subversion dla Perla
348Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do Subversion
b56474ff 349Group: Development/Languages/Perl
9cb7e099 350Requires: %{name}-libs = %{version}-%{release}
53855fbf 351Obsoletes: subversion-perl
b56474ff
AM
352
353%description -n perl-subversion
65c1d4bd 354Subversion Perl bindings.
b56474ff 355
aa59005f 356%description -n perl-subversion -l pl.UTF-8
65c1d4bd 357Dowiązania do Subversion dla Perla.
b56474ff 358
aa59005f 359%description -n perl-subversion -l pt_BR.UTF-8
65c1d4bd 360Módulos Perl para acessar os recursos do Subversion.
b56474ff 361
d46e45ba
AM
362%package -n ruby-subversion
363Summary: Subversion Ruby bindings
d2bf70bf 364Summary(pl.UTF-8): Dowiązania do Subversion dla języka Ruby
d46e45ba
AM
365Summary(pt_BR.UTF-8): Módulos Ruby para acessar os recursos do Subversion
366Group: Development/Languages
367Requires: %{name}-libs = %{version}-%{release}
368Obsoletes: subversion-ruby
369
370%description -n ruby-subversion
371Subversion Ruby bindings.
372
373%description -n ruby-subversion -l pl.UTF-8
d2bf70bf 374Dowiązania do Subversion dla języka Ruby.
d46e45ba
AM
375
376%description -n ruby-subversion -l pt_BR.UTF-8
377Módulos Ruby para acessar os recursos do Subversion.
378
93b78127
AM
379%package -n apache-mod_dav_svn
380Summary: Apache module: Subversion Server
ba084299 381Summary(pl.UTF-8): Moduł Apache'a: serwer Subversion
93b78127 382Group: Networking/Daemons
7b27380f 383Requires: %{name} = %{version}-%{release}
53855fbf 384Requires: apache(modules-api) = %apache_modules_api
7887b1ac 385Requires: apache-mod_dav
93b78127
AM
386
387%description -n apache-mod_dav_svn
388Apache module: Subversion Server.
389
aa59005f 390%description -n apache-mod_dav_svn -l pl.UTF-8
ba084299 391Moduł Apache'a: serwer Subversion.
93b78127 392
65318afa
AF
393%package -n apache-mod_authz_svn
394Summary: Apache module: Subversion Server - path-based authorization
ba084299 395Summary(pl.UTF-8): Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera Subversion
65318afa 396Group: Networking/Daemons
38c0314f 397Requires: %{name}-libs = %{version}-%{release}
53855fbf 398Requires: apache(modules-api) = %apache_modules_api
9cb7e099 399Requires: apache-mod_dav_svn = %{version}-%{release}
65318afa
AF
400
401%description -n apache-mod_authz_svn
402Apache module: Subversion Server - path-based authorization.
403
aa59005f 404%description -n apache-mod_authz_svn -l pl.UTF-8
ba084299
JB
405Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera
406Subversion.
e23909be 407
53bea8b1
AM
408%package -n apache-mod_dontdothat_svn
409Summary: Apache module: Allows you to block specific svn requests
ba084299 410Summary(pl.UTF-8): Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn
53bea8b1
AM
411Group: Networking/Daemons
412Requires: %{name}-libs = %{version}-%{release}
413Requires: apache(modules-api) = %apache_modules_api
414Requires: apache-mod_dav_svn = %{version}-%{release}
415
416%description -n apache-mod_dontdothat_svn
417Apache module: Allows you to block specific svn requests.
418
419%description -n apache-mod_dontdothat_svn -l pl.UTF-8
ba084299 420Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn.
53bea8b1 421
1429fa1c 422%package -n gnome-keyring-subversion
fe242fac
JB
423Summary: GNOME Keyring authentication provider for Subversion
424Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Subversion
1429fa1c 425Group: X11/Applications
38c0314f 426Requires: %{name}-libs = %{version}-%{release}
1429fa1c
AM
427
428%description -n gnome-keyring-subversion
fe242fac
JB
429Authentication provider module for Subversion which allows SVN client
430to authenticate using GNOME Keyring.
1429fa1c
AM
431
432%description -n gnome-keyring-subversion -l pl.UTF-8
fe242fac
JB
433Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
434uwierzytelniać się przy użyciu mechanizmu GNOME Keyring.
1429fa1c 435
99500116 436%package -n kde5-kwallet-subversion
fe242fac
JB
437Summary: KDE Wallet authentication provider for Subversion
438Summary(pl.UTF-8): Moduł uwierzytelniający dla Subversion wykorzystujący Portfel KDE
1429fa1c 439Group: X11/Applications
38c0314f 440Requires: %{name}-libs = %{version}-%{release}
1429fa1c 441
99500116 442%description -n kde5-kwallet-subversion
fe242fac
JB
443Authentication provider module for Subversion which allows SVN client
444to authenticate using KDE Wallet.
1429fa1c 445
99500116 446%description -n kde5-kwallet-subversion -l pl.UTF-8
fe242fac
JB
447Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
448uwierzytelniać się przy użyciu Portfela KDE.
1429fa1c 449
93b78127 450%prep
0c6e93f6 451%setup -q
ed6210a2 452%patch0 -p0
d4bccc60 453%patch1 -p1
00664663 454%patch2 -p0
1cfe7af2 455%patch3 -p1
7923efca 456%patch4 -p1
1aac8b6c 457%patch5 -p1
a510fada
AM
458
459sed -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4
460
b1c8f82b 461sed -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
462 tools/backup/hot-backup.py.in \
463 tools/examples/blame.py \
464 tools/examples/check-modified.py \
465 tools/examples/dumpprops.py \
466 tools/examples/get-location-segments.py \
467 tools/examples/getfile.py \
468 tools/examples/geturl.py \
469 tools/examples/putfile.py \
470 tools/examples/revplist.py \
471 tools/examples/svnlook.py \
472 tools/examples/svnshell.py \
473 tools/examples/walk-config-auth.py
b1c8f82b 474
93b78127 475%build
1cfe7af2
JB
476# disabled regeneration - subversion 1.6.13 is not ready for swig 2.0.x
477#%{__rm} subversion/bindings/swig/proxy/*.swg
478#cd subversion/bindings/swig && python "%{SOURCE5}" && cd ../../..
67cb9518 479chmod +x ./autogen.sh && ./autogen.sh
1aac8b6c 480#{__libtoolize}
93b78127 481%configure \
1aac8b6c
JB
482 --disable-mod-activation \
483 --disable-runtime-module-search \
484 --with-apr=%{_bindir}/apr-1-config \
485 --with-apr-util=%{_bindir}/apu-1-config \
5dfeafd7 486 --with-editor=vi \
1aac8b6c 487 --with-serf=%{_prefix} \
12ae68c1 488 --with-zlib=%{_libdir} \
1aac8b6c
JB
489%if %{with apache}
490 --with-apache-libexecdir="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
491 --with-apxs=%{_sbindir}/apxs \
492%else
493 --without-apxs \
494%endif
298f7114 495%if %{with db}
ad5c551e 496 --with-berkeley-db="db.h:%{_includedir}:%{_libdir}:db" \
28b85877 497 %{?with_db6:--enable-bdb6} \
298f7114
ER
498%else
499 --without-berkeley-db \
500%endif
1aac8b6c
JB
501%if %{with csvn}
502 --with-ctypesgen=%{_bindir}/ctypesgen-2 \
503%endif
504%if %{with gnome}
505 --with-gnome-keyring \
506%endif
507%if %{with kwallet}
508 --with-kwallet \
0905b458 509%endif
298f7114 510%if %{without swig}
0905b458 511 --without-swig \
5c072a77 512%endif
69c6af4b
JP
513%if %{with python}
514 --with-swig=/usr/bin/swig-3 \
515%endif
dd30c674
ER
516%if %{with ruby}
517 svn_cv_ruby_sitedir_libsuffix="" \
518 svn_cv_ruby_sitedir_archsuffix="" \
519 --with-ruby-sitedir=%{ruby_vendorarchdir} \
520%else
5c072a77 521 ac_cv_path_RUBY=none \
0905b458 522%endif
c3746b64 523%if %{with java}
a26edfbd 524 --enable-javahl \
1cc7453a 525 --with-jdk="%{java_home}" \
cf2589d0 526 --without-jikes \
a26edfbd
ER
527%else
528 --disable-javahl \
529%endif
536b3fd3 530
1f630180 531%{__make} -j1
536b3fd3 532
92bfa7e1
ER
533%{__make} tools
534
5b21aa20 535%if %{with csvn}
a26edfbd 536# Python ctypes bindings
137fcafd 537%{__make} ctypes-python
5b21aa20 538%endif
a26edfbd
ER
539%if %{with python}
540# Python swig bindings
86a4919e 541%{__make} swig-py \
65318afa
AF
542 swig_pydir=%{py_sitedir}/libsvn \
543 swig_pydir_extra=%{py_sitedir}/svn
0905b458 544%endif
0905b458 545%if %{with perl}
a26edfbd 546# Perl swig bindings
390bb8f4 547%{__make} -j1 swig-pl-lib
bf539998
AM
548cd subversion/bindings/swig/perl/native
549%{__perl} Makefile.PL INSTALLDIRS=vendor
b445847c 550%{__make} -j1
a26edfbd 551cd -
536b3fd3 552%endif
c3746b64 553%if %{with java}
b445847c 554%{__make} -j1 javahl \
1cc7453a 555 javahl_javadir="%{_javadir}"
556%endif
d46e45ba
AM
557# ruby
558%if %{with ruby}
559%{__make} swig-rb
560%endif
12ae68c1
AM
561
562%if %{with tests}
5abe2f77 563%{__make} -j1 check
5b21aa20 564%if %{with csvn}
5abe2f77 565%{__make} -j1 check-ctypes-python
5b21aa20 566%endif
a26edfbd 567%if %{with python}
5abe2f77 568%{__make} -j1 check-swig-py
d46e45ba
AM
569%endif
570%if %{with perl}
5abe2f77 571%{__make} -j1 check-swig-pl
d46e45ba
AM
572%endif
573%if %{with ruby}
6e3aae2d
ER
574# disabled, see https://bugs.launchpad.net/pld-linux/+bug/734340
575#%{__make} check-swig-rb
d46e45ba 576%endif
0905b458 577%endif
93b78127
AM
578
579%install
580rm -rf $RPM_BUILD_ROOT
1326bb99 581install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \
1af5e34d 582 $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \
afb35189 583 $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \
d9d66e02 584 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
a54611db 585 $RPM_BUILD_ROOT/home/services/subversion{,/repos}
93b78127 586
9eb45f32
JB
587%{__make} -j1 install \
588 pkgconfig_dir=%{_pkgconfigdir} \
92bfa7e1 589 toolsdir=%{_bindir} \
a26edfbd
ER
590 DESTDIR=$RPM_BUILD_ROOT \
591 APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
c3746b64 592%if %{with java}
1cc7453a 593 install-javahl \
594 javahl_javadir="%{_javadir}" \
595%endif
d46e45ba 596%if %{with python}
0905b458 597 install-swig-py \
a26edfbd 598 swig_pydir=%{py_sitedir}/libsvn \
2ecedb13 599 swig_pydir_extra=%{py_sitedir}/svn \
a26edfbd 600%endif
74465f3c
JP
601 install-tools
602
5b21aa20 603%if %{with csvn}
74465f3c
JP
604# manually execute install-ctypes-python target
605cd subversion/bindings/ctypes-python
606%py_install
607cd ../../..
d46e45ba 608%endif
49f25a64 609
d46e45ba 610%if %{with ruby}
9eb45f32 611%{__make} -j1 install-swig-rb install-swig-rb-doc \
59894d8a 612 SWIG_RB_RI_DATADIR=$RPM_BUILD_ROOT%{ruby_ridir} \
9eb45f32 613 DESTDIR=$RPM_BUILD_ROOT
49f25a64
ER
614
615# not our package
49f25a64
ER
616%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/OptionParser
617%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Time
b98707c2 618%if "%{ruby_abi}" >= "2.0"
59894d8a 619%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/File
c6918405 620%endif
49f25a64
ER
621%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri
622%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid
0905b458 623%endif
93b78127 624
298f7114 625%if %{with perl}
bf539998
AM
626%{__make} install-swig-pl-lib \
627 DESTDIR=$RPM_BUILD_ROOT
b445847c 628%{__make} -C subversion/bindings/swig/perl/native install \
bf539998
AM
629 DESTDIR=$RPM_BUILD_ROOT \
630 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
631 LIBDIR=$RPM_BUILD_ROOT%{_libdir}
bf539998
AM
632%endif
633
0905b458 634%if %{with apache}
d9d66e02
ER
635cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf
636cp -p %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf
637cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve
638install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve
0905b458 639%endif
93b78127 640
d9d66e02
ER
641%if %{without net_client_only}
642install -p tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup
298f7114 643%endif
92bfa7e1
ER
644
645# rename not to conflict with standard packages. (are these needed at all?)
9eb45f32
JB
646%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff
647%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff3
648%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff4
92bfa7e1 649
e834894b 650%if %{with python} || %{with csvn}
f4e6a380
AM
651%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
652%py_comp $RPM_BUILD_ROOT%{py_sitedir}
3c200272 653%py_postclean
e834894b
ER
654%endif
655%if %{with python}
3c200272 656%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la
f37da0a1
ER
657# .a created on ac only
658%{__rm} -f $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.a
659cp -p tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
536b3fd3 660%endif
f4e6a380 661
d9d66e02
ER
662cp -p tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name}
663cp -p tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1326bb99 664
c3746b64 665%if %{with java}
a26edfbd
ER
666%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a}
667%endif
298f7114 668%if %{with swig}
fe242fac 669%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a}
5c072a77 670%if %{with ruby}
dd30c674 671%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/svn/ext/*.la
5f328a6e 672%endif
5c072a77 673%endif
fe242fac
JB
674%if %{with gnome} || %{with kwallet}
675# dlopened by soname (libsvn_auth_*-1.so.0)
535649a6 676%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la}
fe242fac 677%endif
205a3ddc 678
fe242fac 679%find_lang %{name}
a6ecf312 680
e23909be
JB
681%clean
682rm -rf $RPM_BUILD_ROOT
683
a1bac09d
684%pre svnserve
685%groupadd -g 86 svn
686%useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn
687
d2bf70bf
JB
688%post libs -p /sbin/ldconfig
689%postun libs -p /sbin/ldconfig
690
691%post devel -p /sbin/postshell
6f99c3bd 692-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 693
d2bf70bf 694%postun devel -p /sbin/postshell
6f99c3bd 695-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 696
12c96b58
ER
697%post -n java-subversion -p /sbin/ldconfig
698%postun -n java-subversion -p /sbin/ldconfig
699
d2bf70bf
JB
700%post -n perl-subversion -p /sbin/ldconfig
701%postun -n perl-subversion -p /sbin/ldconfig
702
703%post -n python-subversion -p /sbin/ldconfig
704%postun -n python-subversion -p /sbin/ldconfig
f4e6a380 705
12c96b58
ER
706%post -n ruby-subversion -p /sbin/ldconfig
707%postun -n ruby-subversion -p /sbin/ldconfig
708
709%post -n gnome-keyring-subversion -p /sbin/ldconfig
710%postun -n gnome-keyring-subversion -p /sbin/ldconfig
711
ab99ba37
JR
712%post -n kde5-kwallet-subversion -p /sbin/ldconfig
713%postun -n kde5-kwallet-subversion -p /sbin/ldconfig
12c96b58 714
b56474ff 715%post svnserve
e8d9186f
ER
716/sbin/chkconfig --add svnserve
717%service svnserve restart "svnserve daemon"
718
b56474ff
AM
719%preun svnserve
720if [ "$1" = "0" ]; then
e8d9186f
ER
721 %service svnserve stop
722 /sbin/chkconfig --del svnserve
b56474ff
AM
723fi
724
a1bac09d
725%postun svnserve
726if [ "$1" = "0" ]; then
12c96b58
ER
727 %userremove svn
728 %groupremove svn
a1bac09d
729fi
730
93b78127 731%post -n apache-mod_dav_svn
e8d9186f 732%service -q httpd restart
93b78127 733
ba425c92 734%postun -n apache-mod_dav_svn
93b78127 735if [ "$1" = "0" ]; then
e8d9186f 736 %service -q httpd restart
93b78127
AM
737fi
738
9688ba4c
JR
739%post -n apache-mod_authz_svn
740%service -q httpd restart
741
ba425c92 742%postun -n apache-mod_authz_svn
9688ba4c
JR
743if [ "$1" = "0" ]; then
744 %service -q httpd restart
745fi
746
53bea8b1
AM
747%post -n apache-mod_dontdothat_svn
748%service -q httpd restart
749
750%postun -n apache-mod_dontdothat_svn
751if [ "$1" = "0" ]; then
752 %service -q httpd restart
753fi
754
93b78127
AM
755%files
756%defattr(644,root,root,755)
c5c1593f 757%doc BUGS CHANGES INSTALL README
d37298dc 758%doc doc/*/*.html
4bbdbbf8
AM
759%doc tools/hook-scripts/*.{pl,py,example}
760%doc tools/hook-scripts/mailer/*.{py,example}
1326bb99 761%doc tools/xslt/*
535649a6 762%attr(755,root,root) %{_bindir}/fsfs-stats
b445847c 763%attr(755,root,root) %{_bindir}/svn
535649a6 764%attr(755,root,root) %{_bindir}/svn-mergeinfo-normalizer
b445847c 765%attr(755,root,root) %{_bindir}/svnadmin
535649a6 766%attr(755,root,root) %{_bindir}/svnconflict
b445847c
JB
767%attr(755,root,root) %{_bindir}/svndumpfilter
768%attr(755,root,root) %{_bindir}/svnlook
535649a6 769%attr(755,root,root) %{_bindir}/svnmover
3d85fab0 770%attr(755,root,root) %{_bindir}/svnmucc
1e0ba091 771%attr(755,root,root) %{_bindir}/svnrdump
b445847c
JB
772%attr(755,root,root) %{_bindir}/svnsync
773%attr(755,root,root) %{_bindir}/svnversion
774%{_mandir}/man1/svn.1*
775%{_mandir}/man1/svnadmin.1*
776%{_mandir}/man1/svndumpfilter.1*
c5c1593f 777%{_mandir}/man1/svnrdump.1*
b445847c 778%{_mandir}/man1/svnlook.1*
3d85fab0 779%{_mandir}/man1/svnmucc.1*
b445847c
JB
780%{_mandir}/man1/svnsync.1*
781%{_mandir}/man1/svnversion.1*
f4e6a380 782
205a3ddc 783%files libs -f %{name}.lang
f4e6a380 784%defattr(644,root,root,755)
d9d66e02 785%dir %{_sysconfdir}/%{name}
b445847c
JB
786%attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.*
787%attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0
788%attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.*
789%attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0
790%attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.*
791%attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0
792%attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.*
793%attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0
5f328a6e 794%if %{without net_client_only}
b445847c
JB
795%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.*
796%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0
5f328a6e 797%endif
b445847c
JB
798%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.*
799%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0
800%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.*
801%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0
f9c8674f
AM
802%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so.*.*.*
803%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_x-1.so.0
b445847c
JB
804%attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.*
805%attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0
806%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.*
807%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0
1e0ba091
AM
808%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so.*.*.*
809%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_serf-1.so.0
b445847c
JB
810%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.*
811%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0
812%attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.*
813%attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0
814%attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.*
815%attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0
816%attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.*
817%attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0
93b78127
AM
818
819%files devel
820%defattr(644,root,root,755)
b445847c
JB
821%attr(755,root,root) %{_libdir}/libsvn_client-1.so
822%attr(755,root,root) %{_libdir}/libsvn_delta-1.so
823%attr(755,root,root) %{_libdir}/libsvn_diff-1.so
824%attr(755,root,root) %{_libdir}/libsvn_fs-1.so
5f328a6e 825%if %{without net_client_only}
b445847c 826%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so
5f328a6e 827%endif
b445847c
JB
828%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so
829%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so
f9c8674f 830%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so
b445847c
JB
831%attr(755,root,root) %{_libdir}/libsvn_ra-1.so
832%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so
1e0ba091 833%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so
b445847c
JB
834%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so
835%attr(755,root,root) %{_libdir}/libsvn_repos-1.so
836%attr(755,root,root) %{_libdir}/libsvn_subr-1.so
837%attr(755,root,root) %{_libdir}/libsvn_wc-1.so
838%{_libdir}/libsvn_client-1.la
839%{_libdir}/libsvn_delta-1.la
840%{_libdir}/libsvn_diff-1.la
841%{_libdir}/libsvn_fs-1.la
5f328a6e 842%if %{without net_client_only}
b445847c 843%{_libdir}/libsvn_fs_base-1.la
5f328a6e 844%endif
b445847c
JB
845%{_libdir}/libsvn_fs_fs-1.la
846%{_libdir}/libsvn_fs_util-1.la
f9c8674f 847%{_libdir}/libsvn_fs_x-1.la
b445847c
JB
848%{_libdir}/libsvn_ra-1.la
849%{_libdir}/libsvn_ra_local-1.la
1e0ba091 850%{_libdir}/libsvn_ra_serf-1.la
b445847c
JB
851%{_libdir}/libsvn_ra_svn-1.la
852%{_libdir}/libsvn_repos-1.la
853%{_libdir}/libsvn_subr-1.la
854%{_libdir}/libsvn_wc-1.la
ff76629a 855%if %{with gnome}
9eb45f32
JB
856# only for feature check, linking will fail (no libsvn_auth_gnome_keyring.so)
857%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
ff76629a
JP
858%endif
859%if %{with kwallet}
9eb45f32
JB
860# only for feature check, linking will fail (no libsvn_auth_kwallet.so)
861%{_pkgconfigdir}/libsvn_auth_kwallet.pc
ff76629a 862%endif
9eb45f32
JB
863%{_pkgconfigdir}/libsvn_client.pc
864%{_pkgconfigdir}/libsvn_delta.pc
865%{_pkgconfigdir}/libsvn_diff.pc
866%{_pkgconfigdir}/libsvn_fs.pc
f9c8674f 867%if %{without net_client_only}
9eb45f32
JB
868%{_pkgconfigdir}/libsvn_fs_base.pc
869%endif
870%{_pkgconfigdir}/libsvn_fs_fs.pc
871%{_pkgconfigdir}/libsvn_fs_util.pc
872%{_pkgconfigdir}/libsvn_fs_x.pc
873%{_pkgconfigdir}/libsvn_ra.pc
874%{_pkgconfigdir}/libsvn_ra_local.pc
875%{_pkgconfigdir}/libsvn_ra_serf.pc
876%{_pkgconfigdir}/libsvn_ra_svn.pc
877%{_pkgconfigdir}/libsvn_repos.pc
878%{_pkgconfigdir}/libsvn_subr.pc
879%{_pkgconfigdir}/libsvn_wc.pc
b445847c 880%{_includedir}/%{name}-1
1326bb99 881%{_examplesdir}/%{name}-%{version}
93b78127
AM
882
883%files static
884%defattr(644,root,root,755)
b445847c
JB
885%{_libdir}/libsvn_client-1.a
886%{_libdir}/libsvn_delta-1.a
887%{_libdir}/libsvn_diff-1.a
888%{_libdir}/libsvn_fs-1.a
5f328a6e 889%if %{without net_client_only}
b445847c 890%{_libdir}/libsvn_fs_base-1.a
5f328a6e 891%endif
b445847c
JB
892%{_libdir}/libsvn_fs_fs-1.a
893%{_libdir}/libsvn_fs_util-1.a
f9c8674f 894%{_libdir}/libsvn_fs_x-1.a
b445847c
JB
895%{_libdir}/libsvn_ra-1.a
896%{_libdir}/libsvn_ra_local-1.a
1e0ba091 897%{_libdir}/libsvn_ra_serf-1.a
b445847c
JB
898%{_libdir}/libsvn_ra_svn-1.a
899%{_libdir}/libsvn_repos-1.a
900%{_libdir}/libsvn_subr-1.a
901%{_libdir}/libsvn_wc-1.a
93b78127 902
bfb248d0 903%if %{with gnome}
1429fa1c
AM
904%files -n gnome-keyring-subversion
905%defattr(644,root,root,755)
906%attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.*
907%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0
8d40da51
JB
908# does anything use it? requires libsvn_auth_gnome_keyring.so
909#%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
bfb248d0 910%endif
1429fa1c 911
65f2befa 912%if %{with kwallet}
ab99ba37 913%files -n kde5-kwallet-subversion
1429fa1c
AM
914%defattr(644,root,root,755)
915%attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.*
916%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0
8d40da51
JB
917# does anything use it? requires libsvn_auth_kwallet.so
918#%{_pkgconfigdir}/libsvn_auth_kwallet.pc
65f2befa 919%endif
1429fa1c 920
12c96b58 921%if %{without net_client_only}
b56474ff
AM
922%files svnserve
923%defattr(644,root,root,755)
924%attr(755,root,root) %{_bindir}/svnserve
b445847c
JB
925%{_mandir}/man5/svnserve.conf.5*
926%{_mandir}/man8/svnserve.8*
a1bac09d
927%dir %attr(750,svn,svn) /home/services/subversion
928%dir %attr(750,svn,svn) /home/services/subversion/repos
0905b458 929%if %{with apache}
b56474ff 930%attr(754,root,root) /etc/rc.d/init.d/svnserve
86ea8fde 931%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve
0905b458 932%endif
b56474ff 933
4bbdbbf8
AM
934%files tools
935%defattr(644,root,root,755)
92bfa7e1 936# tools/backup/hot-backup.py
1326bb99 937%attr(755,root,root) %{_bindir}/svn-hot-backup
fe5bb6bb 938
92bfa7e1
ER
939# tools/diff
940%attr(755,root,root) %{_bindir}/svndiff
941%attr(755,root,root) %{_bindir}/svndiff3
942%attr(755,root,root) %{_bindir}/svndiff4
943
944# tools/server-side
f9c8674f 945%attr(755,root,root) %{_bindir}/svnfsfs
92bfa7e1 946%attr(755,root,root) %{_bindir}/svn-populate-node-origins-index
3d85fab0 947%attr(755,root,root) %{_bindir}/svnauthz
92bfa7e1
ER
948%attr(755,root,root) %{_bindir}/svnauthz-validate
949
3d85fab0 950# tools/client-side
f9c8674f 951%attr(755,root,root) %{_bindir}/svnbench
1e0ba091 952
92bfa7e1
ER
953# tools/dev/svnraisetreeconflict
954%attr(755,root,root) %{_bindir}/svnraisetreeconflict
955
1e0ba091
AM
956# tools/dev/
957%attr(755,root,root) %{_bindir}/fsfs-access-map
f9c8674f 958%attr(755,root,root) %{_bindir}/x509-parser
1e0ba091 959
fe5bb6bb 960%files -n bash-completion-subversion
101e74de 961%defattr(644,root,root,755)
1326bb99 962/etc/bash_completion.d/%{name}
536b3fd3 963
f37da0a1
ER
964%endif # net_client_only
965
c3746b64 966%if %{with java}
1cc7453a 967%files -n java-subversion
968%defattr(644,root,root,755)
b445847c
JB
969%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.*
970%attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0
971%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so
1cc7453a 972%{_javadir}/svn-javahl.jar
973%endif
974
0905b458 975%if %{with python}
fa3ff1b2 976%files -n python-subversion
f4e6a380 977%defattr(644,root,root,755)
693a6ddf 978%doc tools/backup/*.py
b445847c
JB
979%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.*
980%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0
981%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so
65318afa 982%dir %{py_sitedir}/libsvn
3c200272 983%attr(755,root,root) %{py_sitedir}/libsvn/_*.so
65318afa 984%{py_sitedir}/libsvn/*.py[co]
b445847c
JB
985%dir %{py_sitedir}/svn
986%{py_sitedir}/svn/*.py[co]
1326bb99 987%{_examplesdir}/python-%{name}-%{version}
a26edfbd 988%endif
137fcafd 989
5b21aa20 990%if %{with csvn}
137fcafd
AM
991%files -n python-csvn
992%defattr(644,root,root,755)
993%doc subversion/bindings/ctypes-python/{README,TODO}
994%doc subversion/bindings/ctypes-python/examples/*.py
995%dir %{py_sitescriptdir}/csvn
996%{py_sitescriptdir}/csvn/*.py[co]
997%dir %{py_sitescriptdir}/csvn/core
998%{py_sitescriptdir}/csvn/core/*.py[co]
999%dir %{py_sitescriptdir}/csvn/ext
1000%{py_sitescriptdir}/csvn/ext/*.py[co]
3c200272 1001%{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
0905b458 1002%endif
f4e6a380 1003
0905b458 1004%if %{with perl}
b56474ff
AM
1005%files -n perl-subversion
1006%defattr(644,root,root,755)
b445847c
JB
1007%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.*
1008%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0
1009%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so
b56474ff
AM
1010%{perl_vendorarch}/SVN
1011%dir %{perl_vendorarch}/auto/SVN
1012%dir %{perl_vendorarch}/auto/SVN/*
1013%attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
a70bbcf5 1014%{_mandir}/man3/SVN::*.3pm*
0905b458 1015%endif
b56474ff 1016
d46e45ba
AM
1017%if %{with ruby}
1018%files -n ruby-subversion
1019%defattr(644,root,root,755)
b445847c
JB
1020%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.*
1021%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0
1022%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so
dd30c674
ER
1023%dir %{ruby_vendorarchdir}/svn
1024%{ruby_vendorarchdir}/svn/*.rb
1025%dir %{ruby_vendorarchdir}/svn/ext
1026%attr(755,root,root) %{ruby_vendorarchdir}/svn/ext/*.so
916011ef 1027%{ruby_ridir}/Svn
d46e45ba
AM
1028%endif
1029
0905b458 1030%if %{with apache}
93b78127
AM
1031%files -n apache-mod_dav_svn
1032%defattr(644,root,root,755)
1af5e34d
ER
1033%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf
1034%attr(755,root,root) %{apachelibdir}/mod_dav_svn.so
65318afa
AF
1035
1036%files -n apache-mod_authz_svn
1037%defattr(644,root,root,755)
1038%doc subversion/mod_authz_svn/INSTALL
1af5e34d
ER
1039%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf
1040%attr(755,root,root) %{apachelibdir}/mod_authz_svn.so
53bea8b1
AM
1041
1042%files -n apache-mod_dontdothat_svn
1043%defattr(644,root,root,755)
1044%doc tools/server-side/mod_dontdothat/README
1045%attr(755,root,root) %{apachelibdir}/mod_dontdothat.so
536b3fd3 1046%endif
This page took 0.393495 seconds and 4 git commands to generate.