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