]> git.pld-linux.org Git - packages/subversion.git/blame - subversion.spec
- adjusted pkgconfig dir
[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
a0c21d09 58Version: 1.14.2
ebe67b1a 59Release: 2
8df86594 60License: Apache v2.0
93b78127 61Group: Development/Version Control
4e48afb2 62Source0: https://www.apache.org/dist/subversion/%{name}-%{version}.tar.bz2
a0c21d09 63# Source0-md5: 9927b167d1c67d663ca63125907f6f69
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}
8b023a9d 149%requires_ge sqlite3
93b78127
AM
150BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
151
f4070f5f 152%define _libexecdir %{_libdir}/svn
1af5e34d
ER
153%define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
154%define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
93b78127 155
ebe67b1a 156%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 157
93b78127
AM
158%description
159The goal of the Subversion project is to build a version control
160system that is a compelling replacement for CVS in the open source
161community.
162
163Our goals are:
164- All current CVS features.
165- Directories, renames, and file meta-data are versioned.
166- Symbolic links, etc, are supported
167- Commits are truly atomic.
168- Branching and tagging are cheap (constant time) operations
169- Repeated merges are handled gracefully
170- Support for plug-in client side diff programs
171- Natively client/server
172- Client/server protocol sends diffs in both directions
173- Costs are proportional to change size, not project size
174- Internationalization
175- Progressive multi-lingual support
176
aa59005f 177%description -l pl.UTF-8
93b78127
AM
178Celem projektu Subversion jest stworzenie systemu kontroli wersji jako
179zamiennika dla CVS.
180
181Cele projektu to:
aa59005f 182- Wszystkie aktualne możliwości CVS.
24406120
JB
183- Katalogi, zmiany nazw oraz metadane plików są wersjonowane.
184- Obsługa dowiązań symbolicznych itp.
aa59005f
JR
185- Commity są w pełni atomowe.
186- Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami.
24406120
JB
187- Dobra obsługa powtarzanego łączenia (merge).
188- Obsługa wtyczek diff po stronie klienta.
93b78127 189- Natywny klient/serwer.
aa59005f 190- Klient/Serwer przesyłają diffy w obu kierunkach.
93b78127
AM
191- Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu.
192- Internacjonalizacja.
aa59005f 193- Postępujące wsparcie dla wielu języków.
93b78127 194
aa59005f
JR
195%description -l pt_BR.UTF-8
196O objetivo do projeto Subversion é construir um sistema de controle de
197versões que seja um substituto para o CVS (Concurrent Versioning
92066deb 198System) na comunidade opensource, fornecendo grandes melhorias.
199
f4e6a380
AM
200%package libs
201Summary: Subversion libraries and modules
abe3c421 202Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły
f4e6a380 203Group: Libraries
32509ffb 204Requires: apr >= 1:1.4
8d40da51
JB
205Requires: apr-util >= 1:1.3
206Requires: serf >= 1.3.4
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
12c96b58
ER
817%post -n ruby-subversion -p /sbin/ldconfig
818%postun -n ruby-subversion -p /sbin/ldconfig
819
820%post -n gnome-keyring-subversion -p /sbin/ldconfig
821%postun -n gnome-keyring-subversion -p /sbin/ldconfig
822
ab99ba37
JR
823%post -n kde5-kwallet-subversion -p /sbin/ldconfig
824%postun -n kde5-kwallet-subversion -p /sbin/ldconfig
12c96b58 825
b56474ff 826%post svnserve
e8d9186f
ER
827/sbin/chkconfig --add svnserve
828%service svnserve restart "svnserve daemon"
829
b56474ff
AM
830%preun svnserve
831if [ "$1" = "0" ]; then
e8d9186f
ER
832 %service svnserve stop
833 /sbin/chkconfig --del svnserve
b56474ff
AM
834fi
835
a1bac09d
836%postun svnserve
837if [ "$1" = "0" ]; then
12c96b58
ER
838 %userremove svn
839 %groupremove svn
a1bac09d
840fi
841
93b78127 842%post -n apache-mod_dav_svn
e8d9186f 843%service -q httpd restart
93b78127 844
ba425c92 845%postun -n apache-mod_dav_svn
93b78127 846if [ "$1" = "0" ]; then
e8d9186f 847 %service -q httpd restart
93b78127
AM
848fi
849
9688ba4c
JR
850%post -n apache-mod_authz_svn
851%service -q httpd restart
852
ba425c92 853%postun -n apache-mod_authz_svn
9688ba4c
JR
854if [ "$1" = "0" ]; then
855 %service -q httpd restart
856fi
857
53bea8b1
AM
858%post -n apache-mod_dontdothat_svn
859%service -q httpd restart
860
861%postun -n apache-mod_dontdothat_svn
862if [ "$1" = "0" ]; then
863 %service -q httpd restart
864fi
865
93b78127
AM
866%files
867%defattr(644,root,root,755)
c5c1593f 868%doc BUGS CHANGES INSTALL README
d37298dc 869%doc doc/*/*.html
ebe67b1a
JB
870%doc builddir/tools/hook-scripts/*.pl
871%doc tools/hook-scripts/*.{py,example}
4bbdbbf8 872%doc tools/hook-scripts/mailer/*.{py,example}
1326bb99 873%doc tools/xslt/*
535649a6 874%attr(755,root,root) %{_bindir}/fsfs-stats
b445847c 875%attr(755,root,root) %{_bindir}/svn
535649a6 876%attr(755,root,root) %{_bindir}/svn-mergeinfo-normalizer
b445847c 877%attr(755,root,root) %{_bindir}/svnadmin
535649a6 878%attr(755,root,root) %{_bindir}/svnconflict
b445847c
JB
879%attr(755,root,root) %{_bindir}/svndumpfilter
880%attr(755,root,root) %{_bindir}/svnlook
535649a6 881%attr(755,root,root) %{_bindir}/svnmover
3d85fab0 882%attr(755,root,root) %{_bindir}/svnmucc
1e0ba091 883%attr(755,root,root) %{_bindir}/svnrdump
b445847c
JB
884%attr(755,root,root) %{_bindir}/svnsync
885%attr(755,root,root) %{_bindir}/svnversion
886%{_mandir}/man1/svn.1*
887%{_mandir}/man1/svnadmin.1*
888%{_mandir}/man1/svndumpfilter.1*
c5c1593f 889%{_mandir}/man1/svnrdump.1*
b445847c 890%{_mandir}/man1/svnlook.1*
3d85fab0 891%{_mandir}/man1/svnmucc.1*
b445847c
JB
892%{_mandir}/man1/svnsync.1*
893%{_mandir}/man1/svnversion.1*
f4e6a380 894
205a3ddc 895%files libs -f %{name}.lang
f4e6a380 896%defattr(644,root,root,755)
d9d66e02 897%dir %{_sysconfdir}/%{name}
b445847c
JB
898%attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.*
899%attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0
900%attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.*
901%attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0
902%attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.*
903%attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0
904%attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.*
905%attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0
5f328a6e 906%if %{without net_client_only}
b445847c
JB
907%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.*
908%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0
5f328a6e 909%endif
b445847c
JB
910%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.*
911%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0
912%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.*
913%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0
f9c8674f
AM
914%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so.*.*.*
915%attr(755,root,root) %ghost %{_libdir}/libsvn_fs_x-1.so.0
b445847c
JB
916%attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.*
917%attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0
918%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.*
919%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0
1e0ba091
AM
920%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so.*.*.*
921%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_serf-1.so.0
b445847c
JB
922%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.*
923%attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0
924%attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.*
925%attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0
926%attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.*
927%attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0
928%attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.*
929%attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0
93b78127
AM
930
931%files devel
932%defattr(644,root,root,755)
b445847c
JB
933%attr(755,root,root) %{_libdir}/libsvn_client-1.so
934%attr(755,root,root) %{_libdir}/libsvn_delta-1.so
935%attr(755,root,root) %{_libdir}/libsvn_diff-1.so
936%attr(755,root,root) %{_libdir}/libsvn_fs-1.so
5f328a6e 937%if %{without net_client_only}
b445847c 938%attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so
5f328a6e 939%endif
b445847c
JB
940%attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so
941%attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so
f9c8674f 942%attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so
b445847c
JB
943%attr(755,root,root) %{_libdir}/libsvn_ra-1.so
944%attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so
1e0ba091 945%attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so
b445847c
JB
946%attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so
947%attr(755,root,root) %{_libdir}/libsvn_repos-1.so
948%attr(755,root,root) %{_libdir}/libsvn_subr-1.so
949%attr(755,root,root) %{_libdir}/libsvn_wc-1.so
950%{_libdir}/libsvn_client-1.la
951%{_libdir}/libsvn_delta-1.la
952%{_libdir}/libsvn_diff-1.la
953%{_libdir}/libsvn_fs-1.la
5f328a6e 954%if %{without net_client_only}
b445847c 955%{_libdir}/libsvn_fs_base-1.la
5f328a6e 956%endif
b445847c
JB
957%{_libdir}/libsvn_fs_fs-1.la
958%{_libdir}/libsvn_fs_util-1.la
f9c8674f 959%{_libdir}/libsvn_fs_x-1.la
b445847c
JB
960%{_libdir}/libsvn_ra-1.la
961%{_libdir}/libsvn_ra_local-1.la
1e0ba091 962%{_libdir}/libsvn_ra_serf-1.la
b445847c
JB
963%{_libdir}/libsvn_ra_svn-1.la
964%{_libdir}/libsvn_repos-1.la
965%{_libdir}/libsvn_subr-1.la
966%{_libdir}/libsvn_wc-1.la
ff76629a 967%if %{with gnome}
9eb45f32
JB
968# only for feature check, linking will fail (no libsvn_auth_gnome_keyring.so)
969%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
ff76629a
JP
970%endif
971%if %{with kwallet}
9eb45f32
JB
972# only for feature check, linking will fail (no libsvn_auth_kwallet.so)
973%{_pkgconfigdir}/libsvn_auth_kwallet.pc
ff76629a 974%endif
9eb45f32
JB
975%{_pkgconfigdir}/libsvn_client.pc
976%{_pkgconfigdir}/libsvn_delta.pc
977%{_pkgconfigdir}/libsvn_diff.pc
978%{_pkgconfigdir}/libsvn_fs.pc
f9c8674f 979%if %{without net_client_only}
9eb45f32
JB
980%{_pkgconfigdir}/libsvn_fs_base.pc
981%endif
982%{_pkgconfigdir}/libsvn_fs_fs.pc
983%{_pkgconfigdir}/libsvn_fs_util.pc
984%{_pkgconfigdir}/libsvn_fs_x.pc
985%{_pkgconfigdir}/libsvn_ra.pc
986%{_pkgconfigdir}/libsvn_ra_local.pc
987%{_pkgconfigdir}/libsvn_ra_serf.pc
988%{_pkgconfigdir}/libsvn_ra_svn.pc
989%{_pkgconfigdir}/libsvn_repos.pc
990%{_pkgconfigdir}/libsvn_subr.pc
991%{_pkgconfigdir}/libsvn_wc.pc
b445847c 992%{_includedir}/%{name}-1
1326bb99 993%{_examplesdir}/%{name}-%{version}
93b78127
AM
994
995%files static
996%defattr(644,root,root,755)
b445847c
JB
997%{_libdir}/libsvn_client-1.a
998%{_libdir}/libsvn_delta-1.a
999%{_libdir}/libsvn_diff-1.a
1000%{_libdir}/libsvn_fs-1.a
5f328a6e 1001%if %{without net_client_only}
b445847c 1002%{_libdir}/libsvn_fs_base-1.a
5f328a6e 1003%endif
b445847c
JB
1004%{_libdir}/libsvn_fs_fs-1.a
1005%{_libdir}/libsvn_fs_util-1.a
f9c8674f 1006%{_libdir}/libsvn_fs_x-1.a
b445847c
JB
1007%{_libdir}/libsvn_ra-1.a
1008%{_libdir}/libsvn_ra_local-1.a
1e0ba091 1009%{_libdir}/libsvn_ra_serf-1.a
b445847c
JB
1010%{_libdir}/libsvn_ra_svn-1.a
1011%{_libdir}/libsvn_repos-1.a
1012%{_libdir}/libsvn_subr-1.a
1013%{_libdir}/libsvn_wc-1.a
93b78127 1014
bfb248d0 1015%if %{with gnome}
1429fa1c
AM
1016%files -n gnome-keyring-subversion
1017%defattr(644,root,root,755)
1018%attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.*
1019%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0
8d40da51
JB
1020# does anything use it? requires libsvn_auth_gnome_keyring.so
1021#%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
bfb248d0 1022%endif
1429fa1c 1023
65f2befa 1024%if %{with kwallet}
ab99ba37 1025%files -n kde5-kwallet-subversion
1429fa1c
AM
1026%defattr(644,root,root,755)
1027%attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.*
1028%attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0
8d40da51
JB
1029# does anything use it? requires libsvn_auth_kwallet.so
1030#%{_pkgconfigdir}/libsvn_auth_kwallet.pc
65f2befa 1031%endif
1429fa1c 1032
12c96b58 1033%if %{without net_client_only}
b56474ff
AM
1034%files svnserve
1035%defattr(644,root,root,755)
1036%attr(755,root,root) %{_bindir}/svnserve
b445847c
JB
1037%{_mandir}/man5/svnserve.conf.5*
1038%{_mandir}/man8/svnserve.8*
a1bac09d
1039%dir %attr(750,svn,svn) /home/services/subversion
1040%dir %attr(750,svn,svn) /home/services/subversion/repos
0905b458 1041%if %{with apache}
b56474ff 1042%attr(754,root,root) /etc/rc.d/init.d/svnserve
86ea8fde 1043%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve
0905b458 1044%endif
b56474ff 1045
4bbdbbf8
AM
1046%files tools
1047%defattr(644,root,root,755)
92bfa7e1 1048# tools/backup/hot-backup.py
1326bb99 1049%attr(755,root,root) %{_bindir}/svn-hot-backup
fe5bb6bb 1050
92bfa7e1
ER
1051# tools/diff
1052%attr(755,root,root) %{_bindir}/svndiff
1053%attr(755,root,root) %{_bindir}/svndiff3
1054%attr(755,root,root) %{_bindir}/svndiff4
1055
1056# tools/server-side
f9c8674f 1057%attr(755,root,root) %{_bindir}/svnfsfs
92bfa7e1 1058%attr(755,root,root) %{_bindir}/svn-populate-node-origins-index
3d85fab0 1059%attr(755,root,root) %{_bindir}/svnauthz
92bfa7e1
ER
1060%attr(755,root,root) %{_bindir}/svnauthz-validate
1061
3d85fab0 1062# tools/client-side
f9c8674f 1063%attr(755,root,root) %{_bindir}/svnbench
1e0ba091 1064
92bfa7e1
ER
1065# tools/dev/svnraisetreeconflict
1066%attr(755,root,root) %{_bindir}/svnraisetreeconflict
1067
1e0ba091
AM
1068# tools/dev/
1069%attr(755,root,root) %{_bindir}/fsfs-access-map
f9c8674f 1070%attr(755,root,root) %{_bindir}/x509-parser
1e0ba091 1071
fe5bb6bb 1072%files -n bash-completion-subversion
101e74de 1073%defattr(644,root,root,755)
1326bb99 1074/etc/bash_completion.d/%{name}
536b3fd3 1075
f37da0a1
ER
1076%endif # net_client_only
1077
c3746b64 1078%if %{with java}
1cc7453a 1079%files -n java-subversion
1080%defattr(644,root,root,755)
b445847c
JB
1081%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.*
1082%attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0
1083%attr(755,root,root) %{_libdir}/libsvnjavahl-1.so
1cc7453a 1084%{_javadir}/svn-javahl.jar
1085%endif
1086
ebe67b1a
JB
1087%if %{with python2}
1088%if %{with swigpy}
fa3ff1b2 1089%files -n python-subversion
f4e6a380 1090%defattr(644,root,root,755)
ebe67b1a
JB
1091%attr(755,root,root) %{_libdir}/libsvn_swig_py2-1.so.*.*.*
1092%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py2-1.so.0
1093%attr(755,root,root) %{_libdir}/libsvn_swig_py2-1.so
65318afa 1094%dir %{py_sitedir}/libsvn
3c200272 1095%attr(755,root,root) %{py_sitedir}/libsvn/_*.so
65318afa 1096%{py_sitedir}/libsvn/*.py[co]
b445847c
JB
1097%dir %{py_sitedir}/svn
1098%{py_sitedir}/svn/*.py[co]
1326bb99 1099%{_examplesdir}/python-%{name}-%{version}
a26edfbd 1100%endif
137fcafd 1101
5b21aa20 1102%if %{with csvn}
137fcafd
AM
1103%files -n python-csvn
1104%defattr(644,root,root,755)
1105%doc subversion/bindings/ctypes-python/{README,TODO}
1106%doc subversion/bindings/ctypes-python/examples/*.py
ebe67b1a 1107%{py_sitescriptdir}/csvn
3c200272 1108%{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
0905b458 1109%endif
ebe67b1a
JB
1110%endif
1111
1112%if %{with python3}
1113%if %{with swigpy}
1114%files -n python3-subversion
1115%defattr(644,root,root,755)
1116%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.*
1117%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0
1118%attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so
1119%dir %{py3_sitedir}/libsvn
1120%attr(755,root,root) %{py3_sitedir}/libsvn/_*.so
1121%{py3_sitedir}/libsvn/*.py
1122%{py3_sitedir}/libsvn/__pycache__
1123%dir %{py3_sitedir}/svn
1124%{py3_sitedir}/svn/*.py
1125%{py3_sitedir}/svn/__pycache__
1126%{_examplesdir}/python3-%{name}-%{version}
1127%endif
1128
1129%if %{with csvn}
1130%files -n python3-csvn
1131%defattr(644,root,root,755)
1132%doc subversion/bindings/ctypes-python/{README,TODO}
1133%doc subversion/bindings/ctypes-python/examples/*.py
1134%{py3_sitescriptdir}/csvn
1135%{py3_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
1136%endif
1137%endif
f4e6a380 1138
0905b458 1139%if %{with perl}
b56474ff
AM
1140%files -n perl-subversion
1141%defattr(644,root,root,755)
b445847c
JB
1142%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.*
1143%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0
1144%attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so
b56474ff
AM
1145%{perl_vendorarch}/SVN
1146%dir %{perl_vendorarch}/auto/SVN
1147%dir %{perl_vendorarch}/auto/SVN/*
1148%attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
a70bbcf5 1149%{_mandir}/man3/SVN::*.3pm*
0905b458 1150%endif
b56474ff 1151
d46e45ba
AM
1152%if %{with ruby}
1153%files -n ruby-subversion
1154%defattr(644,root,root,755)
b445847c
JB
1155%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.*
1156%attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0
1157%attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so
dd30c674
ER
1158%dir %{ruby_vendorarchdir}/svn
1159%{ruby_vendorarchdir}/svn/*.rb
1160%dir %{ruby_vendorarchdir}/svn/ext
1161%attr(755,root,root) %{ruby_vendorarchdir}/svn/ext/*.so
916011ef 1162%{ruby_ridir}/Svn
d46e45ba
AM
1163%endif
1164
0905b458 1165%if %{with apache}
93b78127
AM
1166%files -n apache-mod_dav_svn
1167%defattr(644,root,root,755)
1af5e34d
ER
1168%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf
1169%attr(755,root,root) %{apachelibdir}/mod_dav_svn.so
65318afa
AF
1170
1171%files -n apache-mod_authz_svn
1172%defattr(644,root,root,755)
1173%doc subversion/mod_authz_svn/INSTALL
1af5e34d
ER
1174%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf
1175%attr(755,root,root) %{apachelibdir}/mod_authz_svn.so
53bea8b1
AM
1176
1177%files -n apache-mod_dontdothat_svn
1178%defattr(644,root,root,755)
1179%doc tools/server-side/mod_dontdothat/README
1180%attr(755,root,root) %{apachelibdir}/mod_dontdothat.so
536b3fd3 1181%endif
This page took 0.520105 seconds and 4 git commands to generate.