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