]> git.pld-linux.org Git - packages/subversion.git/blame - subversion.spec
add missing ldconfig invocation to python3-subversion
[packages/subversion.git] / subversion.spec
CommitLineData
8d40da51 1#
bab73684 2# Conditional build:
ebe67b1a
JB
3%bcond_with net_client_only # only net client (disables: apache db swig java csvn gnome kde)
4%bcond_without swig # swig-based bindings (perl python ruby)
5%bcond_without python # Python bindings (any)
6%bcond_without python2 # CPython 2.x bindings
7%bcond_without python3 # CPython 3.x bindings
8%bcond_without csvn # Python csvn bindings
9%bcond_without swigpy # Python swig bindings
10%bcond_without perl # Perl bindings
11%bcond_with ruby # Ruby bindings
12%bcond_without apache # Apache support (webdav, etc)
13%bcond_without java # javahl support (Java high-level bindings)
14%bcond_with tests # "make check" tests
15%bcond_without kwallet # KDE5 wallet support
16%bcond_without kde # KDE5 support (alias for kwallet)
17%bcond_without gnome # GNOME keyring support
18%bcond_without db # Subversion Berkeley DB based filesystem library
28b85877 19%bcond_with db6 # allow BDB6 (not tested by upstream, released on AGPL)
12c96b58 20
298f7114
ER
21%if %{with net_client_only}
22%undefine with_apache
23%undefine with_db
24%undefine with_swig
15e0d824 25%undefine with_java
eeba69cd
ER
26%undefine with_csvn
27%undefine with_gnome
28%undefine with_kde
298f7114 29%endif
298f7114
ER
30%if %{without swig}
31%undefine with_perl
298f7114 32%undefine with_ruby
ebe67b1a 33%undefine with_swigpy
298f7114 34%endif
d9d66e02 35%if %{without kde}
3c200272
JB
36%undefine with_kwallet
37%endif
ebe67b1a
JB
38%if %{without python}
39%undefine with_python2
40%undefine with_python3
41%undefine with_csvn
42%undefine with_swigpy
43%endif
44%if %{without swigpy} && %{without perl} && %{without ruby}
e2c40ca2 45%undefine with_swig
298f7114
ER
46%endif
47
48%define apxs /usr/sbin/apxs
49%define pdir SVN
50%define pnam _Core
51
e8554eb9
JP
52%define use_jdk openjdk8
53
67cb9518 54Summary: A Concurrent Versioning system similar to but better than CVS
abe3c421
ER
55Summary(pl.UTF-8): System kontroli wersji podobny, ale lepszy, niż CVS
56Summary(pt_BR.UTF-8): Sistema de versionamento concorrente
93b78127 57Name: subversion
0dfb67af
JP
58Version: 1.14.3
59Release: 1
8df86594 60License: Apache v2.0
93b78127 61Group: Development/Version Control
4e48afb2 62Source0: https://www.apache.org/dist/subversion/%{name}-%{version}.tar.bz2
0dfb67af 63# Source0-md5: 19756a5ceb32a022698a66e48616ef6b
93b78127 64Source1: %{name}-dav_svn.conf
65318afa 65Source2: %{name}-authz_svn.conf
b56474ff
AM
66Source3: %{name}-svnserve.init
67Source4: %{name}-svnserve.sysconfig
ed6210a2 68Patch0: %{name}-home_etc.patch
d46e45ba 69Patch1: %{name}-DESTDIR.patch
00664663 70Patch2: %{name}-ruby-datadir-path.patch
1cfe7af2 71Patch3: %{name}-tests.patch
7923efca 72Patch4: x32-libdir.patch
1aac8b6c 73Patch5: %{name}-sh.patch
ebe67b1a
JB
74Patch6: %{name}-ctypes.patch
75Patch7: %{name}-perl.patch
76Patch8: %{name}-swig-py.patch
dc8fcc41 77URL: http://subversion.apache.org/
f9c8674f 78%{?with_apache:BuildRequires: apache-devel >= 2.4.14}
32509ffb 79BuildRequires: apr-devel >= 1:1.4
8d40da51 80BuildRequires: apr-util-devel >= 1:1.3
4323aab4 81BuildRequires: apr-util-crypto-openssl
b0a7a5b2 82BuildRequires: autoconf >= 2.59
86250f0b 83BuildRequires: automake
79d8c53c 84BuildRequires: bison
dfeb8a3c 85BuildRequires: cyrus-sasl-devel
86250f0b
JB
86%if %{with kwallet} || %{with gnome}
87BuildRequires: dbus-devel
88%endif
7937f96a 89%{!?with_db6:BuildRequires: db-devel < 6}
b98707c2 90BuildRequires: db-devel >= 4.1.25
93b78127 91BuildRequires: expat-devel
b4f033d9 92BuildRequires: gettext-tools
8d40da51 93%{?with_gnome:BuildRequires: glib2-devel >= 2.0}
60036f0a 94%{?with_kde:BuildRequires: kf5-kdelibs4support-devel}
99500116 95%{?with_kwallet:BuildRequires: kf5-kwallet-devel}
5f328a6e 96%{?with_gnome:BuildRequires: libgnome-keyring-devel}
fdee3c2c 97%{?with_gnome:BuildRequires: libsecret-devel}
86250f0b 98BuildRequires: libmagic-devel
a70bbcf5 99BuildRequires: libtool >= 2:2
ca1e2bce 100BuildRequires: libutf8proc-devel >= 1.3.1-4
62313a20 101BuildRequires: lz4-devel
54271075 102BuildRequires: pkgconfig
ebe67b1a 103%if %{with python2}
1aac8b6c
JB
104BuildRequires: python >= 1:2.7
105%{?with_csvn:BuildRequires: python-ctypesgen >= 1.0.2}
ebe67b1a
JB
106%endif
107%if %{with python3}
108BuildRequires: python3 >= 1:3.2
109%{?with_csvn:BuildRequires: python3-ctypesgen >= 1.0.2}
110%endif
1aac8b6c 111BuildRequires: rpm-build >= 4.6
c01720ea 112BuildRequires: rpm-pythonprov
bcb9faa6 113BuildRequires: rpmbuild(macros) >= 1.752
a562165a 114BuildRequires: sed >= 4.0
8d40da51 115BuildRequires: serf-devel >= 1.3.4
62313a20 116BuildRequires: sqlite3-devel >= 3.8.11.1
a562165a
JB
117BuildRequires: texinfo
118BuildRequires: which
62313a20 119BuildRequires: zlib-devel >= 1.2
15e0d824 120%if %{with java}
e8554eb9 121BuildRequires: openjdk8-jdk-base
a70bbcf5 122BuildRequires: libstdc++-devel >= 6:4.7
86250f0b
JB
123%endif
124%if %{with perl}
125BuildRequires: perl-devel >= 1:5.8.0
126BuildRequires: rpm-perlprov >= 4.1-13
127BuildRequires: swig-perl >= 1.3.24
128%endif
ebe67b1a 129%if %{with python2} || %{with python3}
69c6af4b 130BuildRequires: py3c
ebe67b1a
JB
131%endif
132%if %{with python2}
133BuildRequires: python-devel >= 1:2.7
b1c8f82b
AM
134BuildRequires: swig3-python >= 3.0.12
135BuildRequires: swig3-python < 4.0.0
86250f0b 136%endif
ebe67b1a
JB
137%if %{with python3}
138BuildRequires: python3-devel >= 1:3.2
139BuildRequires: swig-python >= 4.0.0
140%endif
86250f0b 141%if %{with ruby}
1d7939c9 142BuildRequires: rpm-rubyprov
38c0314f 143BuildRequires: ruby-devel >= 1:1.8.2
8942083b 144BuildRequires: ruby-irb
86250f0b 145BuildRequires: ruby-rubygems
1aac8b6c 146BuildRequires: swig-ruby >= 3.0.9
e3ad24ea 147%endif
027f8ebe 148Requires: %{name}-libs = %{version}-%{release}
93b78127
AM
149BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
150
f4070f5f 151%define _libexecdir %{_libdir}/svn
1af5e34d
ER
152%define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
153%define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
93b78127 154
ebe67b1a 155%define skip_post_check_so libsvn_swig_py-1.so.* libsvn_swig_py2-1.so.* libsvn_swig_perl-1.so.* libsvn_fs_x-1.so.*
58f4b627 156
93b78127
AM
157%description
158The goal of the Subversion project is to build a version control
159system that is a compelling replacement for CVS in the open source
160community.
161
162Our goals are:
163- All current CVS features.
164- Directories, renames, and file meta-data are versioned.
165- Symbolic links, etc, are supported
166- Commits are truly atomic.
167- Branching and tagging are cheap (constant time) operations
168- Repeated merges are handled gracefully
169- Support for plug-in client side diff programs
170- Natively client/server
171- Client/server protocol sends diffs in both directions
172- Costs are proportional to change size, not project size
173- Internationalization
174- Progressive multi-lingual support
175
aa59005f 176%description -l pl.UTF-8
93b78127
AM
177Celem projektu Subversion jest stworzenie systemu kontroli wersji jako
178zamiennika dla CVS.
179
180Cele projektu to:
aa59005f 181- Wszystkie aktualne możliwości CVS.
24406120
JB
182- Katalogi, zmiany nazw oraz metadane plików są wersjonowane.
183- Obsługa dowiązań symbolicznych itp.
aa59005f
JR
184- Commity są w pełni atomowe.
185- Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami.
24406120
JB
186- Dobra obsługa powtarzanego łączenia (merge).
187- Obsługa wtyczek diff po stronie klienta.
93b78127 188- Natywny klient/serwer.
aa59005f 189- Klient/Serwer przesyłają diffy w obu kierunkach.
93b78127
AM
190- Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu.
191- Internacjonalizacja.
aa59005f 192- Postępujące wsparcie dla wielu języków.
93b78127 193
aa59005f
JR
194%description -l pt_BR.UTF-8
195O objetivo do projeto Subversion é construir um sistema de controle de
196versões que seja um substituto para o CVS (Concurrent Versioning
92066deb 197System) na comunidade opensource, fornecendo grandes melhorias.
198
f4e6a380
AM
199%package libs
200Summary: Subversion libraries and modules
abe3c421 201Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły
f4e6a380 202Group: Libraries
32509ffb 203Requires: apr >= 1:1.4
8d40da51
JB
204Requires: apr-util >= 1:1.3
205Requires: serf >= 1.3.4
9aa66564 206%requires_ge_to sqlite3-libs sqlite3-devel
62313a20 207Requires: zlib >= 1.2
2f648011 208Obsoletes: libsubversion0 < 1
f4e6a380
AM
209
210%description libs
211Subversion libraries and modules.
212
aa59005f
JR
213%description libs -l pl.UTF-8
214Biblioteka subversion oraz ładowalne moduły.
f4e6a380 215
93b78127
AM
216%package devel
217Summary: Header files and develpment documentation for subversion
abe3c421
ER
218Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion
219Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion
93b78127 220Group: Development/Libraries
9cb7e099 221Requires: %{name}-libs = %{version}-%{release}
8d40da51 222Requires: apr-util-devel >= 1:1.3
567d54df 223Requires: libutf8proc-devel >= 1.3.1-4
8d40da51 224Requires: serf-devel >= 1.3.4
2f648011 225Obsoletes: libsubversion0-devel < 1
93b78127
AM
226
227%description devel
228Header files and develpment documentation for subversion.
229
aa59005f
JR
230%description devel -l pl.UTF-8
231Pliki nagłówkowe i dokumetacja do subversion.
93b78127 232
aa59005f
JR
233%description devel -l pt_BR.UTF-8
234Este pacote provê os arquivos necessários para desenvolvedores
92066deb 235interagirem com o Subversion.
236
93b78127
AM
237%package static
238Summary: Static subversion library
abe3c421
ER
239Summary(pl.UTF-8): Biblioteka statyczna subversion
240Summary(pt_BR.UTF-8): Sistema de versionamento concorrente
93b78127
AM
241Group: Development/Libraries
242Requires: %{name}-devel = %{version}
2f648011 243Obsoletes: libsubversion0-static-devel < 1
93b78127
AM
244
245%description static
246Static subversion library.
247
aa59005f 248%description static -l pl.UTF-8
93b78127
AM
249Biblioteka statyczna subversion.
250
aa59005f
JR
251%description static -l pt_BR.UTF-8
252Este pacote provê um cliente estático do subversion.
92066deb 253
b56474ff
AM
254%package svnserve
255Summary: Subversion svnserve
abe3c421 256Summary(pl.UTF-8): Subversion svnserve
b56474ff 257Group: Networking/Daemons
3817faf5 258Requires(post,preun): /sbin/chkconfig
93f1d402 259Requires(postun): /usr/sbin/groupdel
260Requires(postun): /usr/sbin/userdel
261Requires(pre): /bin/id
262Requires(pre): /usr/bin/getgid
263Requires(pre): /usr/lib/rpm/user_group.sh
264Requires(pre): /usr/sbin/groupadd
265Requires(pre): /usr/sbin/useradd
266Requires(pre): /usr/sbin/usermod
9cb7e099 267Requires: %{name} = %{version}-%{release}
7b27380f 268Requires: rc-scripts
a1bac09d
269Provides: group(svn)
270Provides: user(svn)
b56474ff
AM
271
272%description svnserve
273Subversion svnserve server.
274
aa59005f 275%description svnserve -l pl.UTF-8
b56474ff
AM
276Serwer subversion svnserve.
277
4bbdbbf8
AM
278%package tools
279Summary: Subversion tools and scripts
abe3c421
ER
280Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion
281Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion
ebe67b1a 282Group: Development/Version Control
7b27380f 283Requires: %{name} = %{version}-%{release}
4bbdbbf8
AM
284
285%description tools
286Subversion tools and scripts.
287
aa59005f
JR
288%description tools -l pl.UTF-8
289Narzędzia oraz skrypty dla subversion.
4bbdbbf8 290
fe5bb6bb 291%package -n bash-completion-subversion
292Summary: bash completion for subversion
abe3c421 293Summary(pl.UTF-8): Dopełnienia basha dla subversion
fe5bb6bb 294Group: Applications/Shells
e30588c4 295Requires: %{name} = %{version}-%{release}
53855fbf 296Requires: bash-completion
e30588c4 297Conflicts: %{name}-tools <= 1.1.0-0.rc6.1
90db6d36 298BuildArch: noarch
fe5bb6bb 299
300%description -n bash-completion-subversion
301Bash completion for subversion.
302
aa59005f
JR
303%description -n bash-completion-subversion -l pl.UTF-8
304Dopełnienia basha dla subversion.
fe5bb6bb 305
1cc7453a 306%package -n java-subversion
65c1d4bd
JB
307Summary: Subversion Java bindings
308Summary(pl.UTF-8): Dowiązania do Subversion dla Javy
1cc7453a 309Group: Development/Languages/Java
310Requires: %{name}-libs = %{version}-%{release}
311
312%description -n java-subversion
313This is a set of Java classes which provide the functionality of
314subversion-libs, the Subversion libraries. It is useful if you want
315to, for example, write a Java class that manipulates a Subversion
316repository or working copy. See the 'subversion' package for more
317information.
318
65c1d4bd
JB
319%description -n java-subversion -l pl.UTF-8
320Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność
321subversion-libs, czyli bibliotek Subversion. Jest przydatny przy
d46e45ba
AM
322pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię
323roboczą. Więcej informacji w pakiecie subversion.
65c1d4bd 324
fa3ff1b2 325%package -n python-subversion
ebe67b1a
JB
326Summary: Subversion Python 2 bindings
327Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona 2
328Summary(pt_BR.UTF-8): Módulos Python 2 para acessar os recursos do Subversion
f4e6a380 329Group: Development/Languages/Python
9cb7e099 330Requires: %{name}-libs = %{version}-%{release}
ebe67b1a 331Requires: python-modules >= 1:2.7
2f648011 332Obsoletes: subversion-python < 0.14.1
f4e6a380 333
fa3ff1b2 334%description -n python-subversion
ebe67b1a 335Subversion Python 2 bindings.
f4e6a380 336
aa59005f 337%description -n python-subversion -l pl.UTF-8
ebe67b1a 338Dowiązania do Subversion dla Pythona 2.
f4e6a380 339
aa59005f 340%description -n python-subversion -l pt_BR.UTF-8
ebe67b1a 341Módulos Python 2 para acessar os recursos do Subversion.
92066deb 342
137fcafd 343%package -n python-csvn
ebe67b1a
JB
344Summary: CTypes Subversion Python 2 bindings
345Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona 2
346Summary(pt_BR.UTF-8): Módulos Python 2 para acessar os recursos do Subversion
137fcafd 347Group: Development/Languages/Python
137fcafd 348Requires: %{name}-libs = %{version}-%{release}
ebe67b1a 349Requires: python-modules >= 1:2.7
137fcafd
AM
350
351%description -n python-csvn
ebe67b1a 352Subversion CTypes Python 2 bindings.
137fcafd
AM
353
354%description -n python-csvn -l pl.UTF-8
ebe67b1a 355Dowiązania do Subversion dla Pythona 2 używające CTypes.
137fcafd
AM
356
357%description -n python-csvn -l pt_BR.UTF-8
ebe67b1a
JB
358Módulos Python 2 para acessar os recursos do Subversion.
359
360%package -n python3-subversion
361Summary: Subversion Python 3 bindings
362Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona 3
363Summary(pt_BR.UTF-8): Módulos Python 3 para acessar os recursos do Subversion
364Group: Development/Languages/Python
365Requires: %{name}-libs = %{version}-%{release}
366Requires: python3-modules >= 1:3.2
367Obsoletes: subversion-python < 0.14.1
368
369%description -n python3-subversion
370Subversion Python 3 bindings.
371
372%description -n python3-subversion -l pl.UTF-8
373Dowiązania do Subversion dla Pythona 3.
374
375%description -n python3-subversion -l pt_BR.UTF-8
376Módulos Python 3 para acessar os recursos do Subversion.
377
378%package -n python3-csvn
379Summary: CTypes Subversion Python 3 bindings
380Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona 3
381Summary(pt_BR.UTF-8): Módulos Python 3 para acessar os recursos do Subversion
382Group: Development/Languages/Python
383Requires: %{name}-libs = %{version}-%{release}
384Requires: python3-modules >= 1:3.2
385
386%description -n python3-csvn
387Subversion CTypes Python 3 bindings.
388
389%description -n python3-csvn -l pl.UTF-8
390Dowiązania do Subversion dla Pythona 3 używające CTypes.
391
392%description -n python3-csvn -l pt_BR.UTF-8
393Módulos Python 3 para acessar os recursos do Subversion.
137fcafd 394
b56474ff 395%package -n perl-subversion
65c1d4bd
JB
396Summary: Subversion Perl bindings
397Summary(pl.UTF-8): Dowiązania do Subversion dla Perla
398Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do Subversion
b56474ff 399Group: Development/Languages/Perl
9cb7e099 400Requires: %{name}-libs = %{version}-%{release}
2f648011 401Obsoletes: subversion-perl < 0.33.1-2
b56474ff
AM
402
403%description -n perl-subversion
65c1d4bd 404Subversion Perl bindings.
b56474ff 405
aa59005f 406%description -n perl-subversion -l pl.UTF-8
65c1d4bd 407Dowiązania do Subversion dla Perla.
b56474ff 408
aa59005f 409%description -n perl-subversion -l pt_BR.UTF-8
65c1d4bd 410Módulos Perl para acessar os recursos do Subversion.
b56474ff 411
d46e45ba
AM
412%package -n ruby-subversion
413Summary: Subversion Ruby bindings
d2bf70bf 414Summary(pl.UTF-8): Dowiązania do Subversion dla języka Ruby
d46e45ba
AM
415Summary(pt_BR.UTF-8): Módulos Ruby para acessar os recursos do Subversion
416Group: Development/Languages
417Requires: %{name}-libs = %{version}-%{release}
2f648011 418Obsoletes: subversion-ruby < 1.5.0-1
d46e45ba
AM
419
420%description -n ruby-subversion
421Subversion Ruby bindings.
422
423%description -n ruby-subversion -l pl.UTF-8
d2bf70bf 424Dowiązania do Subversion dla języka Ruby.
d46e45ba
AM
425
426%description -n ruby-subversion -l pt_BR.UTF-8
427Módulos Ruby para acessar os recursos do Subversion.
428
93b78127
AM
429%package -n apache-mod_dav_svn
430Summary: Apache module: Subversion Server
ba084299 431Summary(pl.UTF-8): Moduł Apache'a: serwer Subversion
93b78127 432Group: Networking/Daemons
7b27380f 433Requires: %{name} = %{version}-%{release}
53855fbf 434Requires: apache(modules-api) = %apache_modules_api
7887b1ac 435Requires: apache-mod_dav
93b78127
AM
436
437%description -n apache-mod_dav_svn
438Apache module: Subversion Server.
439
aa59005f 440%description -n apache-mod_dav_svn -l pl.UTF-8
ba084299 441Moduł Apache'a: serwer Subversion.
93b78127 442
65318afa
AF
443%package -n apache-mod_authz_svn
444Summary: Apache module: Subversion Server - path-based authorization
ba084299 445Summary(pl.UTF-8): Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera Subversion
65318afa 446Group: Networking/Daemons
38c0314f 447Requires: %{name}-libs = %{version}-%{release}
53855fbf 448Requires: apache(modules-api) = %apache_modules_api
9cb7e099 449Requires: apache-mod_dav_svn = %{version}-%{release}
65318afa
AF
450
451%description -n apache-mod_authz_svn
452Apache module: Subversion Server - path-based authorization.
453
aa59005f 454%description -n apache-mod_authz_svn -l pl.UTF-8
ba084299
JB
455Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera
456Subversion.
e23909be 457
53bea8b1
AM
458%package -n apache-mod_dontdothat_svn
459Summary: Apache module: Allows you to block specific svn requests
ba084299 460Summary(pl.UTF-8): Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn
53bea8b1
AM
461Group: Networking/Daemons
462Requires: %{name}-libs = %{version}-%{release}
463Requires: apache(modules-api) = %apache_modules_api
464Requires: apache-mod_dav_svn = %{version}-%{release}
465
466%description -n apache-mod_dontdothat_svn
467Apache module: Allows you to block specific svn requests.
468
469%description -n apache-mod_dontdothat_svn -l pl.UTF-8
ba084299 470Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn.
53bea8b1 471
1429fa1c 472%package -n gnome-keyring-subversion
fe242fac
JB
473Summary: GNOME Keyring authentication provider for Subversion
474Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Subversion
1429fa1c 475Group: X11/Applications
38c0314f 476Requires: %{name}-libs = %{version}-%{release}
1429fa1c
AM
477
478%description -n gnome-keyring-subversion
fe242fac
JB
479Authentication provider module for Subversion which allows SVN client
480to authenticate using GNOME Keyring.
1429fa1c
AM
481
482%description -n gnome-keyring-subversion -l pl.UTF-8
fe242fac
JB
483Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
484uwierzytelniać się przy użyciu mechanizmu GNOME Keyring.
1429fa1c 485
99500116 486%package -n kde5-kwallet-subversion
fe242fac
JB
487Summary: KDE Wallet authentication provider for Subversion
488Summary(pl.UTF-8): Moduł uwierzytelniający dla Subversion wykorzystujący Portfel KDE
1429fa1c 489Group: X11/Applications
38c0314f 490Requires: %{name}-libs = %{version}-%{release}
1429fa1c 491
99500116 492%description -n kde5-kwallet-subversion
fe242fac
JB
493Authentication provider module for Subversion which allows SVN client
494to authenticate using KDE Wallet.
1429fa1c 495
99500116 496%description -n kde5-kwallet-subversion -l pl.UTF-8
fe242fac
JB
497Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
498uwierzytelniać się przy użyciu Portfela KDE.
1429fa1c 499
93b78127 500%prep
0c6e93f6 501%setup -q
ed6210a2 502%patch0 -p0
d4bccc60 503%patch1 -p1
00664663 504%patch2 -p0
1cfe7af2 505%patch3 -p1
7923efca 506%patch4 -p1
1aac8b6c 507%patch5 -p1
ebe67b1a
JB
508%patch6 -p1
509%patch7 -p1
510%patch8 -p1
511
512%{__sed} -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4
a510fada 513
ebe67b1a 514%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' tools/backup/hot-backup.py.in
b1c8f82b 515
93b78127 516%build
ebe67b1a
JB
517# FIXME: don't hide autotools invocation
518# (but this script could do more, e.g. swig regeneration)
67cb9518 519chmod +x ./autogen.sh && ./autogen.sh
ebe67b1a
JB
520%if %{with python2}
521install -d builddir-python2
522cd builddir-python2
523../%configure \
524 ac_cv_path_RUBY=none \
525 --disable-javahl \
526 --disable-mod-activation \
527 --without-apxs \
528 --without-berkeley-db \
529%if %{with csvn}
530 --with-ctypesgen=%{_bindir}/ctypesgen-2 \
531%endif
532 --without-gnome-keyring \
533 --without-kwallet \
534 --with-serf=%{_prefix} \
535 --with-swig=/usr/bin/swig-3 \
536 --with-zlib=%{_libdir}
537
560eaa9b
JB
538# required with separate builddir and only some subcomponents
539install -d subversion/{bindings/swig/python,mod_dav_svn/{posts,reports},po} tools/server-side/mod_dontdothat
ebe67b1a
JB
540
541%if %{with csvn}
542# Python ctypes bindings
560eaa9b 543%{__make} -j1 ctypes-python
ebe67b1a
JB
544%endif
545%if %{with swigpy}
546# Python swig bindings
560eaa9b 547%{__make} -j1 swig-py \
ebe67b1a
JB
548 PY_SUF=2 \
549 swig_pydir=%{py_sitedir}/libsvn \
550 swig_pydir_extra=%{py_sitedir}/svn
551%endif
552
553%if %{with tests}
554%if %{with csvn}
555%{__make} -j1 check-ctypes-python
556%endif
557%if %{with swigpy}
558%{__make} -j1 check-swig-py
559%endif
560%endif
561cd ..
562%endif
563
564install -d builddir
565cd builddir
566../%configure \
567 PYTHON=%{__python3} \
1aac8b6c
JB
568 --disable-mod-activation \
569 --disable-runtime-module-search \
570 --with-apr=%{_bindir}/apr-1-config \
571 --with-apr-util=%{_bindir}/apu-1-config \
5dfeafd7 572 --with-editor=vi \
1aac8b6c 573 --with-serf=%{_prefix} \
12ae68c1 574 --with-zlib=%{_libdir} \
1aac8b6c
JB
575%if %{with apache}
576 --with-apache-libexecdir="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
577 --with-apxs=%{_sbindir}/apxs \
578%else
579 --without-apxs \
580%endif
298f7114 581%if %{with db}
ad5c551e 582 --with-berkeley-db="db.h:%{_includedir}:%{_libdir}:db" \
28b85877 583 %{?with_db6:--enable-bdb6} \
298f7114
ER
584%else
585 --without-berkeley-db \
586%endif
ebe67b1a
JB
587%if %{with python3} && %{with csvn}
588 --with-ctypesgen=%{_bindir}/ctypesgen-3 \
1aac8b6c
JB
589%endif
590%if %{with gnome}
591 --with-gnome-keyring \
592%endif
593%if %{with kwallet}
594 --with-kwallet \
0905b458 595%endif
298f7114 596%if %{without swig}
0905b458 597 --without-swig \
5c072a77 598%endif
ebe67b1a
JB
599%if %{with swigpy}
600 --with-swig=/usr/bin/swig \
69c6af4b 601%endif
dd30c674
ER
602%if %{with ruby}
603 svn_cv_ruby_sitedir_libsuffix="" \
604 svn_cv_ruby_sitedir_archsuffix="" \
605 --with-ruby-sitedir=%{ruby_vendorarchdir} \
606%else
5c072a77 607 ac_cv_path_RUBY=none \
0905b458 608%endif
c3746b64 609%if %{with java}
a26edfbd 610 --enable-javahl \
1cc7453a 611 --with-jdk="%{java_home}" \
cf2589d0 612 --without-jikes \
a26edfbd
ER
613%else
614 --disable-javahl \
615%endif
536b3fd3 616
75f08d17 617%{__make}
536b3fd3 618
92bfa7e1
ER
619%{__make} tools
620
ebe67b1a 621%if %{with python3}
5b21aa20 622%if %{with csvn}
a26edfbd 623# Python ctypes bindings
137fcafd 624%{__make} ctypes-python
5b21aa20 625%endif
ebe67b1a 626%if %{with swigpy}
a26edfbd 627# Python swig bindings
86a4919e 628%{__make} swig-py \
ebe67b1a
JB
629 swig_pydir=%{py3_sitedir}/libsvn \
630 swig_pydir_extra=%{py3_sitedir}/svn
0905b458 631%endif
ebe67b1a
JB
632%endif
633
0905b458 634%if %{with perl}
a26edfbd 635# Perl swig bindings
ebe67b1a 636%{__make} -j1 swig-pl
536b3fd3 637%endif
c3746b64 638%if %{with java}
b445847c 639%{__make} -j1 javahl \
1cc7453a 640 javahl_javadir="%{_javadir}"
641%endif
d46e45ba
AM
642# ruby
643%if %{with ruby}
644%{__make} swig-rb
645%endif
12ae68c1
AM
646
647%if %{with tests}
5abe2f77 648%{__make} -j1 check
ebe67b1a 649%if %{with python3} && %{with csvn}
5abe2f77 650%{__make} -j1 check-ctypes-python
5b21aa20 651%endif
ebe67b1a 652%if %{with python3} && %{with swigpy}
5abe2f77 653%{__make} -j1 check-swig-py
d46e45ba
AM
654%endif
655%if %{with perl}
5abe2f77 656%{__make} -j1 check-swig-pl
d46e45ba
AM
657%endif
658%if %{with ruby}
6e3aae2d
ER
659# disabled, see https://bugs.launchpad.net/pld-linux/+bug/734340
660#%{__make} check-swig-rb
d46e45ba 661%endif
0905b458 662%endif
93b78127
AM
663
664%install
665rm -rf $RPM_BUILD_ROOT
1326bb99 666install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \
1af5e34d 667 $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \
ebe67b1a 668 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
d9d66e02 669 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
ebe67b1a 670 $RPM_BUILD_ROOT/home/services/subversion/repos
93b78127 671
ebe67b1a
JB
672%if %{with python2}
673%if %{with csvn}
97454fe4 674%{__make} -C builddir-python2 -j1 install-lib install-fsmod-lib install-ctypes-python \
ebe67b1a 675 DESTDIR=$RPM_BUILD_ROOT \
bcede8df
JB
676 PY_INSTALLOPTS="--install-purelib=%{py_sitescriptdir}" \
677 pkgconfig_dir=%{_pkgconfigdir}
ebe67b1a
JB
678%endif
679
680%if %{with swigpy}
681%{__make} -C builddir-python2 -j1 install-swig-py \
682 DESTDIR=$RPM_BUILD_ROOT \
683 PY_SUF=2 \
684 swig_pydir=%{py_sitedir}/libsvn \
685 swig_pydir_extra=%{py_sitedir}/svn
686%endif
687%endif
688
689%{__make} -C builddir -j1 install \
9eb45f32 690 pkgconfig_dir=%{_pkgconfigdir} \
92bfa7e1 691 toolsdir=%{_bindir} \
a26edfbd
ER
692 DESTDIR=$RPM_BUILD_ROOT \
693 APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
c3746b64 694%if %{with java}
1cc7453a 695 install-javahl \
696 javahl_javadir="%{_javadir}" \
697%endif
ebe67b1a
JB
698%if %{with python3} && %{with csvn}
699 install-ctypes-python \
700 PY_INSTALLOPTS="--install-purelib=%{py3_sitescriptdir}" \
701%endif
702%if %{with python3} && %{with swigpy}
0905b458 703 install-swig-py \
ebe67b1a
JB
704 swig_pydir=%{py3_sitedir}/libsvn \
705 swig_pydir_extra=%{py3_sitedir}/svn \
a26edfbd 706%endif
74465f3c
JP
707 install-tools
708
ebe67b1a 709%if 0 && %{with csvn}
74465f3c
JP
710# manually execute install-ctypes-python target
711cd subversion/bindings/ctypes-python
712%py_install
713cd ../../..
d46e45ba 714%endif
49f25a64 715
d46e45ba 716%if %{with ruby}
ebe67b1a 717%{__make} -C builddir -j1 install-swig-rb install-swig-rb-doc \
59894d8a 718 SWIG_RB_RI_DATADIR=$RPM_BUILD_ROOT%{ruby_ridir} \
9eb45f32 719 DESTDIR=$RPM_BUILD_ROOT
49f25a64
ER
720
721# not our package
49f25a64
ER
722%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/OptionParser
723%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Time
b98707c2 724%if "%{ruby_abi}" >= "2.0"
59894d8a 725%{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/File
c6918405 726%endif
49f25a64
ER
727%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri
728%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid
0905b458 729%endif
93b78127 730
298f7114 731%if %{with perl}
ebe67b1a 732%{__make} -C builddir install-swig-pl \
bf539998 733 DESTDIR=$RPM_BUILD_ROOT
bf539998
AM
734%endif
735
0905b458 736%if %{with apache}
d9d66e02
ER
737cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf
738cp -p %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf
739cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve
740install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve
0905b458 741%endif
93b78127 742
d9d66e02 743%if %{without net_client_only}
ebe67b1a 744install -p builddir/tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup
298f7114 745%endif
92bfa7e1
ER
746
747# rename not to conflict with standard packages. (are these needed at all?)
9eb45f32
JB
748%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff
749%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff3
750%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff4
92bfa7e1 751
ebe67b1a
JB
752%if %{with python2}
753%if %{with swigpy}
f4e6a380
AM
754%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
755%py_comp $RPM_BUILD_ROOT%{py_sitedir}
3c200272 756%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la
ebe67b1a 757install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
f37da0a1 758cp -p tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
ebe67b1a
JB
759%{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}/*.py
760%endif
761%py_postclean
762%endif
763
764%if %{with python3} && %{with swigpy}
765%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
766%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
767%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/libsvn/*.la
768install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{name}-%{version}
769cp -p tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-%{name}-%{version}
770%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' $RPM_BUILD_ROOT%{_examplesdir}/python3-%{name}-%{version}/*.py
536b3fd3 771%endif
f4e6a380 772
d9d66e02
ER
773cp -p tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name}
774cp -p tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1326bb99 775
c3746b64 776%if %{with java}
a26edfbd
ER
777%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a}
778%endif
298f7114 779%if %{with swig}
fe242fac 780%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a}
5c072a77 781%if %{with ruby}
dd30c674 782%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/svn/ext/*.la
5f328a6e 783%endif
5c072a77 784%endif
fe242fac
JB
785%if %{with gnome} || %{with kwallet}
786# dlopened by soname (libsvn_auth_*-1.so.0)
535649a6 787%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la}
fe242fac 788%endif
205a3ddc 789
fe242fac 790%find_lang %{name}
a6ecf312 791
e23909be
JB
792%clean
793rm -rf $RPM_BUILD_ROOT
794
a1bac09d
795%pre svnserve
796%groupadd -g 86 svn
797%useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn
798
d2bf70bf
JB
799%post libs -p /sbin/ldconfig
800%postun libs -p /sbin/ldconfig
801
802%post devel -p /sbin/postshell
6f99c3bd 803-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 804
d2bf70bf 805%postun devel -p /sbin/postshell
6f99c3bd 806-/usr/sbin/fix-info-dir -c %{_infodir}
93b78127 807
12c96b58
ER
808%post -n java-subversion -p /sbin/ldconfig
809%postun -n java-subversion -p /sbin/ldconfig
810
d2bf70bf
JB
811%post -n perl-subversion -p /sbin/ldconfig
812%postun -n perl-subversion -p /sbin/ldconfig
813
814%post -n python-subversion -p /sbin/ldconfig
815%postun -n python-subversion -p /sbin/ldconfig
f4e6a380 816
3cfba843
JP
817%post -n python3-subversion -p /sbin/ldconfig
818%postun -n python3-subversion -p /sbin/ldconfig
819
12c96b58
ER
820%post -n ruby-subversion -p /sbin/ldconfig
821%postun -n ruby-subversion -p /sbin/ldconfig
822
823%post -n gnome-keyring-subversion -p /sbin/ldconfig
824%postun -n gnome-keyring-subversion -p /sbin/ldconfig
825
ab99ba37
JR
826%post -n kde5-kwallet-subversion -p /sbin/ldconfig
827%postun -n kde5-kwallet-subversion -p /sbin/ldconfig
12c96b58 828
b56474ff 829%post svnserve
e8d9186f
ER
830/sbin/chkconfig --add svnserve
831%service svnserve restart "svnserve daemon"
832
b56474ff
AM
833%preun svnserve
834if [ "$1" = "0" ]; then
e8d9186f
ER
835 %service svnserve stop
836 /sbin/chkconfig --del svnserve
b56474ff
AM
837fi
838
a1bac09d
839%postun svnserve
840if [ "$1" = "0" ]; then
12c96b58
ER
841 %userremove svn
842 %groupremove svn
a1bac09d
843fi
844
93b78127 845%post -n apache-mod_dav_svn
e8d9186f 846%service -q httpd restart
93b78127 847
ba425c92 848%postun -n apache-mod_dav_svn
93b78127 849if [ "$1" = "0" ]; then
e8d9186f 850 %service -q httpd restart
93b78127
AM
851fi
852
9688ba4c
JR
853%post -n apache-mod_authz_svn
854%service -q httpd restart
855
ba425c92 856%postun -n apache-mod_authz_svn
9688ba4c
JR
857if [ "$1" = "0" ]; then
858 %service -q httpd restart
859fi
860
53bea8b1
AM
861%post -n apache-mod_dontdothat_svn
862%service -q httpd restart
863
864%postun -n apache-mod_dontdothat_svn
865if [ "$1" = "0" ]; then
866 %service -q httpd restart
867fi
868
93b78127
AM
869%files
870%defattr(644,root,root,755)
c5c1593f 871%doc BUGS CHANGES INSTALL README
d37298dc 872%doc doc/*/*.html
ebe67b1a
JB
873%doc builddir/tools/hook-scripts/*.pl
874%doc tools/hook-scripts/*.{py,example}
4bbdbbf8 875%doc tools/hook-scripts/mailer/*.{py,example}
1326bb99 876%doc tools/xslt/*
535649a6 877%attr(755,root,root) %{_bindir}/fsfs-stats
b445847c 878%attr(755,root,root) %{_bindir}/svn
535649a6 879%attr(755,root,root) %{_bindir}/svn-mergeinfo-normalizer
b445847c 880%attr(755,root,root) %{_bindir}/svnadmin
535649a6 881%attr(755,root,root) %{_bindir}/svnconflict
b445847c
JB
882%attr(755,root,root) %{_bindir}/svndumpfilter
883%attr(755,root,root) %{_bindir}/svnlook
535649a6 884%attr(755,root,root) %{_bindir}/svnmover
3d85fab0 885%attr(755,root,root) %{_bindir}/svnmucc
1e0ba091 886%attr(755,root,root) %{_bindir}/svnrdump
b445847c
JB
887%attr(755,root,root) %{_bindir}/svnsync
888%attr(755,root,root) %{_bindir}/svnversion
889%{_mandir}/man1/svn.1*
890%{_mandir}/man1/svnadmin.1*
891%{_mandir}/man1/svndumpfilter.1*
c5c1593f 892%{_mandir}/man1/svnrdump.1*
b445847c 893%{_mandir}/man1/svnlook.1*
3d85fab0 894%{_mandir}/man1/svnmucc.1*
b445847c
JB
895%{_mandir}/man1/svnsync.1*
896%{_mandir}/man1/svnversion.1*
f4e6a380 897
205a3ddc 898%files libs -f %{name}.lang
f4e6a380 899%defattr(644,root,root,755)
d9d66e02 900%dir %{_sysconfdir}/%{name}
b445847c
JB
901%attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.*
902%attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0
903%attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.*
904%attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0
905%attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.*
906%attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0
907%attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.*
908%attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0
5f328a6e 909%if %{without net_client_only}
b445847c
JB
910%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.*
911%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0
5f328a6e 912%endif
b445847c
JB
913%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.*
914%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0
915%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.*
916%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0
f9c8674f
AM
917%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so.*.*.*
918%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_x-1.so.0
b445847c
JB
919%attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.*
920%attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0
921%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.*
922%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0
1e0ba091
AM
923%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so.*.*.*
924%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_serf-1.so.0
b445847c
JB
925%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.*
926%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0
927%attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.*
928%attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0
929%attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.*
930%attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0
931%attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.*
932%attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0
93b78127
AM
933
934%files devel
935%defattr(644,root,root,755)
b445847c
JB
936%attr(755,root,root) %{_libdir}/libsvn_client-1.so
937%attr(755,root,root) %{_libdir}/libsvn_delta-1.so
938%attr(755,root,root) %{_libdir}/libsvn_diff-1.so
939%attr(755,root,root) %{_libdir}/libsvn_fs-1.so
5f328a6e 940%if %{without net_client_only}
b445847c 941%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so
5f328a6e 942%endif
b445847c
JB
943%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so
944%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so
f9c8674f 945%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so
b445847c
JB
946%attr(755,root,root) %{_libdir}/libsvn_ra-1.so
947%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so
1e0ba091 948%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so
b445847c
JB
949%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so
950%attr(755,root,root) %{_libdir}/libsvn_repos-1.so
951%attr(755,root,root) %{_libdir}/libsvn_subr-1.so
952%attr(755,root,root) %{_libdir}/libsvn_wc-1.so
953%{_libdir}/libsvn_client-1.la
954%{_libdir}/libsvn_delta-1.la
955%{_libdir}/libsvn_diff-1.la
956%{_libdir}/libsvn_fs-1.la
5f328a6e 957%if %{without net_client_only}
b445847c 958%{_libdir}/libsvn_fs_base-1.la
5f328a6e 959%endif
b445847c
JB
960%{_libdir}/libsvn_fs_fs-1.la
961%{_libdir}/libsvn_fs_util-1.la
f9c8674f 962%{_libdir}/libsvn_fs_x-1.la
b445847c
JB
963%{_libdir}/libsvn_ra-1.la
964%{_libdir}/libsvn_ra_local-1.la
1e0ba091 965%{_libdir}/libsvn_ra_serf-1.la
b445847c
JB
966%{_libdir}/libsvn_ra_svn-1.la
967%{_libdir}/libsvn_repos-1.la
968%{_libdir}/libsvn_subr-1.la
969%{_libdir}/libsvn_wc-1.la
ff76629a 970%if %{with gnome}
9eb45f32
JB
971# only for feature check, linking will fail (no libsvn_auth_gnome_keyring.so)
972%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
ff76629a
JP
973%endif
974%if %{with kwallet}
9eb45f32
JB
975# only for feature check, linking will fail (no libsvn_auth_kwallet.so)
976%{_pkgconfigdir}/libsvn_auth_kwallet.pc
ff76629a 977%endif
9eb45f32
JB
978%{_pkgconfigdir}/libsvn_client.pc
979%{_pkgconfigdir}/libsvn_delta.pc
980%{_pkgconfigdir}/libsvn_diff.pc
981%{_pkgconfigdir}/libsvn_fs.pc
f9c8674f 982%if %{without net_client_only}
9eb45f32
JB
983%{_pkgconfigdir}/libsvn_fs_base.pc
984%endif
985%{_pkgconfigdir}/libsvn_fs_fs.pc
986%{_pkgconfigdir}/libsvn_fs_util.pc
987%{_pkgconfigdir}/libsvn_fs_x.pc
988%{_pkgconfigdir}/libsvn_ra.pc
989%{_pkgconfigdir}/libsvn_ra_local.pc
990%{_pkgconfigdir}/libsvn_ra_serf.pc
991%{_pkgconfigdir}/libsvn_ra_svn.pc
992%{_pkgconfigdir}/libsvn_repos.pc
993%{_pkgconfigdir}/libsvn_subr.pc
994%{_pkgconfigdir}/libsvn_wc.pc
b445847c 995%{_includedir}/%{name}-1
1326bb99 996%{_examplesdir}/%{name}-%{version}
93b78127
AM
997
998%files static
999%defattr(644,root,root,755)
b445847c
JB
1000%{_libdir}/libsvn_client-1.a
1001%{_libdir}/libsvn_delta-1.a
1002%{_libdir}/libsvn_diff-1.a
1003%{_libdir}/libsvn_fs-1.a
5f328a6e 1004%if %{without net_client_only}
b445847c 1005%{_libdir}/libsvn_fs_base-1.a
5f328a6e 1006%endif
b445847c
JB
1007%{_libdir}/libsvn_fs_fs-1.a
1008%{_libdir}/libsvn_fs_util-1.a
f9c8674f 1009%{_libdir}/libsvn_fs_x-1.a
b445847c
JB
1010%{_libdir}/libsvn_ra-1.a
1011%{_libdir}/libsvn_ra_local-1.a
1e0ba091 1012%{_libdir}/libsvn_ra_serf-1.a
b445847c
JB
1013%{_libdir}/libsvn_ra_svn-1.a
1014%{_libdir}/libsvn_repos-1.a
1015%{_libdir}/libsvn_subr-1.a
1016%{_libdir}/libsvn_wc-1.a
93b78127 1017
bfb248d0 1018%if %{with gnome}
1429fa1c
AM
1019%files -n gnome-keyring-subversion
1020%defattr(644,root,root,755)
1021%attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.*
1022%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0
8d40da51
JB
1023# does anything use it? requires libsvn_auth_gnome_keyring.so
1024#%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
bfb248d0 1025%endif
1429fa1c 1026
65f2befa 1027%if %{with kwallet}
ab99ba37 1028%files -n kde5-kwallet-subversion
1429fa1c
AM
1029%defattr(644,root,root,755)
1030%attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.*
1031%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0
8d40da51
JB
1032# does anything use it? requires libsvn_auth_kwallet.so
1033#%{_pkgconfigdir}/libsvn_auth_kwallet.pc
65f2befa 1034%endif
1429fa1c 1035
12c96b58 1036%if %{without net_client_only}
b56474ff
AM
1037%files svnserve
1038%defattr(644,root,root,755)
1039%attr(755,root,root) %{_bindir}/svnserve
b445847c
JB
1040%{_mandir}/man5/svnserve.conf.5*
1041%{_mandir}/man8/svnserve.8*
a1bac09d
1042%dir %attr(750,svn,svn) /home/services/subversion
1043%dir %attr(750,svn,svn) /home/services/subversion/repos
0905b458 1044%if %{with apache}
b56474ff 1045%attr(754,root,root) /etc/rc.d/init.d/svnserve
86ea8fde 1046%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve
0905b458 1047%endif
b56474ff 1048
4bbdbbf8
AM
1049%files tools
1050%defattr(644,root,root,755)
92bfa7e1 1051# tools/backup/hot-backup.py
1326bb99 1052%attr(755,root,root) %{_bindir}/svn-hot-backup
fe5bb6bb 1053
92bfa7e1
ER
1054# tools/diff
1055%attr(755,root,root) %{_bindir}/svndiff
1056%attr(755,root,root) %{_bindir}/svndiff3
1057%attr(755,root,root) %{_bindir}/svndiff4
1058
1059# tools/server-side
f9c8674f 1060%attr(755,root,root) %{_bindir}/svnfsfs
92bfa7e1 1061%attr(755,root,root) %{_bindir}/svn-populate-node-origins-index
3d85fab0 1062%attr(755,root,root) %{_bindir}/svnauthz
92bfa7e1
ER
1063%attr(755,root,root) %{_bindir}/svnauthz-validate
1064
3d85fab0 1065# tools/client-side
f9c8674f 1066%attr(755,root,root) %{_bindir}/svnbench
1e0ba091 1067
92bfa7e1
ER
1068# tools/dev/svnraisetreeconflict
1069%attr(755,root,root) %{_bindir}/svnraisetreeconflict
1070
1e0ba091
AM
1071# tools/dev/
1072%attr(755,root,root) %{_bindir}/fsfs-access-map
f9c8674f 1073%attr(755,root,root) %{_bindir}/x509-parser
1e0ba091 1074
fe5bb6bb 1075%files -n bash-completion-subversion
101e74de 1076%defattr(644,root,root,755)
1326bb99 1077/etc/bash_completion.d/%{name}
536b3fd3 1078
f37da0a1
ER
1079%endif # net_client_only
1080
c3746b64 1081%if %{with java}
1cc7453a 1082%files -n java-subversion
1083%defattr(644,root,root,755)
b445847c
JB
1084%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.*
1085%attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0
1086%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so
1cc7453a 1087%{_javadir}/svn-javahl.jar
1088%endif
1089
ebe67b1a
JB
1090%if %{with python2}
1091%if %{with swigpy}
fa3ff1b2 1092%files -n python-subversion
f4e6a380 1093%defattr(644,root,root,755)
ebe67b1a
JB
1094%attr(755,root,root) %{_libdir}/libsvn_swig_py2-1.so.*.*.*
1095%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py2-1.so.0
1096%attr(755,root,root) %{_libdir}/libsvn_swig_py2-1.so
65318afa 1097%dir %{py_sitedir}/libsvn
3c200272 1098%attr(755,root,root) %{py_sitedir}/libsvn/_*.so
65318afa 1099%{py_sitedir}/libsvn/*.py[co]
b445847c
JB
1100%dir %{py_sitedir}/svn
1101%{py_sitedir}/svn/*.py[co]
1326bb99 1102%{_examplesdir}/python-%{name}-%{version}
a26edfbd 1103%endif
137fcafd 1104
5b21aa20 1105%if %{with csvn}
137fcafd
AM
1106%files -n python-csvn
1107%defattr(644,root,root,755)
1108%doc subversion/bindings/ctypes-python/{README,TODO}
1109%doc subversion/bindings/ctypes-python/examples/*.py
ebe67b1a 1110%{py_sitescriptdir}/csvn
3c200272 1111%{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
0905b458 1112%endif
ebe67b1a
JB
1113%endif
1114
1115%if %{with python3}
1116%if %{with swigpy}
1117%files -n python3-subversion
1118%defattr(644,root,root,755)
1119%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.*
1120%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0
1121%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so
1122%dir %{py3_sitedir}/libsvn
1123%attr(755,root,root) %{py3_sitedir}/libsvn/_*.so
1124%{py3_sitedir}/libsvn/*.py
1125%{py3_sitedir}/libsvn/__pycache__
1126%dir %{py3_sitedir}/svn
1127%{py3_sitedir}/svn/*.py
1128%{py3_sitedir}/svn/__pycache__
1129%{_examplesdir}/python3-%{name}-%{version}
1130%endif
1131
1132%if %{with csvn}
1133%files -n python3-csvn
1134%defattr(644,root,root,755)
1135%doc subversion/bindings/ctypes-python/{README,TODO}
1136%doc subversion/bindings/ctypes-python/examples/*.py
1137%{py3_sitescriptdir}/csvn
1138%{py3_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
1139%endif
1140%endif
f4e6a380 1141
0905b458 1142%if %{with perl}
b56474ff
AM
1143%files -n perl-subversion
1144%defattr(644,root,root,755)
b445847c
JB
1145%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.*
1146%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0
1147%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so
b56474ff
AM
1148%{perl_vendorarch}/SVN
1149%dir %{perl_vendorarch}/auto/SVN
1150%dir %{perl_vendorarch}/auto/SVN/*
1151%attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
a70bbcf5 1152%{_mandir}/man3/SVN::*.3pm*
0905b458 1153%endif
b56474ff 1154
d46e45ba
AM
1155%if %{with ruby}
1156%files -n ruby-subversion
1157%defattr(644,root,root,755)
b445847c
JB
1158%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.*
1159%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0
1160%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so
dd30c674
ER
1161%dir %{ruby_vendorarchdir}/svn
1162%{ruby_vendorarchdir}/svn/*.rb
1163%dir %{ruby_vendorarchdir}/svn/ext
1164%attr(755,root,root) %{ruby_vendorarchdir}/svn/ext/*.so
916011ef 1165%{ruby_ridir}/Svn
d46e45ba
AM
1166%endif
1167
0905b458 1168%if %{with apache}
93b78127
AM
1169%files -n apache-mod_dav_svn
1170%defattr(644,root,root,755)
1af5e34d
ER
1171%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf
1172%attr(755,root,root) %{apachelibdir}/mod_dav_svn.so
65318afa
AF
1173
1174%files -n apache-mod_authz_svn
1175%defattr(644,root,root,755)
1176%doc subversion/mod_authz_svn/INSTALL
1af5e34d
ER
1177%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf
1178%attr(755,root,root) %{apachelibdir}/mod_authz_svn.so
53bea8b1
AM
1179
1180%files -n apache-mod_dontdothat_svn
1181%defattr(644,root,root,755)
1182%doc tools/server-side/mod_dontdothat/README
1183%attr(755,root,root) %{apachelibdir}/mod_dontdothat.so
536b3fd3 1184%endif
This page took 0.724515 seconds and 4 git commands to generate.