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