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