]> git.pld-linux.org Git - packages/subversion.git/blame - subversion.spec
- add csvn bcond for ctypes based Python bindings
[packages/subversion.git] / subversion.spec
CommitLineData
1f630180 1# TODO:
d46e45ba 2# - finish ruby
9688ba4c 3# - http://subversion.tigris.org/issues/show_bug.cgi?id=2753
1930bef0 4#
bab73684 5# Conditional build:
65c1d4bd 6%bcond_with net_client_only # build only net client
3fc01170 7%bcond_without neon # use serf instead of neon
298f7114 8%bcond_without swig # disable bindings generation with Swig
5b21aa20
ER
9%bcond_without python # build without Python bindings (broken)
10%bcond_without csvn # build Python csvn bindings
11%bcond_without perl # build without Perl bindings
12%bcond_without ruby # build without Ruby bindings
298f7114 13%bcond_without apache # build without Apache support (webdav, etc)
65c1d4bd
JB
14%bcond_without javahl # build without javahl support (Java high-level bindings)
15%bcond_without tests # don't perform "make check"
65f2befa 16%bcond_without kwallet # build without kde4 wallet support
5b21aa20 17%bcond_without kde # build without kde4 support (alias for kwallet)
bfb248d0 18%bcond_without gnome # build without gnome keyring support
298f7114 19%bcond_without db # disable Subversion Berkeley DB based filesystem library
12c96b58 20
298f7114
ER
21%if %{with net_client_only}
22%undefine with_apache
23%undefine with_db
24%undefine with_swig
25%undefine with_javahl
26%endif
27
28%if %{without swig}
29%undefine with_perl
30%undefine with_python
31%undefine with_ruby
32%endif
12c96b58 33
d9d66e02 34%if %{without kde}
3c200272
JB
35%undefine with_kwallet
36%endif
298f7114
ER
37
38%if %{without python} && %{without perl} && %{without ruby}
39%define without_swig 1
40%endif
41
42%define apxs /usr/sbin/apxs
43%define pdir SVN
44%define pnam _Core
45
04129f48 46%if %{with neon}
a510fada 47%define webdavlib neon
04129f48
AG
48%else
49%define webdavlib serf
a510fada 50%endif
298f7114 51%{!?with_perl:%include /usr/lib/rpm/macros.perl}
67cb9518 52Summary: A Concurrent Versioning system similar to but better than CVS
abe3c421
ER
53Summary(pl.UTF-8): System kontroli wersji podobny, ale lepszy, niż CVS
54Summary(pt_BR.UTF-8): Sistema de versionamento concorrente
93b78127 55Name: subversion
5c59669a 56Version: 1.6.16
84e0d0fb 57Release: 1
6f88d80e 58License: Apache/BSD-like
93b78127 59Group: Development/Version Control
a5c00029 60Source0: http://subversion.tigris.org/downloads/%{name}-%{version}.tar.bz2
5c59669a 61# Source0-md5: 32f25a6724559fe8691d1f57a63f636e
93b78127 62Source1: %{name}-dav_svn.conf
65318afa 63Source2: %{name}-authz_svn.conf
b56474ff
AM
64Source3: %{name}-svnserve.init
65Source4: %{name}-svnserve.sysconfig
a510fada
AM
66# current subversion tarball has correct *.swg files
67# but after regeneration these are broken again, so
68# we still need this script
f313e9a9 69Source5: %{name}-convert-typemaps-to-ifdef.py
ed6210a2 70Patch0: %{name}-home_etc.patch
d46e45ba 71Patch1: %{name}-DESTDIR.patch
00664663 72Patch2: %{name}-ruby-datadir-path.patch
1cfe7af2 73Patch3: %{name}-tests.patch
dc8fcc41 74URL: http://subversion.apache.org/
f2a757d6 75%{?with_apache:BuildRequires: apache-devel >= 2.2.0-8}
1cfe7af2 76BuildRequires: autoconf
7b27380f 77BuildRequires: automake
3817faf5 78BuildRequires: db-devel >= 4.1.25
1cfe7af2 79BuildRequires: libtool
58f4b627 80BuildRequires: rpmbuild(macros) >= 1.583
0905b458 81%if %{with perl}
522a69b4 82BuildRequires: perl-devel >= 1:5.8.0
83BuildRequires: rpm-perlprov >= 4.1-13
15f9818d 84BuildRequires: swig-perl >= 1.3.24
536b3fd3 85%endif
5b21aa20 86%if %{with csvn}
6ac3574b 87BuildRequires: python-ctypesgen
5b21aa20
ER
88%endif
89%if %{with python}
90BuildRequires: python-devel >= 1:2.4
6ac3574b
AM
91BuildRequires: swig-python >= 1.3.24
92%endif
93%if %{with ruby}
94BuildRequires: ruby-devel
5f328a6e 95BuildRequires: ruby-rubygems
6ac3574b
AM
96BuildRequires: swig-ruby >= 1.3.24
97%endif
af0d490b 98%if %{with javahl}
20c5f543 99BuildRequires: jdk
af0d490b 100%endif
6ac3574b 101BuildRequires: cyrus-sasl-devel
16429189 102BuildRequires: apr-devel >= 1:1.0.0
a6ecf312 103BuildRequires: apr-util-devel >= 1:1.2.8-3
b0a7a5b2 104BuildRequires: autoconf >= 2.59
79d8c53c 105BuildRequires: bison
93b78127 106BuildRequires: expat-devel
86ea8fde 107BuildRequires: gettext-devel
65f2befa 108%{?with_kwallet:BuildRequires: kde4-kdelibs-devel}
5f328a6e 109%{?with_gnome:BuildRequires: libgnome-keyring-devel}
f4e6a380 110BuildRequires: libtool >= 1.4-9
54271075 111BuildRequires: pkgconfig
c01720ea 112BuildRequires: rpm-pythonprov
a562165a 113BuildRequires: sed >= 4.0
c26d84c4 114BuildRequires: sqlite3-devel >= 3.6.11
a562165a
JB
115BuildRequires: texinfo
116BuildRequires: which
117%if %{with neon}
bd3c99a8 118BuildRequires: neon-devel >= 0.26.0
a562165a
JB
119%else
120BuildRequires: serf-devel
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
58f4b627
JR
130%define skip_post_check_so libsvn_swig_py-1.so.* libsvn_swig_perl-1.so.*
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
04129f48 178%{?with_neon:Requires: neon >= 0.26.0}
53855fbf 179Obsoletes: libsubversion0
f4e6a380
AM
180
181%description libs
182Subversion libraries and modules.
183
aa59005f
JR
184%description libs -l pl.UTF-8
185Biblioteka subversion oraz ładowalne moduły.
f4e6a380 186
93b78127
AM
187%package devel
188Summary: Header files and develpment documentation for subversion
abe3c421
ER
189Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion
190Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion
93b78127 191Group: Development/Libraries
9cb7e099 192Requires: %{name}-libs = %{version}-%{release}
c5b1d686 193Requires: apr-util-devel >= 1:1.0.0
04129f48 194%{?with_neon:Requires: neon-devel >= 0.26.0}
12cf252c 195Obsoletes: libsubversion0-devel
93b78127
AM
196
197%description devel
198Header files and develpment documentation for subversion.
199
aa59005f
JR
200%description devel -l pl.UTF-8
201Pliki nagłówkowe i dokumetacja do subversion.
93b78127 202
aa59005f
JR
203%description devel -l pt_BR.UTF-8
204Este pacote provê os arquivos necessários para desenvolvedores
92066deb 205interagirem com o Subversion.
206
93b78127
AM
207%package static
208Summary: Static subversion library
abe3c421
ER
209Summary(pl.UTF-8): Biblioteka statyczna subversion
210Summary(pt_BR.UTF-8): Sistema de versionamento concorrente
93b78127
AM
211Group: Development/Libraries
212Requires: %{name}-devel = %{version}
12cf252c 213Obsoletes: libsubversion0-static-devel
93b78127
AM
214
215%description static
216Static subversion library.
217
aa59005f 218%description static -l pl.UTF-8
93b78127
AM
219Biblioteka statyczna subversion.
220
aa59005f
JR
221%description static -l pt_BR.UTF-8
222Este pacote provê um cliente estático do subversion.
92066deb 223
b56474ff
AM
224%package svnserve
225Summary: Subversion svnserve
abe3c421 226Summary(pl.UTF-8): Subversion svnserve
b56474ff 227Group: Networking/Daemons
3817faf5 228Requires(post,preun): /sbin/chkconfig
93f1d402 229Requires(postun): /usr/sbin/groupdel
230Requires(postun): /usr/sbin/userdel
231Requires(pre): /bin/id
232Requires(pre): /usr/bin/getgid
233Requires(pre): /usr/lib/rpm/user_group.sh
234Requires(pre): /usr/sbin/groupadd
235Requires(pre): /usr/sbin/useradd
236Requires(pre): /usr/sbin/usermod
9cb7e099 237Requires: %{name} = %{version}-%{release}
7b27380f 238Requires: rc-scripts
a1bac09d
239Provides: group(svn)
240Provides: user(svn)
b56474ff
AM
241
242%description svnserve
243Subversion svnserve server.
244
aa59005f 245%description svnserve -l pl.UTF-8
b56474ff
AM
246Serwer subversion svnserve.
247
4bbdbbf8
AM
248%package tools
249Summary: Subversion tools and scripts
abe3c421
ER
250Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion
251Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion
4bbdbbf8 252Group: Applications
4bbdbbf8 253%pyrequires_eq python
7b27380f 254Requires: %{name} = %{version}-%{release}
4bbdbbf8
AM
255Requires: python-subversion = %{version}
256
257%description tools
258Subversion tools and scripts.
259
aa59005f
JR
260%description tools -l pl.UTF-8
261Narzędzia oraz skrypty dla subversion.
4bbdbbf8 262
fe5bb6bb 263%package -n bash-completion-subversion
264Summary: bash completion for subversion
abe3c421 265Summary(pl.UTF-8): Dopełnienia basha dla subversion
fe5bb6bb 266Group: Applications/Shells
e30588c4 267Requires: %{name} = %{version}-%{release}
53855fbf 268Requires: bash-completion
e30588c4 269Conflicts: %{name}-tools <= 1.1.0-0.rc6.1
fe5bb6bb 270
271%description -n bash-completion-subversion
272Bash completion for subversion.
273
aa59005f
JR
274%description -n bash-completion-subversion -l pl.UTF-8
275Dopełnienia basha dla subversion.
fe5bb6bb 276
1cc7453a 277%package -n java-subversion
65c1d4bd
JB
278Summary: Subversion Java bindings
279Summary(pl.UTF-8): Dowiązania do Subversion dla Javy
1cc7453a 280Group: Development/Languages/Java
281Requires: %{name}-libs = %{version}-%{release}
282
283%description -n java-subversion
284This is a set of Java classes which provide the functionality of
285subversion-libs, the Subversion libraries. It is useful if you want
286to, for example, write a Java class that manipulates a Subversion
287repository or working copy. See the 'subversion' package for more
288information.
289
65c1d4bd
JB
290%description -n java-subversion -l pl.UTF-8
291Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność
292subversion-libs, czyli bibliotek Subversion. Jest przydatny przy
d46e45ba
AM
293pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię
294roboczą. Więcej informacji w pakiecie subversion.
65c1d4bd 295
fa3ff1b2 296%package -n python-subversion
65c1d4bd
JB
297Summary: Subversion Python bindings
298Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona
299Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion
f4e6a380 300Group: Development/Languages/Python
f4e6a380 301%pyrequires_eq python
9cb7e099 302Requires: %{name}-libs = %{version}-%{release}
53855fbf 303Obsoletes: subversion-python
f4e6a380 304
fa3ff1b2 305%description -n python-subversion
65c1d4bd 306Subversion Python bindings.
f4e6a380 307
aa59005f 308%description -n python-subversion -l pl.UTF-8
65c1d4bd 309Dowiązania do Subversion dla Pythona.
f4e6a380 310
aa59005f 311%description -n python-subversion -l pt_BR.UTF-8
65c1d4bd 312Módulos Python para acessar os recursos do Subversion.
92066deb 313
137fcafd
AM
314%package -n python-csvn
315Summary: CTypes Subversion Python bindings
316Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona
317Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion
318Group: Development/Languages/Python
319%pyrequires_eq python
320Requires: %{name}-libs = %{version}-%{release}
321
322%description -n python-csvn
323Subversion CTypes Python bindings.
324
325%description -n python-csvn -l pl.UTF-8
326Dowiązania do Subversion dla Pythona używające CTypes.
327
328%description -n python-csvn -l pt_BR.UTF-8
329Módulos Python para acessar os recursos do Subversion.
330
b56474ff 331%package -n perl-subversion
65c1d4bd
JB
332Summary: Subversion Perl bindings
333Summary(pl.UTF-8): Dowiązania do Subversion dla Perla
334Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do Subversion
b56474ff 335Group: Development/Languages/Perl
9cb7e099 336Requires: %{name}-libs = %{version}-%{release}
53855fbf 337Obsoletes: subversion-perl
b56474ff
AM
338
339%description -n perl-subversion
65c1d4bd 340Subversion Perl bindings.
b56474ff 341
aa59005f 342%description -n perl-subversion -l pl.UTF-8
65c1d4bd 343Dowiązania do Subversion dla Perla.
b56474ff 344
aa59005f 345%description -n perl-subversion -l pt_BR.UTF-8
65c1d4bd 346Módulos Perl para acessar os recursos do Subversion.
b56474ff 347
d46e45ba
AM
348%package -n ruby-subversion
349Summary: Subversion Ruby bindings
d2bf70bf 350Summary(pl.UTF-8): Dowiązania do Subversion dla języka Ruby
d46e45ba
AM
351Summary(pt_BR.UTF-8): Módulos Ruby para acessar os recursos do Subversion
352Group: Development/Languages
353Requires: %{name}-libs = %{version}-%{release}
354Obsoletes: subversion-ruby
355
356%description -n ruby-subversion
357Subversion Ruby bindings.
358
359%description -n ruby-subversion -l pl.UTF-8
d2bf70bf 360Dowiązania do Subversion dla języka Ruby.
d46e45ba
AM
361
362%description -n ruby-subversion -l pt_BR.UTF-8
363Módulos Ruby para acessar os recursos do Subversion.
364
93b78127
AM
365%package -n apache-mod_dav_svn
366Summary: Apache module: Subversion Server
abe3c421 367Summary(pl.UTF-8): Moduł apache: Serwer Subversion
93b78127 368Group: Networking/Daemons
7b27380f 369Requires: %{name} = %{version}-%{release}
53855fbf 370Requires: apache(modules-api) = %apache_modules_api
7887b1ac 371Requires: apache-mod_dav
93b78127
AM
372
373%description -n apache-mod_dav_svn
374Apache module: Subversion Server.
375
aa59005f
JR
376%description -n apache-mod_dav_svn -l pl.UTF-8
377Moduł apache: Serwer Subversion.
93b78127 378
65318afa
AF
379%package -n apache-mod_authz_svn
380Summary: Apache module: Subversion Server - path-based authorization
abe3c421 381Summary(pl.UTF-8): Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion
65318afa 382Group: Networking/Daemons
53855fbf 383Requires: apache(modules-api) = %apache_modules_api
9cb7e099 384Requires: apache-mod_dav_svn = %{version}-%{release}
65318afa
AF
385
386%description -n apache-mod_authz_svn
387Apache module: Subversion Server - path-based authorization.
388
aa59005f
JR
389%description -n apache-mod_authz_svn -l pl.UTF-8
390Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion.
e23909be 391
1429fa1c 392%package -n gnome-keyring-subversion
fe242fac
JB
393Summary: GNOME Keyring authentication provider for Subversion
394Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Subversion
1429fa1c
AM
395Group: X11/Applications
396
397%description -n gnome-keyring-subversion
fe242fac
JB
398Authentication provider module for Subversion which allows SVN client
399to authenticate using GNOME Keyring.
1429fa1c
AM
400
401%description -n gnome-keyring-subversion -l pl.UTF-8
fe242fac
JB
402Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
403uwierzytelniać się przy użyciu mechanizmu GNOME Keyring.
1429fa1c
AM
404
405%package -n kde4-kwallet-subversion
fe242fac
JB
406Summary: KDE Wallet authentication provider for Subversion
407Summary(pl.UTF-8): Moduł uwierzytelniający dla Subversion wykorzystujący Portfel KDE
1429fa1c
AM
408Group: X11/Applications
409
410%description -n kde4-kwallet-subversion
fe242fac
JB
411Authentication provider module for Subversion which allows SVN client
412to authenticate using KDE Wallet.
1429fa1c
AM
413
414%description -n kde4-kwallet-subversion -l pl.UTF-8
fe242fac
JB
415Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
416uwierzytelniać się przy użyciu Portfela KDE.
1429fa1c 417
93b78127 418%prep
a5c00029 419%setup -q
ed6210a2 420%patch0 -p0
d4bccc60 421%patch1 -p1
00664663 422%patch2 -p0
1cfe7af2 423%patch3 -p1
a510fada
AM
424
425sed -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4
426
427# serf.m4 macro is broken and ignores --without serf
244bdb04 428%{?with_neon:sed -i -e 's#serf_found="yes"#serf_found="no"#g' build/ac-macros/serf.m4}
027f8ebe 429
93b78127 430%build
1cfe7af2
JB
431# disabled regeneration - subversion 1.6.13 is not ready for swig 2.0.x
432#%{__rm} subversion/bindings/swig/proxy/*.swg
433#cd subversion/bindings/swig && python "%{SOURCE5}" && cd ../../..
67cb9518 434chmod +x ./autogen.sh && ./autogen.sh
1cfe7af2 435%{__libtoolize}
93b78127 436%configure \
5dfeafd7 437 --with-editor=vi \
12ae68c1 438 --with-zlib=%{_libdir} \
fa6fa2cf 439 --disable-runtime-module-search \
86ee97d3 440 --disable-mod-activation \
298f7114 441%if %{with db}
ad5c551e 442 --with-berkeley-db="db.h:%{_includedir}:%{_libdir}:db" \
298f7114
ER
443%else
444 --without-berkeley-db \
445%endif
0905b458 446%if %{with apache}
536b3fd3 447 --with-apxs=%{_sbindir}/apxs \
0905b458 448%else
449 --without-apache \
450 --without-apxs \
0905b458 451%endif
298f7114 452%if %{without swig}
0905b458 453 --without-swig \
5c072a77
ER
454%endif
455%if %{without ruby}
456 ac_cv_path_RUBY=none \
0905b458 457%endif
5b21aa20 458 %{?with_csvn:--with-ctypesgen=%{_bindir}/ctypesgen.py} \
1cc7453a 459 --%{?with_javahl:en}%{!?with_javahl:dis}able-javahl \
1cc7453a 460 --with-jdk="%{java_home}" \
cf2589d0 461 --without-jikes \
04129f48 462%if %{with neon}
e3ad24ea 463 --without-serf \
e30588c4 464 --with-neon=%{_prefix} \
78f330c4 465 --disable-neon-version-check \
04129f48
AG
466%else
467 --with-serf=%{_prefix} \
468 --without-neon \
e3ad24ea 469%endif
16429189 470 --with-apr=%{_bindir}/apr-1-config \
1429fa1c 471 --with-apr-util=%{_bindir}/apu-1-config \
65f2befa 472%if %{with kwallet}
1429fa1c 473 --with-kwallet \
65f2befa 474%endif
bfb248d0 475%if %{with gnome}
1429fa1c 476 --with-gnome-keyring
bfb248d0 477%endif
536b3fd3 478
1f630180 479%{__make} -j1
536b3fd3 480
b56474ff 481# python
0905b458 482%if %{with python}
5b21aa20 483%if %{with csvn}
137fcafd
AM
484# ctypes bindings
485%{__make} ctypes-python
5b21aa20 486%endif
137fcafd 487# swig bindings
86a4919e 488%{__make} swig-py \
65318afa
AF
489 swig_pydir=%{py_sitedir}/libsvn \
490 swig_pydir_extra=%{py_sitedir}/svn
0905b458 491%endif
b56474ff 492# perl
0905b458 493%if %{with perl}
390bb8f4 494%{__make} -j1 swig-pl-lib
bf539998
AM
495odir=$(pwd)
496cd subversion/bindings/swig/perl/native
497%{__perl} Makefile.PL INSTALLDIRS=vendor
b445847c 498%{__make} -j1
bf539998 499cd $odir
536b3fd3 500%endif
1cc7453a 501%if %{with javahl}
b445847c 502%{__make} -j1 javahl \
1cc7453a 503 javahl_javadir="%{_javadir}"
504%endif
d46e45ba
AM
505# ruby
506%if %{with ruby}
507%{__make} swig-rb
508%endif
12ae68c1
AM
509
510%if %{with tests}
511%{__make} check
d46e45ba 512%if %{with python}
5b21aa20 513%if %{with csvn}
137fcafd 514%{__make} check-ctypes-python
5b21aa20 515%endif
d46e45ba
AM
516%{__make} check-swig-py
517%endif
518%if %{with perl}
519%{__make} check-swig-pl
520%endif
521%if %{with ruby}
6e3aae2d
ER
522# disabled, see https://bugs.launchpad.net/pld-linux/+bug/734340
523#%{__make} check-swig-rb
d46e45ba 524%endif
0905b458 525%endif
93b78127
AM
526
527%install
528rm -rf $RPM_BUILD_ROOT
1326bb99 529install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \
1af5e34d 530 $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \
afb35189 531 $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \
d9d66e02 532 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
a54611db 533 $RPM_BUILD_ROOT/home/services/subversion{,/repos}
93b78127 534
1f630180 535%{__make} install -j1 \
1cc7453a 536%if %{with javahl}
537 install-javahl \
538 javahl_javadir="%{_javadir}" \
539%endif
d46e45ba 540%if %{with python}
0905b458 541 install-swig-py \
5b21aa20 542%if %{with csvn}
137fcafd 543 install-ctypes-python \
d46e45ba 544%endif
5b21aa20 545%endif
d46e45ba
AM
546%if %{with ruby}
547 install-swig-rb install-swig-rb-doc \
0905b458 548%endif
f2a757d6 549 APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
86a4919e 550 DESTDIR=$RPM_BUILD_ROOT \
65318afa
AF
551 swig_pydir=%{py_sitedir}/libsvn \
552 swig_pydir_extra=%{py_sitedir}/svn
93b78127 553
298f7114 554%if %{with perl}
bf539998
AM
555%{__make} install-swig-pl-lib \
556 DESTDIR=$RPM_BUILD_ROOT
b445847c 557%{__make} -C subversion/bindings/swig/perl/native install \
bf539998
AM
558 DESTDIR=$RPM_BUILD_ROOT \
559 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
560 LIBDIR=$RPM_BUILD_ROOT%{_libdir}
bf539998
AM
561%endif
562
0905b458 563%if %{with apache}
d9d66e02
ER
564cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf
565cp -p %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf
566cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve
567install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve
0905b458 568%endif
93b78127 569
d9d66e02
ER
570%if %{without net_client_only}
571install -p tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup
298f7114 572%endif
0905b458 573%if %{with python}
f4e6a380
AM
574%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
575%py_comp $RPM_BUILD_ROOT%{py_sitedir}
3c200272
JB
576%py_postclean
577%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la
1326bb99 578install tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
536b3fd3 579%endif
f4e6a380 580
d9d66e02
ER
581cp -p tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name}
582cp -p tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1326bb99 583
fe242fac 584%{?with_javahl:%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a}}
298f7114 585%if %{with swig}
fe242fac 586%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a}
5c072a77 587%if %{with ruby}
fe242fac 588%{__rm} $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*/svn/ext/*.la
5f328a6e 589%endif
5c072a77 590%endif
fe242fac
JB
591%if %{with gnome} || %{with kwallet}
592# dlopened by soname (libsvn_auth_*-1.so.0)
593%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la,a}
594%endif
205a3ddc 595
fe242fac 596%find_lang %{name}
a6ecf312 597
e23909be
JB
598%clean
599rm -rf $RPM_BUILD_ROOT
600
a1bac09d
601%pre svnserve
602%groupadd -g 86 svn
603%useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn
604
d2bf70bf
JB
605%post libs -p /sbin/ldconfig
606%postun libs -p /sbin/ldconfig
607
608%post devel -p /sbin/postshell
6f99c3bd 609-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 610
d2bf70bf 611%postun devel -p /sbin/postshell
6f99c3bd 612-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 613
12c96b58
ER
614%post -n java-subversion -p /sbin/ldconfig
615%postun -n java-subversion -p /sbin/ldconfig
616
d2bf70bf
JB
617%post -n perl-subversion -p /sbin/ldconfig
618%postun -n perl-subversion -p /sbin/ldconfig
619
620%post -n python-subversion -p /sbin/ldconfig
621%postun -n python-subversion -p /sbin/ldconfig
f4e6a380 622
12c96b58
ER
623%post -n ruby-subversion -p /sbin/ldconfig
624%postun -n ruby-subversion -p /sbin/ldconfig
625
626%post -n gnome-keyring-subversion -p /sbin/ldconfig
627%postun -n gnome-keyring-subversion -p /sbin/ldconfig
628
629%post -n kde4-kwallet-subversion -p /sbin/ldconfig
630%postun -n kde4-kwallet-subversion -p /sbin/ldconfig
631
b56474ff 632%post svnserve
e8d9186f
ER
633/sbin/chkconfig --add svnserve
634%service svnserve restart "svnserve daemon"
635
b56474ff
AM
636%preun svnserve
637if [ "$1" = "0" ]; then
e8d9186f
ER
638 %service svnserve stop
639 /sbin/chkconfig --del svnserve
b56474ff
AM
640fi
641
a1bac09d
642%postun svnserve
643if [ "$1" = "0" ]; then
12c96b58
ER
644 %userremove svn
645 %groupremove svn
a1bac09d
646fi
647
93b78127 648%post -n apache-mod_dav_svn
e8d9186f 649%service -q httpd restart
93b78127 650
ba425c92 651%postun -n apache-mod_dav_svn
93b78127 652if [ "$1" = "0" ]; then
e8d9186f 653 %service -q httpd restart
93b78127
AM
654fi
655
9688ba4c
JR
656%post -n apache-mod_authz_svn
657%service -q httpd restart
658
ba425c92 659%postun -n apache-mod_authz_svn
9688ba4c
JR
660if [ "$1" = "0" ]; then
661 %service -q httpd restart
662fi
663
93b78127
AM
664%files
665%defattr(644,root,root,755)
983a49f6 666%doc BUGS CHANGES COPYING INSTALL README
d37298dc 667%doc doc/*/*.html
4bbdbbf8
AM
668%doc tools/hook-scripts/*.{pl,py,example}
669%doc tools/hook-scripts/mailer/*.{py,example}
1326bb99 670%doc tools/xslt/*
b445847c
JB
671%attr(755,root,root) %{_bindir}/svn
672%attr(755,root,root) %{_bindir}/svnadmin
673%attr(755,root,root) %{_bindir}/svndumpfilter
674%attr(755,root,root) %{_bindir}/svnlook
675%attr(755,root,root) %{_bindir}/svnsync
676%attr(755,root,root) %{_bindir}/svnversion
677%{_mandir}/man1/svn.1*
678%{_mandir}/man1/svnadmin.1*
679%{_mandir}/man1/svndumpfilter.1*
680%{_mandir}/man1/svnlook.1*
681%{_mandir}/man1/svnsync.1*
682%{_mandir}/man1/svnversion.1*
f4e6a380 683
205a3ddc 684%files libs -f %{name}.lang
f4e6a380 685%defattr(644,root,root,755)
d9d66e02 686%dir %{_sysconfdir}/%{name}
b445847c
JB
687%attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.*
688%attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0
689%attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.*
690%attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0
691%attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.*
692%attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0
693%attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.*
694%attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0
5f328a6e 695%if %{without net_client_only}
b445847c
JB
696%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.*
697%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0
5f328a6e 698%endif
b445847c
JB
699%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.*
700%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0
701%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.*
702%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0
703%attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.*
704%attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0
705%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.*
706%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0
a510fada
AM
707%attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so.*.*.*
708%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_%{webdavlib}-1.so.0
b445847c
JB
709%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.*
710%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0
711%attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.*
712%attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0
713%attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.*
714%attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0
715%attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.*
716%attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0
93b78127
AM
717
718%files devel
719%defattr(644,root,root,755)
b445847c
JB
720%attr(755,root,root) %{_libdir}/libsvn_client-1.so
721%attr(755,root,root) %{_libdir}/libsvn_delta-1.so
722%attr(755,root,root) %{_libdir}/libsvn_diff-1.so
723%attr(755,root,root) %{_libdir}/libsvn_fs-1.so
5f328a6e 724%if %{without net_client_only}
b445847c 725%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so
5f328a6e 726%endif
b445847c
JB
727%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so
728%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so
729%attr(755,root,root) %{_libdir}/libsvn_ra-1.so
730%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so
a510fada 731%attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so
b445847c
JB
732%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so
733%attr(755,root,root) %{_libdir}/libsvn_repos-1.so
734%attr(755,root,root) %{_libdir}/libsvn_subr-1.so
735%attr(755,root,root) %{_libdir}/libsvn_wc-1.so
736%{_libdir}/libsvn_client-1.la
737%{_libdir}/libsvn_delta-1.la
738%{_libdir}/libsvn_diff-1.la
739%{_libdir}/libsvn_fs-1.la
5f328a6e 740%if %{without net_client_only}
b445847c 741%{_libdir}/libsvn_fs_base-1.la
5f328a6e 742%endif
b445847c
JB
743%{_libdir}/libsvn_fs_fs-1.la
744%{_libdir}/libsvn_fs_util-1.la
745%{_libdir}/libsvn_ra-1.la
746%{_libdir}/libsvn_ra_local-1.la
a510fada 747%{_libdir}/libsvn_ra_%{webdavlib}-1.la
b445847c
JB
748%{_libdir}/libsvn_ra_svn-1.la
749%{_libdir}/libsvn_repos-1.la
750%{_libdir}/libsvn_subr-1.la
751%{_libdir}/libsvn_wc-1.la
752%{_includedir}/%{name}-1
1326bb99 753%{_examplesdir}/%{name}-%{version}
93b78127
AM
754
755%files static
756%defattr(644,root,root,755)
b445847c
JB
757%{_libdir}/libsvn_client-1.a
758%{_libdir}/libsvn_delta-1.a
759%{_libdir}/libsvn_diff-1.a
760%{_libdir}/libsvn_fs-1.a
5f328a6e 761%if %{without net_client_only}
b445847c 762%{_libdir}/libsvn_fs_base-1.a
5f328a6e 763%endif
b445847c
JB
764%{_libdir}/libsvn_fs_fs-1.a
765%{_libdir}/libsvn_fs_util-1.a
766%{_libdir}/libsvn_ra-1.a
767%{_libdir}/libsvn_ra_local-1.a
a510fada 768%{_libdir}/libsvn_ra_%{webdavlib}-1.a
b445847c
JB
769%{_libdir}/libsvn_ra_svn-1.a
770%{_libdir}/libsvn_repos-1.a
771%{_libdir}/libsvn_subr-1.a
772%{_libdir}/libsvn_wc-1.a
93b78127 773
bfb248d0 774%if %{with gnome}
1429fa1c
AM
775%files -n gnome-keyring-subversion
776%defattr(644,root,root,755)
777%attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.*
778%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0
bfb248d0 779%endif
1429fa1c 780
65f2befa 781%if %{with kwallet}
1429fa1c
AM
782%files -n kde4-kwallet-subversion
783%defattr(644,root,root,755)
784%attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.*
785%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0
65f2befa 786%endif
1429fa1c 787
12c96b58 788%if %{without net_client_only}
b56474ff
AM
789%files svnserve
790%defattr(644,root,root,755)
791%attr(755,root,root) %{_bindir}/svnserve
b445847c
JB
792%{_mandir}/man5/svnserve.conf.5*
793%{_mandir}/man8/svnserve.8*
a1bac09d
794%dir %attr(750,svn,svn) /home/services/subversion
795%dir %attr(750,svn,svn) /home/services/subversion/repos
0905b458 796%if %{with apache}
b56474ff 797%attr(754,root,root) /etc/rc.d/init.d/svnserve
86ea8fde 798%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve
0905b458 799%endif
b56474ff 800
4bbdbbf8
AM
801%files tools
802%defattr(644,root,root,755)
1326bb99 803%attr(755,root,root) %{_bindir}/svn-hot-backup
fe5bb6bb 804
805%files -n bash-completion-subversion
101e74de 806%defattr(644,root,root,755)
1326bb99 807/etc/bash_completion.d/%{name}
536b3fd3 808
1cc7453a 809%if %{with javahl}
810%files -n java-subversion
811%defattr(644,root,root,755)
b445847c
JB
812%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.*
813%attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0
814%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so
1cc7453a 815%{_javadir}/svn-javahl.jar
816%endif
817
0905b458 818%if %{with python}
fa3ff1b2 819%files -n python-subversion
f4e6a380 820%defattr(644,root,root,755)
4bbdbbf8 821%doc tools/backup/*.py tools/examples/*.py
b445847c
JB
822%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.*
823%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0
824%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so
65318afa 825%dir %{py_sitedir}/libsvn
3c200272 826%attr(755,root,root) %{py_sitedir}/libsvn/_*.so
65318afa 827%{py_sitedir}/libsvn/*.py[co]
b445847c
JB
828%dir %{py_sitedir}/svn
829%{py_sitedir}/svn/*.py[co]
1326bb99 830%{_examplesdir}/python-%{name}-%{version}
137fcafd 831
5b21aa20 832%if %{with csvn}
137fcafd
AM
833%files -n python-csvn
834%defattr(644,root,root,755)
835%doc subversion/bindings/ctypes-python/{README,TODO}
836%doc subversion/bindings/ctypes-python/examples/*.py
837%dir %{py_sitescriptdir}/csvn
838%{py_sitescriptdir}/csvn/*.py[co]
839%dir %{py_sitescriptdir}/csvn/core
840%{py_sitescriptdir}/csvn/core/*.py[co]
841%dir %{py_sitescriptdir}/csvn/ext
842%{py_sitescriptdir}/csvn/ext/*.py[co]
3c200272 843%{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
0905b458 844%endif
5b21aa20 845%endif
f4e6a380 846
0905b458 847%if %{with perl}
b56474ff
AM
848%files -n perl-subversion
849%defattr(644,root,root,755)
b445847c
JB
850%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.*
851%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0
852%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so
b56474ff
AM
853%{perl_vendorarch}/SVN
854%dir %{perl_vendorarch}/auto/SVN
855%dir %{perl_vendorarch}/auto/SVN/*
856%attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
857%{perl_vendorarch}/auto/SVN/*/*.bs
858%{_mandir}/man3/*.3pm*
0905b458 859%endif
b56474ff 860
d46e45ba
AM
861%if %{with ruby}
862%files -n ruby-subversion
863%defattr(644,root,root,755)
b445847c
JB
864%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.*
865%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0
866%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so
916011ef
JR
867%dir %{ruby_sitelibdir}/svn
868%{ruby_sitelibdir}/svn/*.rb
869%dir %{ruby_sitearchdir}/svn
870%dir %{ruby_sitearchdir}/svn/ext
e2c6dc67 871%attr(755,root,root) %{ruby_sitearchdir}/svn/ext/*.so
916011ef 872%{ruby_ridir}/Svn
d46e45ba
AM
873%endif
874
0905b458 875%if %{with apache}
93b78127
AM
876%files -n apache-mod_dav_svn
877%defattr(644,root,root,755)
1af5e34d
ER
878%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf
879%attr(755,root,root) %{apachelibdir}/mod_dav_svn.so
65318afa
AF
880
881%files -n apache-mod_authz_svn
882%defattr(644,root,root,755)
883%doc subversion/mod_authz_svn/INSTALL
1af5e34d
ER
884%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf
885%attr(755,root,root) %{apachelibdir}/mod_authz_svn.so
536b3fd3 886%endif
7b27380f
ER
887
888%endif # net_client_only
This page took 0.183926 seconds and 4 git commands to generate.