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