]> git.pld-linux.org Git - packages/subversion.git/blame - subversion.spec
- rel 4; build python bindings using swig 3
[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
5eb24b1f 52Version: 1.13.0
b1c8f82b 53Release: 4
8df86594 54License: Apache v2.0
93b78127 55Group: Development/Version Control
8942083b 56Source0: http://www.apache.org/dist/subversion/%{name}-%{version}.tar.bz2
5eb24b1f 57# Source0-md5: 3004b4dae18bf45a0b6ea4ef8820064d
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}
8d40da51
JB
73BuildRequires: apr-devel >= 1:1.3
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
dd30c674 99BuildRequires: rpmbuild(macros) >= 1.656
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}
116BuildRequires: python-devel >= 1:2.4
b1c8f82b
AM
117BuildRequires: swig3-python >= 3.0.12
118BuildRequires: swig3-python < 4.0.0
86250f0b
JB
119%endif
120%if %{with ruby}
1d7939c9 121BuildRequires: rpm-rubyprov
38c0314f 122BuildRequires: ruby-devel >= 1:1.8.2
8942083b 123BuildRequires: ruby-irb
86250f0b
JB
124BuildRequires: ruby-rubygems
125BuildRequires: swig-ruby >= 1.3.24
e3ad24ea 126%endif
027f8ebe 127Requires: %{name}-libs = %{version}-%{release}
8b023a9d 128%requires_ge sqlite3
93b78127
AM
129BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
130
f4070f5f 131%define _libexecdir %{_libdir}/svn
1af5e34d
ER
132%define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
133%define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
93b78127 134
f9c8674f 135%define skip_post_check_so libsvn_swig_py-1.so.* libsvn_swig_perl-1.so.* libsvn_fs_x-1.so.*
58f4b627 136
93b78127
AM
137%description
138The goal of the Subversion project is to build a version control
139system that is a compelling replacement for CVS in the open source
140community.
141
142Our goals are:
143- All current CVS features.
144- Directories, renames, and file meta-data are versioned.
145- Symbolic links, etc, are supported
146- Commits are truly atomic.
147- Branching and tagging are cheap (constant time) operations
148- Repeated merges are handled gracefully
149- Support for plug-in client side diff programs
150- Natively client/server
151- Client/server protocol sends diffs in both directions
152- Costs are proportional to change size, not project size
153- Internationalization
154- Progressive multi-lingual support
155
aa59005f 156%description -l pl.UTF-8
93b78127
AM
157Celem projektu Subversion jest stworzenie systemu kontroli wersji jako
158zamiennika dla CVS.
159
160Cele projektu to:
aa59005f 161- Wszystkie aktualne możliwości CVS.
24406120
JB
162- Katalogi, zmiany nazw oraz metadane plików są wersjonowane.
163- Obsługa dowiązań symbolicznych itp.
aa59005f
JR
164- Commity są w pełni atomowe.
165- Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami.
24406120
JB
166- Dobra obsługa powtarzanego łączenia (merge).
167- Obsługa wtyczek diff po stronie klienta.
93b78127 168- Natywny klient/serwer.
aa59005f 169- Klient/Serwer przesyłają diffy w obu kierunkach.
93b78127
AM
170- Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu.
171- Internacjonalizacja.
aa59005f 172- Postępujące wsparcie dla wielu języków.
93b78127 173
aa59005f
JR
174%description -l pt_BR.UTF-8
175O objetivo do projeto Subversion é construir um sistema de controle de
176versões que seja um substituto para o CVS (Concurrent Versioning
92066deb 177System) na comunidade opensource, fornecendo grandes melhorias.
178
f4e6a380
AM
179%package libs
180Summary: Subversion libraries and modules
abe3c421 181Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły
f4e6a380 182Group: Libraries
8d40da51
JB
183Requires: apr >= 1:1.3
184Requires: apr-util >= 1:1.3
185Requires: serf >= 1.3.4
62313a20 186Requires: zlib >= 1.2
53855fbf 187Obsoletes: libsubversion0
f4e6a380
AM
188
189%description libs
190Subversion libraries and modules.
191
aa59005f
JR
192%description libs -l pl.UTF-8
193Biblioteka subversion oraz ładowalne moduły.
f4e6a380 194
93b78127
AM
195%package devel
196Summary: Header files and develpment documentation for subversion
abe3c421
ER
197Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion
198Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion
93b78127 199Group: Development/Libraries
9cb7e099 200Requires: %{name}-libs = %{version}-%{release}
8d40da51
JB
201Requires: apr-util-devel >= 1:1.3
202Requires: serf-devel >= 1.3.4
12cf252c 203Obsoletes: libsubversion0-devel
93b78127
AM
204
205%description devel
206Header files and develpment documentation for subversion.
207
aa59005f
JR
208%description devel -l pl.UTF-8
209Pliki nagłówkowe i dokumetacja do subversion.
93b78127 210
aa59005f
JR
211%description devel -l pt_BR.UTF-8
212Este pacote provê os arquivos necessários para desenvolvedores
92066deb 213interagirem com o Subversion.
214
93b78127
AM
215%package static
216Summary: Static subversion library
abe3c421
ER
217Summary(pl.UTF-8): Biblioteka statyczna subversion
218Summary(pt_BR.UTF-8): Sistema de versionamento concorrente
93b78127
AM
219Group: Development/Libraries
220Requires: %{name}-devel = %{version}
12cf252c 221Obsoletes: libsubversion0-static-devel
93b78127
AM
222
223%description static
224Static subversion library.
225
aa59005f 226%description static -l pl.UTF-8
93b78127
AM
227Biblioteka statyczna subversion.
228
aa59005f
JR
229%description static -l pt_BR.UTF-8
230Este pacote provê um cliente estático do subversion.
92066deb 231
b56474ff
AM
232%package svnserve
233Summary: Subversion svnserve
abe3c421 234Summary(pl.UTF-8): Subversion svnserve
b56474ff 235Group: Networking/Daemons
3817faf5 236Requires(post,preun): /sbin/chkconfig
93f1d402 237Requires(postun): /usr/sbin/groupdel
238Requires(postun): /usr/sbin/userdel
239Requires(pre): /bin/id
240Requires(pre): /usr/bin/getgid
241Requires(pre): /usr/lib/rpm/user_group.sh
242Requires(pre): /usr/sbin/groupadd
243Requires(pre): /usr/sbin/useradd
244Requires(pre): /usr/sbin/usermod
9cb7e099 245Requires: %{name} = %{version}-%{release}
7b27380f 246Requires: rc-scripts
a1bac09d
247Provides: group(svn)
248Provides: user(svn)
b56474ff
AM
249
250%description svnserve
251Subversion svnserve server.
252
aa59005f 253%description svnserve -l pl.UTF-8
b56474ff
AM
254Serwer subversion svnserve.
255
4bbdbbf8
AM
256%package tools
257Summary: Subversion tools and scripts
abe3c421
ER
258Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion
259Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion
4bbdbbf8 260Group: Applications
7b27380f 261Requires: %{name} = %{version}-%{release}
4975bf39 262Requires: python
0aa109cb 263%{?with_python:Requires: python-subversion = %{version}}
4bbdbbf8
AM
264
265%description tools
266Subversion tools and scripts.
267
aa59005f
JR
268%description tools -l pl.UTF-8
269Narzędzia oraz skrypty dla subversion.
4bbdbbf8 270
fe5bb6bb 271%package -n bash-completion-subversion
272Summary: bash completion for subversion
abe3c421 273Summary(pl.UTF-8): Dopełnienia basha dla subversion
fe5bb6bb 274Group: Applications/Shells
e30588c4 275Requires: %{name} = %{version}-%{release}
53855fbf 276Requires: bash-completion
e30588c4 277Conflicts: %{name}-tools <= 1.1.0-0.rc6.1
90e66b00
ER
278%if "%{_rpmversion}" >= "5"
279BuildArch: noarch
280%endif
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
AM
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,' \
458 tools/backup/hot-backup.py \
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
dd30c674
ER
497%if %{with ruby}
498 svn_cv_ruby_sitedir_libsuffix="" \
499 svn_cv_ruby_sitedir_archsuffix="" \
500 --with-ruby-sitedir=%{ruby_vendorarchdir} \
501%else
5c072a77 502 ac_cv_path_RUBY=none \
0905b458 503%endif
a26edfbd
ER
504%if %{with csvn}
505 --with-ctypesgen=%{_bindir}/ctypesgen.py \
506%endif
c3746b64 507%if %{with java}
a26edfbd 508 --enable-javahl \
1cc7453a 509 --with-jdk="%{java_home}" \
cf2589d0 510 --without-jikes \
a26edfbd
ER
511%else
512 --disable-javahl \
513%endif
04129f48 514 --with-serf=%{_prefix} \
16429189 515 --with-apr=%{_bindir}/apr-1-config \
1429fa1c 516 --with-apr-util=%{_bindir}/apu-1-config \
65f2befa 517%if %{with kwallet}
1429fa1c 518 --with-kwallet \
65f2befa 519%endif
bfb248d0 520%if %{with gnome}
1429fa1c 521 --with-gnome-keyring
bfb248d0 522%endif
536b3fd3 523
1f630180 524%{__make} -j1
536b3fd3 525
92bfa7e1
ER
526%{__make} tools
527
5b21aa20 528%if %{with csvn}
a26edfbd 529# Python ctypes bindings
137fcafd 530%{__make} ctypes-python
5b21aa20 531%endif
a26edfbd
ER
532%if %{with python}
533# Python swig bindings
86a4919e 534%{__make} swig-py \
b1c8f82b 535 SWIG="swig-3" \
65318afa
AF
536 swig_pydir=%{py_sitedir}/libsvn \
537 swig_pydir_extra=%{py_sitedir}/svn
0905b458 538%endif
0905b458 539%if %{with perl}
a26edfbd 540# Perl swig bindings
390bb8f4 541%{__make} -j1 swig-pl-lib
bf539998
AM
542cd subversion/bindings/swig/perl/native
543%{__perl} Makefile.PL INSTALLDIRS=vendor
b445847c 544%{__make} -j1
a26edfbd 545cd -
536b3fd3 546%endif
c3746b64 547%if %{with java}
b445847c 548%{__make} -j1 javahl \
1cc7453a 549 javahl_javadir="%{_javadir}"
550%endif
d46e45ba
AM
551# ruby
552%if %{with ruby}
553%{__make} swig-rb
554%endif
12ae68c1
AM
555
556%if %{with tests}
5abe2f77 557%{__make} -j1 check
5b21aa20 558%if %{with csvn}
5abe2f77 559%{__make} -j1 check-ctypes-python
5b21aa20 560%endif
a26edfbd 561%if %{with python}
5abe2f77 562%{__make} -j1 check-swig-py
d46e45ba
AM
563%endif
564%if %{with perl}
5abe2f77 565%{__make} -j1 check-swig-pl
d46e45ba
AM
566%endif
567%if %{with ruby}
6e3aae2d
ER
568# disabled, see https://bugs.launchpad.net/pld-linux/+bug/734340
569#%{__make} check-swig-rb
d46e45ba 570%endif
0905b458 571%endif
93b78127
AM
572
573%install
574rm -rf $RPM_BUILD_ROOT
1326bb99 575install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \
1af5e34d 576 $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \
afb35189 577 $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \
d9d66e02 578 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
a54611db 579 $RPM_BUILD_ROOT/home/services/subversion{,/repos}
93b78127 580
9eb45f32
JB
581%{__make} -j1 install \
582 pkgconfig_dir=%{_pkgconfigdir} \
92bfa7e1 583 toolsdir=%{_bindir} \
a26edfbd
ER
584 DESTDIR=$RPM_BUILD_ROOT \
585 APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
c3746b64 586%if %{with java}
1cc7453a 587 install-javahl \
588 javahl_javadir="%{_javadir}" \
589%endif
d46e45ba 590%if %{with python}
0905b458 591 install-swig-py \
a26edfbd 592 swig_pydir=%{py_sitedir}/libsvn \
2ecedb13 593 swig_pydir_extra=%{py_sitedir}/svn \
a26edfbd 594%endif
74465f3c
JP
595 install-tools
596
5b21aa20 597%if %{with csvn}
74465f3c
JP
598# manually execute install-ctypes-python target
599cd subversion/bindings/ctypes-python
600%py_install
601cd ../../..
d46e45ba 602%endif
49f25a64 603
d46e45ba 604%if %{with ruby}
9eb45f32 605%{__make} -j1 install-swig-rb install-swig-rb-doc \
59894d8a 606 SWIG_RB_RI_DATADIR=$RPM_BUILD_ROOT%{ruby_ridir} \
9eb45f32 607 DESTDIR=$RPM_BUILD_ROOT
49f25a64
ER
608
609# not our package
49f25a64
ER
610%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/OptionParser
611%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Time
b98707c2 612%if "%{ruby_abi}" >= "2.0"
59894d8a 613%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/File
c6918405 614%endif
49f25a64
ER
615%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri
616%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid
0905b458 617%endif
93b78127 618
298f7114 619%if %{with perl}
bf539998
AM
620%{__make} install-swig-pl-lib \
621 DESTDIR=$RPM_BUILD_ROOT
b445847c 622%{__make} -C subversion/bindings/swig/perl/native install \
bf539998
AM
623 DESTDIR=$RPM_BUILD_ROOT \
624 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
625 LIBDIR=$RPM_BUILD_ROOT%{_libdir}
bf539998
AM
626%endif
627
0905b458 628%if %{with apache}
d9d66e02
ER
629cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf
630cp -p %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf
631cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve
632install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve
0905b458 633%endif
93b78127 634
d9d66e02
ER
635%if %{without net_client_only}
636install -p tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup
298f7114 637%endif
92bfa7e1
ER
638
639# rename not to conflict with standard packages. (are these needed at all?)
9eb45f32
JB
640%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff
641%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff3
642%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff4
92bfa7e1 643
e834894b 644%if %{with python} || %{with csvn}
f4e6a380
AM
645%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
646%py_comp $RPM_BUILD_ROOT%{py_sitedir}
3c200272 647%py_postclean
e834894b
ER
648%endif
649%if %{with python}
3c200272 650%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la
f37da0a1
ER
651# .a created on ac only
652%{__rm} -f $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.a
653cp -p tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
536b3fd3 654%endif
f4e6a380 655
d9d66e02
ER
656cp -p tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name}
657cp -p tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1326bb99 658
c3746b64 659%if %{with java}
a26edfbd
ER
660%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a}
661%endif
298f7114 662%if %{with swig}
fe242fac 663%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a}
5c072a77 664%if %{with ruby}
dd30c674 665%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/svn/ext/*.la
5f328a6e 666%endif
5c072a77 667%endif
fe242fac
JB
668%if %{with gnome} || %{with kwallet}
669# dlopened by soname (libsvn_auth_*-1.so.0)
535649a6 670%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la}
fe242fac 671%endif
205a3ddc 672
fe242fac 673%find_lang %{name}
a6ecf312 674
e23909be
JB
675%clean
676rm -rf $RPM_BUILD_ROOT
677
a1bac09d
678%pre svnserve
679%groupadd -g 86 svn
680%useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn
681
d2bf70bf
JB
682%post libs -p /sbin/ldconfig
683%postun libs -p /sbin/ldconfig
684
685%post devel -p /sbin/postshell
6f99c3bd 686-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 687
d2bf70bf 688%postun devel -p /sbin/postshell
6f99c3bd 689-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 690
12c96b58
ER
691%post -n java-subversion -p /sbin/ldconfig
692%postun -n java-subversion -p /sbin/ldconfig
693
d2bf70bf
JB
694%post -n perl-subversion -p /sbin/ldconfig
695%postun -n perl-subversion -p /sbin/ldconfig
696
697%post -n python-subversion -p /sbin/ldconfig
698%postun -n python-subversion -p /sbin/ldconfig
f4e6a380 699
12c96b58
ER
700%post -n ruby-subversion -p /sbin/ldconfig
701%postun -n ruby-subversion -p /sbin/ldconfig
702
703%post -n gnome-keyring-subversion -p /sbin/ldconfig
704%postun -n gnome-keyring-subversion -p /sbin/ldconfig
705
ab99ba37
JR
706%post -n kde5-kwallet-subversion -p /sbin/ldconfig
707%postun -n kde5-kwallet-subversion -p /sbin/ldconfig
12c96b58 708
b56474ff 709%post svnserve
e8d9186f
ER
710/sbin/chkconfig --add svnserve
711%service svnserve restart "svnserve daemon"
712
b56474ff
AM
713%preun svnserve
714if [ "$1" = "0" ]; then
e8d9186f
ER
715 %service svnserve stop
716 /sbin/chkconfig --del svnserve
b56474ff
AM
717fi
718
a1bac09d
719%postun svnserve
720if [ "$1" = "0" ]; then
12c96b58
ER
721 %userremove svn
722 %groupremove svn
a1bac09d
723fi
724
93b78127 725%post -n apache-mod_dav_svn
e8d9186f 726%service -q httpd restart
93b78127 727
ba425c92 728%postun -n apache-mod_dav_svn
93b78127 729if [ "$1" = "0" ]; then
e8d9186f 730 %service -q httpd restart
93b78127
AM
731fi
732
9688ba4c
JR
733%post -n apache-mod_authz_svn
734%service -q httpd restart
735
ba425c92 736%postun -n apache-mod_authz_svn
9688ba4c
JR
737if [ "$1" = "0" ]; then
738 %service -q httpd restart
739fi
740
53bea8b1
AM
741%post -n apache-mod_dontdothat_svn
742%service -q httpd restart
743
744%postun -n apache-mod_dontdothat_svn
745if [ "$1" = "0" ]; then
746 %service -q httpd restart
747fi
748
93b78127
AM
749%files
750%defattr(644,root,root,755)
c5c1593f 751%doc BUGS CHANGES INSTALL README
d37298dc 752%doc doc/*/*.html
4bbdbbf8
AM
753%doc tools/hook-scripts/*.{pl,py,example}
754%doc tools/hook-scripts/mailer/*.{py,example}
1326bb99 755%doc tools/xslt/*
535649a6 756%attr(755,root,root) %{_bindir}/fsfs-stats
b445847c 757%attr(755,root,root) %{_bindir}/svn
535649a6 758%attr(755,root,root) %{_bindir}/svn-mergeinfo-normalizer
b445847c 759%attr(755,root,root) %{_bindir}/svnadmin
535649a6 760%attr(755,root,root) %{_bindir}/svnconflict
b445847c
JB
761%attr(755,root,root) %{_bindir}/svndumpfilter
762%attr(755,root,root) %{_bindir}/svnlook
535649a6 763%attr(755,root,root) %{_bindir}/svnmover
3d85fab0 764%attr(755,root,root) %{_bindir}/svnmucc
1e0ba091 765%attr(755,root,root) %{_bindir}/svnrdump
b445847c
JB
766%attr(755,root,root) %{_bindir}/svnsync
767%attr(755,root,root) %{_bindir}/svnversion
768%{_mandir}/man1/svn.1*
769%{_mandir}/man1/svnadmin.1*
770%{_mandir}/man1/svndumpfilter.1*
c5c1593f 771%{_mandir}/man1/svnrdump.1*
b445847c 772%{_mandir}/man1/svnlook.1*
3d85fab0 773%{_mandir}/man1/svnmucc.1*
b445847c
JB
774%{_mandir}/man1/svnsync.1*
775%{_mandir}/man1/svnversion.1*
f4e6a380 776
205a3ddc 777%files libs -f %{name}.lang
f4e6a380 778%defattr(644,root,root,755)
d9d66e02 779%dir %{_sysconfdir}/%{name}
b445847c
JB
780%attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.*
781%attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0
782%attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.*
783%attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0
784%attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.*
785%attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0
786%attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.*
787%attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0
5f328a6e 788%if %{without net_client_only}
b445847c
JB
789%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.*
790%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0
5f328a6e 791%endif
b445847c
JB
792%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.*
793%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0
794%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.*
795%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0
f9c8674f
AM
796%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so.*.*.*
797%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_x-1.so.0
b445847c
JB
798%attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.*
799%attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0
800%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.*
801%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0
1e0ba091
AM
802%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so.*.*.*
803%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_serf-1.so.0
b445847c
JB
804%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.*
805%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0
806%attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.*
807%attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0
808%attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.*
809%attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0
810%attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.*
811%attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0
93b78127
AM
812
813%files devel
814%defattr(644,root,root,755)
b445847c
JB
815%attr(755,root,root) %{_libdir}/libsvn_client-1.so
816%attr(755,root,root) %{_libdir}/libsvn_delta-1.so
817%attr(755,root,root) %{_libdir}/libsvn_diff-1.so
818%attr(755,root,root) %{_libdir}/libsvn_fs-1.so
5f328a6e 819%if %{without net_client_only}
b445847c 820%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so
5f328a6e 821%endif
b445847c
JB
822%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so
823%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so
f9c8674f 824%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so
b445847c
JB
825%attr(755,root,root) %{_libdir}/libsvn_ra-1.so
826%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so
1e0ba091 827%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so
b445847c
JB
828%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so
829%attr(755,root,root) %{_libdir}/libsvn_repos-1.so
830%attr(755,root,root) %{_libdir}/libsvn_subr-1.so
831%attr(755,root,root) %{_libdir}/libsvn_wc-1.so
832%{_libdir}/libsvn_client-1.la
833%{_libdir}/libsvn_delta-1.la
834%{_libdir}/libsvn_diff-1.la
835%{_libdir}/libsvn_fs-1.la
5f328a6e 836%if %{without net_client_only}
b445847c 837%{_libdir}/libsvn_fs_base-1.la
5f328a6e 838%endif
b445847c
JB
839%{_libdir}/libsvn_fs_fs-1.la
840%{_libdir}/libsvn_fs_util-1.la
f9c8674f 841%{_libdir}/libsvn_fs_x-1.la
b445847c
JB
842%{_libdir}/libsvn_ra-1.la
843%{_libdir}/libsvn_ra_local-1.la
1e0ba091 844%{_libdir}/libsvn_ra_serf-1.la
b445847c
JB
845%{_libdir}/libsvn_ra_svn-1.la
846%{_libdir}/libsvn_repos-1.la
847%{_libdir}/libsvn_subr-1.la
848%{_libdir}/libsvn_wc-1.la
ff76629a 849%if %{with gnome}
9eb45f32
JB
850# only for feature check, linking will fail (no libsvn_auth_gnome_keyring.so)
851%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
ff76629a
JP
852%endif
853%if %{with kwallet}
9eb45f32
JB
854# only for feature check, linking will fail (no libsvn_auth_kwallet.so)
855%{_pkgconfigdir}/libsvn_auth_kwallet.pc
ff76629a 856%endif
9eb45f32
JB
857%{_pkgconfigdir}/libsvn_client.pc
858%{_pkgconfigdir}/libsvn_delta.pc
859%{_pkgconfigdir}/libsvn_diff.pc
860%{_pkgconfigdir}/libsvn_fs.pc
f9c8674f 861%if %{without net_client_only}
9eb45f32
JB
862%{_pkgconfigdir}/libsvn_fs_base.pc
863%endif
864%{_pkgconfigdir}/libsvn_fs_fs.pc
865%{_pkgconfigdir}/libsvn_fs_util.pc
866%{_pkgconfigdir}/libsvn_fs_x.pc
867%{_pkgconfigdir}/libsvn_ra.pc
868%{_pkgconfigdir}/libsvn_ra_local.pc
869%{_pkgconfigdir}/libsvn_ra_serf.pc
870%{_pkgconfigdir}/libsvn_ra_svn.pc
871%{_pkgconfigdir}/libsvn_repos.pc
872%{_pkgconfigdir}/libsvn_subr.pc
873%{_pkgconfigdir}/libsvn_wc.pc
b445847c 874%{_includedir}/%{name}-1
1326bb99 875%{_examplesdir}/%{name}-%{version}
93b78127
AM
876
877%files static
878%defattr(644,root,root,755)
b445847c
JB
879%{_libdir}/libsvn_client-1.a
880%{_libdir}/libsvn_delta-1.a
881%{_libdir}/libsvn_diff-1.a
882%{_libdir}/libsvn_fs-1.a
5f328a6e 883%if %{without net_client_only}
b445847c 884%{_libdir}/libsvn_fs_base-1.a
5f328a6e 885%endif
b445847c
JB
886%{_libdir}/libsvn_fs_fs-1.a
887%{_libdir}/libsvn_fs_util-1.a
f9c8674f 888%{_libdir}/libsvn_fs_x-1.a
b445847c
JB
889%{_libdir}/libsvn_ra-1.a
890%{_libdir}/libsvn_ra_local-1.a
1e0ba091 891%{_libdir}/libsvn_ra_serf-1.a
b445847c
JB
892%{_libdir}/libsvn_ra_svn-1.a
893%{_libdir}/libsvn_repos-1.a
894%{_libdir}/libsvn_subr-1.a
895%{_libdir}/libsvn_wc-1.a
93b78127 896
bfb248d0 897%if %{with gnome}
1429fa1c
AM
898%files -n gnome-keyring-subversion
899%defattr(644,root,root,755)
900%attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.*
901%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0
8d40da51
JB
902# does anything use it? requires libsvn_auth_gnome_keyring.so
903#%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
bfb248d0 904%endif
1429fa1c 905
65f2befa 906%if %{with kwallet}
ab99ba37 907%files -n kde5-kwallet-subversion
1429fa1c
AM
908%defattr(644,root,root,755)
909%attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.*
910%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0
8d40da51
JB
911# does anything use it? requires libsvn_auth_kwallet.so
912#%{_pkgconfigdir}/libsvn_auth_kwallet.pc
65f2befa 913%endif
1429fa1c 914
12c96b58 915%if %{without net_client_only}
b56474ff
AM
916%files svnserve
917%defattr(644,root,root,755)
918%attr(755,root,root) %{_bindir}/svnserve
b445847c
JB
919%{_mandir}/man5/svnserve.conf.5*
920%{_mandir}/man8/svnserve.8*
a1bac09d
921%dir %attr(750,svn,svn) /home/services/subversion
922%dir %attr(750,svn,svn) /home/services/subversion/repos
0905b458 923%if %{with apache}
b56474ff 924%attr(754,root,root) /etc/rc.d/init.d/svnserve
86ea8fde 925%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve
0905b458 926%endif
b56474ff 927
4bbdbbf8
AM
928%files tools
929%defattr(644,root,root,755)
92bfa7e1 930# tools/backup/hot-backup.py
1326bb99 931%attr(755,root,root) %{_bindir}/svn-hot-backup
fe5bb6bb 932
92bfa7e1
ER
933# tools/diff
934%attr(755,root,root) %{_bindir}/svndiff
935%attr(755,root,root) %{_bindir}/svndiff3
936%attr(755,root,root) %{_bindir}/svndiff4
937
938# tools/server-side
f9c8674f 939%attr(755,root,root) %{_bindir}/svnfsfs
92bfa7e1 940%attr(755,root,root) %{_bindir}/svn-populate-node-origins-index
3d85fab0 941%attr(755,root,root) %{_bindir}/svnauthz
92bfa7e1
ER
942%attr(755,root,root) %{_bindir}/svnauthz-validate
943
3d85fab0 944# tools/client-side
f9c8674f 945%attr(755,root,root) %{_bindir}/svnbench
1e0ba091 946
92bfa7e1
ER
947# tools/dev/svnraisetreeconflict
948%attr(755,root,root) %{_bindir}/svnraisetreeconflict
949
1e0ba091
AM
950# tools/dev/
951%attr(755,root,root) %{_bindir}/fsfs-access-map
f9c8674f 952%attr(755,root,root) %{_bindir}/x509-parser
1e0ba091 953
fe5bb6bb 954%files -n bash-completion-subversion
101e74de 955%defattr(644,root,root,755)
1326bb99 956/etc/bash_completion.d/%{name}
536b3fd3 957
f37da0a1
ER
958%endif # net_client_only
959
c3746b64 960%if %{with java}
1cc7453a 961%files -n java-subversion
962%defattr(644,root,root,755)
b445847c
JB
963%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.*
964%attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0
965%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so
1cc7453a 966%{_javadir}/svn-javahl.jar
967%endif
968
0905b458 969%if %{with python}
fa3ff1b2 970%files -n python-subversion
f4e6a380 971%defattr(644,root,root,755)
693a6ddf 972%doc tools/backup/*.py
b445847c
JB
973%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.*
974%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0
975%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so
65318afa 976%dir %{py_sitedir}/libsvn
3c200272 977%attr(755,root,root) %{py_sitedir}/libsvn/_*.so
65318afa 978%{py_sitedir}/libsvn/*.py[co]
b445847c
JB
979%dir %{py_sitedir}/svn
980%{py_sitedir}/svn/*.py[co]
1326bb99 981%{_examplesdir}/python-%{name}-%{version}
a26edfbd 982%endif
137fcafd 983
5b21aa20 984%if %{with csvn}
137fcafd
AM
985%files -n python-csvn
986%defattr(644,root,root,755)
987%doc subversion/bindings/ctypes-python/{README,TODO}
988%doc subversion/bindings/ctypes-python/examples/*.py
989%dir %{py_sitescriptdir}/csvn
990%{py_sitescriptdir}/csvn/*.py[co]
991%dir %{py_sitescriptdir}/csvn/core
992%{py_sitescriptdir}/csvn/core/*.py[co]
993%dir %{py_sitescriptdir}/csvn/ext
994%{py_sitescriptdir}/csvn/ext/*.py[co]
3c200272 995%{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
0905b458 996%endif
f4e6a380 997
0905b458 998%if %{with perl}
b56474ff
AM
999%files -n perl-subversion
1000%defattr(644,root,root,755)
b445847c
JB
1001%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.*
1002%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0
1003%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so
b56474ff
AM
1004%{perl_vendorarch}/SVN
1005%dir %{perl_vendorarch}/auto/SVN
1006%dir %{perl_vendorarch}/auto/SVN/*
1007%attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
a70bbcf5 1008%{_mandir}/man3/SVN::*.3pm*
0905b458 1009%endif
b56474ff 1010
d46e45ba
AM
1011%if %{with ruby}
1012%files -n ruby-subversion
1013%defattr(644,root,root,755)
b445847c
JB
1014%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.*
1015%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0
1016%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so
dd30c674
ER
1017%dir %{ruby_vendorarchdir}/svn
1018%{ruby_vendorarchdir}/svn/*.rb
1019%dir %{ruby_vendorarchdir}/svn/ext
1020%attr(755,root,root) %{ruby_vendorarchdir}/svn/ext/*.so
916011ef 1021%{ruby_ridir}/Svn
d46e45ba
AM
1022%endif
1023
0905b458 1024%if %{with apache}
93b78127
AM
1025%files -n apache-mod_dav_svn
1026%defattr(644,root,root,755)
1af5e34d
ER
1027%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf
1028%attr(755,root,root) %{apachelibdir}/mod_dav_svn.so
65318afa
AF
1029
1030%files -n apache-mod_authz_svn
1031%defattr(644,root,root,755)
1032%doc subversion/mod_authz_svn/INSTALL
1af5e34d
ER
1033%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf
1034%attr(755,root,root) %{apachelibdir}/mod_authz_svn.so
53bea8b1
AM
1035
1036%files -n apache-mod_dontdothat_svn
1037%defattr(644,root,root,755)
1038%doc tools/server-side/mod_dontdothat/README
1039%attr(755,root,root) %{apachelibdir}/mod_dontdothat.so
536b3fd3 1040%endif
This page took 0.345121 seconds and 4 git commands to generate.