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