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