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