]> git.pld-linux.org Git - packages/subversion.git/blame - subversion.spec
- BR: ruby-rubygems
[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
3c200272
JB
25%if !%{with kde}
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
84e0d0fb 37Version: 1.6.15
38Release: 1
6f88d80e 39License: Apache/BSD-like
93b78127 40Group: Development/Version Control
a5c00029 41Source0: http://subversion.tigris.org/downloads/%{name}-%{version}.tar.bz2
84e0d0fb 42# Source0-md5: 113fca1d9e4aa389d7dc2b210010fa69
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
73ab938a 437%if !%{with python} && !%{with perl} && !%{with 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
cf353d53 464%if !%{with 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}} \
a54611db 512 $RPM_BUILD_ROOT/home/services/subversion{,/repos}
93b78127 513
1f630180 514%{__make} install -j1 \
1cc7453a 515%if %{with javahl}
516 install-javahl \
517 javahl_javadir="%{_javadir}" \
518%endif
d46e45ba
AM
519%if !%{with net_client_only}
520%if %{with python}
0905b458 521 install-swig-py \
137fcafd 522 install-ctypes-python \
d46e45ba
AM
523%endif
524%if %{with ruby}
525 install-swig-rb install-swig-rb-doc \
526%endif
0905b458 527%endif
f2a757d6 528 APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
86a4919e 529 DESTDIR=$RPM_BUILD_ROOT \
65318afa
AF
530 swig_pydir=%{py_sitedir}/libsvn \
531 swig_pydir_extra=%{py_sitedir}/svn
93b78127 532
cf353d53 533%if !%{with net_client_only} && %{with perl}
bf539998
AM
534%{__make} install-swig-pl-lib \
535 DESTDIR=$RPM_BUILD_ROOT
b445847c 536%{__make} -C subversion/bindings/swig/perl/native install \
bf539998
AM
537 DESTDIR=$RPM_BUILD_ROOT \
538 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
539 LIBDIR=$RPM_BUILD_ROOT%{_libdir}
bf539998
AM
540%endif
541
0905b458 542%if %{with apache}
1af5e34d
ER
543install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf
544install %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf
b56474ff
AM
545install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve
546install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve
0905b458 547%endif
93b78127 548
cf353d53 549%if !%{with net_client_only}
1326bb99 550install tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup
0905b458 551%if %{with python}
f4e6a380
AM
552%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
553%py_comp $RPM_BUILD_ROOT%{py_sitedir}
3c200272
JB
554%py_postclean
555%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la
1326bb99 556install tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
536b3fd3 557%endif
0905b458 558%endif
f4e6a380 559
1326bb99
JK
560install tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name}
561install tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1326bb99 562
fe242fac 563%{?with_javahl:%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a}}
5f328a6e 564%if %{without net_client_only}
fe242fac
JB
565%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a}
566%{__rm} $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*/svn/ext/*.la
5f328a6e 567%endif
fe242fac
JB
568%if %{with gnome} || %{with kwallet}
569# dlopened by soname (libsvn_auth_*-1.so.0)
570%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la,a}
571%endif
205a3ddc 572
fe242fac 573%find_lang %{name}
a6ecf312 574
e23909be
JB
575%clean
576rm -rf $RPM_BUILD_ROOT
577
a1bac09d
578%pre svnserve
579%groupadd -g 86 svn
580%useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn
581
d2bf70bf
JB
582%post libs -p /sbin/ldconfig
583%postun libs -p /sbin/ldconfig
584
585%post devel -p /sbin/postshell
6f99c3bd 586-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 587
d2bf70bf 588%postun devel -p /sbin/postshell
6f99c3bd 589-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 590
12c96b58
ER
591%post -n java-subversion -p /sbin/ldconfig
592%postun -n java-subversion -p /sbin/ldconfig
593
d2bf70bf
JB
594%post -n perl-subversion -p /sbin/ldconfig
595%postun -n perl-subversion -p /sbin/ldconfig
596
597%post -n python-subversion -p /sbin/ldconfig
598%postun -n python-subversion -p /sbin/ldconfig
f4e6a380 599
12c96b58
ER
600%post -n ruby-subversion -p /sbin/ldconfig
601%postun -n ruby-subversion -p /sbin/ldconfig
602
603%post -n gnome-keyring-subversion -p /sbin/ldconfig
604%postun -n gnome-keyring-subversion -p /sbin/ldconfig
605
606%post -n kde4-kwallet-subversion -p /sbin/ldconfig
607%postun -n kde4-kwallet-subversion -p /sbin/ldconfig
608
b56474ff 609%post svnserve
e8d9186f
ER
610/sbin/chkconfig --add svnserve
611%service svnserve restart "svnserve daemon"
612
b56474ff
AM
613%preun svnserve
614if [ "$1" = "0" ]; then
e8d9186f
ER
615 %service svnserve stop
616 /sbin/chkconfig --del svnserve
b56474ff
AM
617fi
618
a1bac09d
619%postun svnserve
620if [ "$1" = "0" ]; then
12c96b58
ER
621 %userremove svn
622 %groupremove svn
a1bac09d
623fi
624
93b78127 625%post -n apache-mod_dav_svn
e8d9186f 626%service -q httpd restart
93b78127 627
ba425c92 628%postun -n apache-mod_dav_svn
93b78127 629if [ "$1" = "0" ]; then
e8d9186f 630 %service -q httpd restart
93b78127
AM
631fi
632
9688ba4c
JR
633%post -n apache-mod_authz_svn
634%service -q httpd restart
635
ba425c92 636%postun -n apache-mod_authz_svn
9688ba4c
JR
637if [ "$1" = "0" ]; then
638 %service -q httpd restart
639fi
640
93b78127
AM
641%files
642%defattr(644,root,root,755)
983a49f6 643%doc BUGS CHANGES COPYING INSTALL README
d37298dc 644%doc doc/*/*.html
4bbdbbf8
AM
645%doc tools/hook-scripts/*.{pl,py,example}
646%doc tools/hook-scripts/mailer/*.{py,example}
1326bb99 647%doc tools/xslt/*
b445847c
JB
648%attr(755,root,root) %{_bindir}/svn
649%attr(755,root,root) %{_bindir}/svnadmin
650%attr(755,root,root) %{_bindir}/svndumpfilter
651%attr(755,root,root) %{_bindir}/svnlook
652%attr(755,root,root) %{_bindir}/svnsync
653%attr(755,root,root) %{_bindir}/svnversion
654%{_mandir}/man1/svn.1*
655%{_mandir}/man1/svnadmin.1*
656%{_mandir}/man1/svndumpfilter.1*
657%{_mandir}/man1/svnlook.1*
658%{_mandir}/man1/svnsync.1*
659%{_mandir}/man1/svnversion.1*
f4e6a380 660
205a3ddc 661%files libs -f %{name}.lang
f4e6a380 662%defattr(644,root,root,755)
b445847c
JB
663%attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.*
664%attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0
665%attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.*
666%attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0
667%attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.*
668%attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0
669%attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.*
670%attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0
5f328a6e 671%if %{without net_client_only}
b445847c
JB
672%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.*
673%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0
5f328a6e 674%endif
b445847c
JB
675%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.*
676%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0
677%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.*
678%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0
679%attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.*
680%attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0
681%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.*
682%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0
a510fada
AM
683%attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so.*.*.*
684%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_%{webdavlib}-1.so.0
b445847c
JB
685%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.*
686%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0
687%attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.*
688%attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0
689%attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.*
690%attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0
691%attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.*
692%attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0
93b78127
AM
693
694%files devel
695%defattr(644,root,root,755)
b445847c
JB
696%attr(755,root,root) %{_libdir}/libsvn_client-1.so
697%attr(755,root,root) %{_libdir}/libsvn_delta-1.so
698%attr(755,root,root) %{_libdir}/libsvn_diff-1.so
699%attr(755,root,root) %{_libdir}/libsvn_fs-1.so
5f328a6e 700%if %{without net_client_only}
b445847c 701%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so
5f328a6e 702%endif
b445847c
JB
703%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so
704%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so
705%attr(755,root,root) %{_libdir}/libsvn_ra-1.so
706%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so
a510fada 707%attr(755,root,root) %{_libdir}/libsvn_ra_%{webdavlib}-1.so
b445847c
JB
708%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so
709%attr(755,root,root) %{_libdir}/libsvn_repos-1.so
710%attr(755,root,root) %{_libdir}/libsvn_subr-1.so
711%attr(755,root,root) %{_libdir}/libsvn_wc-1.so
712%{_libdir}/libsvn_client-1.la
713%{_libdir}/libsvn_delta-1.la
714%{_libdir}/libsvn_diff-1.la
715%{_libdir}/libsvn_fs-1.la
5f328a6e 716%if %{without net_client_only}
b445847c 717%{_libdir}/libsvn_fs_base-1.la
5f328a6e 718%endif
b445847c
JB
719%{_libdir}/libsvn_fs_fs-1.la
720%{_libdir}/libsvn_fs_util-1.la
721%{_libdir}/libsvn_ra-1.la
722%{_libdir}/libsvn_ra_local-1.la
a510fada 723%{_libdir}/libsvn_ra_%{webdavlib}-1.la
b445847c
JB
724%{_libdir}/libsvn_ra_svn-1.la
725%{_libdir}/libsvn_repos-1.la
726%{_libdir}/libsvn_subr-1.la
727%{_libdir}/libsvn_wc-1.la
728%{_includedir}/%{name}-1
1326bb99 729%{_examplesdir}/%{name}-%{version}
93b78127
AM
730
731%files static
732%defattr(644,root,root,755)
b445847c
JB
733%{_libdir}/libsvn_client-1.a
734%{_libdir}/libsvn_delta-1.a
735%{_libdir}/libsvn_diff-1.a
736%{_libdir}/libsvn_fs-1.a
5f328a6e 737%if %{without net_client_only}
b445847c 738%{_libdir}/libsvn_fs_base-1.a
5f328a6e 739%endif
b445847c
JB
740%{_libdir}/libsvn_fs_fs-1.a
741%{_libdir}/libsvn_fs_util-1.a
742%{_libdir}/libsvn_ra-1.a
743%{_libdir}/libsvn_ra_local-1.a
a510fada 744%{_libdir}/libsvn_ra_%{webdavlib}-1.a
b445847c
JB
745%{_libdir}/libsvn_ra_svn-1.a
746%{_libdir}/libsvn_repos-1.a
747%{_libdir}/libsvn_subr-1.a
748%{_libdir}/libsvn_wc-1.a
93b78127 749
bfb248d0 750%if %{with gnome}
1429fa1c
AM
751%files -n gnome-keyring-subversion
752%defattr(644,root,root,755)
753%attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.*
754%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0
bfb248d0 755%endif
1429fa1c 756
65f2befa 757%if %{with kwallet}
1429fa1c
AM
758%files -n kde4-kwallet-subversion
759%defattr(644,root,root,755)
760%attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.*
761%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0
65f2befa 762%endif
1429fa1c 763
12c96b58 764%if %{without net_client_only}
b56474ff
AM
765%files svnserve
766%defattr(644,root,root,755)
767%attr(755,root,root) %{_bindir}/svnserve
b445847c
JB
768%{_mandir}/man5/svnserve.conf.5*
769%{_mandir}/man8/svnserve.8*
a1bac09d
770%dir %attr(750,svn,svn) /home/services/subversion
771%dir %attr(750,svn,svn) /home/services/subversion/repos
0905b458 772%if %{with apache}
b56474ff 773%attr(754,root,root) /etc/rc.d/init.d/svnserve
86ea8fde 774%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve
0905b458 775%endif
b56474ff 776
4bbdbbf8
AM
777%files tools
778%defattr(644,root,root,755)
1326bb99 779%attr(755,root,root) %{_bindir}/svn-hot-backup
fe5bb6bb 780
781%files -n bash-completion-subversion
101e74de 782%defattr(644,root,root,755)
1326bb99 783/etc/bash_completion.d/%{name}
536b3fd3 784
1cc7453a 785%if %{with javahl}
786%files -n java-subversion
787%defattr(644,root,root,755)
b445847c
JB
788%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.*
789%attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0
790%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so
1cc7453a 791%{_javadir}/svn-javahl.jar
792%endif
793
0905b458 794%if %{with python}
fa3ff1b2 795%files -n python-subversion
f4e6a380 796%defattr(644,root,root,755)
4bbdbbf8 797%doc tools/backup/*.py tools/examples/*.py
b445847c
JB
798%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.*
799%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0
800%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so
65318afa 801%dir %{py_sitedir}/libsvn
3c200272 802%attr(755,root,root) %{py_sitedir}/libsvn/_*.so
65318afa 803%{py_sitedir}/libsvn/*.py[co]
b445847c
JB
804%dir %{py_sitedir}/svn
805%{py_sitedir}/svn/*.py[co]
1326bb99 806%{_examplesdir}/python-%{name}-%{version}
137fcafd
AM
807
808%files -n python-csvn
809%defattr(644,root,root,755)
810%doc subversion/bindings/ctypes-python/{README,TODO}
811%doc subversion/bindings/ctypes-python/examples/*.py
812%dir %{py_sitescriptdir}/csvn
813%{py_sitescriptdir}/csvn/*.py[co]
814%dir %{py_sitescriptdir}/csvn/core
815%{py_sitescriptdir}/csvn/core/*.py[co]
816%dir %{py_sitescriptdir}/csvn/ext
817%{py_sitescriptdir}/csvn/ext/*.py[co]
3c200272 818%{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
0905b458 819%endif
f4e6a380 820
0905b458 821%if %{with perl}
b56474ff
AM
822%files -n perl-subversion
823%defattr(644,root,root,755)
b445847c
JB
824%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.*
825%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0
826%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so
b56474ff
AM
827%{perl_vendorarch}/SVN
828%dir %{perl_vendorarch}/auto/SVN
829%dir %{perl_vendorarch}/auto/SVN/*
830%attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
831%{perl_vendorarch}/auto/SVN/*/*.bs
832%{_mandir}/man3/*.3pm*
0905b458 833%endif
b56474ff 834
d46e45ba
AM
835%if %{with ruby}
836%files -n ruby-subversion
837%defattr(644,root,root,755)
b445847c
JB
838%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.*
839%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0
840%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so
916011ef
JR
841%dir %{ruby_sitelibdir}/svn
842%{ruby_sitelibdir}/svn/*.rb
843%dir %{ruby_sitearchdir}/svn
844%dir %{ruby_sitearchdir}/svn/ext
e2c6dc67 845%attr(755,root,root) %{ruby_sitearchdir}/svn/ext/*.so
916011ef 846%{ruby_ridir}/Svn
d46e45ba
AM
847%endif
848
0905b458 849%if %{with apache}
93b78127
AM
850%files -n apache-mod_dav_svn
851%defattr(644,root,root,755)
1af5e34d
ER
852%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf
853%attr(755,root,root) %{apachelibdir}/mod_dav_svn.so
65318afa
AF
854
855%files -n apache-mod_authz_svn
856%defattr(644,root,root,755)
857%doc subversion/mod_authz_svn/INSTALL
1af5e34d
ER
858%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf
859%attr(755,root,root) %{apachelibdir}/mod_authz_svn.so
536b3fd3 860%endif
7b27380f
ER
861
862%endif # net_client_only
This page took 0.197707 seconds and 4 git commands to generate.