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