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