3 %bcond_with net_client_only # build only net client
4 %bcond_without swig # disable bindings generation with Swig
5 %bcond_without python # build without Python bindings (broken)
6 %bcond_without csvn # build Python csvn bindings
7 %bcond_without perl # build without Perl bindings
8 %bcond_without ruby # build without Ruby bindings
9 %bcond_without apache # build without Apache support (webdav, etc)
10 %bcond_without java # build without javahl support (Java high-level bindings)
11 %bcond_with tests # don't perform "make check"
12 %bcond_without kwallet # build without kde4 wallet support
13 %bcond_without kde # build without kde4 support (alias for kwallet)
14 %bcond_without gnome # build without gnome keyring support
15 %bcond_without db # disable Subversion Berkeley DB based filesystem library
16 %bcond_with db6 # allow BDB6 (not tested by upstream, released on AGPL)
18 # for AC: --without csvn,gnome,java,kde,ruby
20 %if %{with net_client_only}
37 %undefine with_kwallet
40 %if %{without python} && %{without perl} && %{without ruby}
44 %define apxs /usr/sbin/apxs
48 %{?with_perl:%include /usr/lib/rpm/macros.perl}
49 Summary: A Concurrent Versioning system similar to but better than CVS
50 Summary(pl.UTF-8): System kontroli wersji podobny, ale lepszy, niż CVS
51 Summary(pt_BR.UTF-8): Sistema de versionamento concorrente
56 Group: Development/Version Control
57 Source0: http://www.apache.org/dist/subversion/%{name}-%{version}.tar.bz2
58 # Source0-md5: 0126847f9e8cb8ed0b90a6a18b203309
59 Source1: %{name}-dav_svn.conf
60 Source2: %{name}-authz_svn.conf
61 Source3: %{name}-svnserve.init
62 Source4: %{name}-svnserve.sysconfig
63 # current subversion tarball has correct *.swg files
64 # but after regeneration these are broken again, so
65 # we still need this script
66 Source5: %{name}-convert-typemaps-to-ifdef.py
67 Patch0: %{name}-home_etc.patch
68 Patch1: %{name}-DESTDIR.patch
69 Patch2: %{name}-ruby-datadir-path.patch
70 Patch3: %{name}-tests.patch
71 Patch4: x32-libdir.patch
72 Patch5: %{name}-rdoc.patch
73 URL: http://subversion.apache.org/
74 %{?with_apache:BuildRequires: apache-devel >= 2.4.14}
75 BuildRequires: apr-devel >= 1:1.3
76 BuildRequires: apr-util-devel >= 1:1.3
77 BuildRequires: autoconf >= 2.59
78 BuildRequires: automake
80 BuildRequires: cyrus-sasl-devel
81 %if %{with kwallet} || %{with gnome}
82 BuildRequires: dbus-devel
84 %{!?with_db6:BuildRequires: db-devel < 6}
85 BuildRequires: db-devel >= 4.1.25
86 BuildRequires: expat-devel
87 BuildRequires: gettext-tools
88 %{?with_gnome:BuildRequires: glib2-devel >= 2.0}
89 %{?with_kwallet:BuildRequires: kde4-kdelibs-devel}
90 %{?with_gnome:BuildRequires: libgnome-keyring-devel}
91 BuildRequires: libmagic-devel
92 BuildRequires: libtool >= 1.4-9
93 BuildRequires: lz4-devel
94 BuildRequires: pkgconfig
95 %{?with_csvn:BuildRequires: python-ctypesgen}
96 BuildRequires: rpm-pythonprov
97 BuildRequires: rpmbuild(macros) >= 1.656
98 BuildRequires: sed >= 4.0
99 BuildRequires: serf-devel >= 1.3.4
100 BuildRequires: sqlite3-devel >= 3.8.11.1
101 BuildRequires: texinfo
103 BuildRequires: zlib-devel >= 1.2
105 BuildRequires: jdk >= 1.5
106 BuildRequires: libstdc++-devel
109 BuildRequires: perl-devel >= 1:5.8.0
110 BuildRequires: rpm-perlprov >= 4.1-13
111 BuildRequires: swig-perl >= 1.3.24
114 BuildRequires: python-devel >= 1:2.4
115 BuildRequires: swig-python >= 1.3.24
118 BuildRequires: rpm-rubyprov
119 BuildRequires: ruby-devel >= 1:1.8.2
120 BuildRequires: ruby-irb
121 BuildRequires: ruby-rubygems
122 BuildRequires: swig-ruby >= 1.3.24
124 Requires: %{name}-libs = %{version}-%{release}
126 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
128 %define _libexecdir %{_libdir}/svn
129 %define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
130 %define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
132 %define skip_post_check_so libsvn_swig_py-1.so.* libsvn_swig_perl-1.so.* libsvn_fs_x-1.so.*
135 The goal of the Subversion project is to build a version control
136 system that is a compelling replacement for CVS in the open source
140 - All current CVS features.
141 - Directories, renames, and file meta-data are versioned.
142 - Symbolic links, etc, are supported
143 - Commits are truly atomic.
144 - Branching and tagging are cheap (constant time) operations
145 - Repeated merges are handled gracefully
146 - Support for plug-in client side diff programs
147 - Natively client/server
148 - Client/server protocol sends diffs in both directions
149 - Costs are proportional to change size, not project size
150 - Internationalization
151 - Progressive multi-lingual support
153 %description -l pl.UTF-8
154 Celem projektu Subversion jest stworzenie systemu kontroli wersji jako
158 - Wszystkie aktualne możliwości CVS.
159 - Katalogi, zmiany nazw oraz metadane plików są wersjonowane.
160 - Obsługa dowiązań symbolicznych itp.
161 - Commity są w pełni atomowe.
162 - Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami.
163 - Dobra obsługa powtarzanego łączenia (merge).
164 - Obsługa wtyczek diff po stronie klienta.
165 - Natywny klient/serwer.
166 - Klient/Serwer przesyłają diffy w obu kierunkach.
167 - Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu.
168 - Internacjonalizacja.
169 - Postępujące wsparcie dla wielu języków.
171 %description -l pt_BR.UTF-8
172 O objetivo do projeto Subversion é construir um sistema de controle de
173 versões que seja um substituto para o CVS (Concurrent Versioning
174 System) na comunidade opensource, fornecendo grandes melhorias.
177 Summary: Subversion libraries and modules
178 Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły
180 Requires: apr >= 1:1.3
181 Requires: apr-util >= 1:1.3
182 Requires: serf >= 1.3.4
183 Requires: zlib >= 1.2
184 Obsoletes: libsubversion0
187 Subversion libraries and modules.
189 %description libs -l pl.UTF-8
190 Biblioteka subversion oraz ładowalne moduły.
193 Summary: Header files and develpment documentation for subversion
194 Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion
195 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion
196 Group: Development/Libraries
197 Requires: %{name}-libs = %{version}-%{release}
198 Requires: apr-util-devel >= 1:1.3
199 Requires: serf-devel >= 1.3.4
200 Obsoletes: libsubversion0-devel
203 Header files and develpment documentation for subversion.
205 %description devel -l pl.UTF-8
206 Pliki nagłówkowe i dokumetacja do subversion.
208 %description devel -l pt_BR.UTF-8
209 Este pacote provê os arquivos necessários para desenvolvedores
210 interagirem com o Subversion.
213 Summary: Static subversion library
214 Summary(pl.UTF-8): Biblioteka statyczna subversion
215 Summary(pt_BR.UTF-8): Sistema de versionamento concorrente
216 Group: Development/Libraries
217 Requires: %{name}-devel = %{version}
218 Obsoletes: libsubversion0-static-devel
221 Static subversion library.
223 %description static -l pl.UTF-8
224 Biblioteka statyczna subversion.
226 %description static -l pt_BR.UTF-8
227 Este pacote provê um cliente estático do subversion.
230 Summary: Subversion svnserve
231 Summary(pl.UTF-8): Subversion svnserve
232 Group: Networking/Daemons
233 Requires(post,preun): /sbin/chkconfig
234 Requires(postun): /usr/sbin/groupdel
235 Requires(postun): /usr/sbin/userdel
236 Requires(pre): /bin/id
237 Requires(pre): /usr/bin/getgid
238 Requires(pre): /usr/lib/rpm/user_group.sh
239 Requires(pre): /usr/sbin/groupadd
240 Requires(pre): /usr/sbin/useradd
241 Requires(pre): /usr/sbin/usermod
242 Requires: %{name} = %{version}-%{release}
247 %description svnserve
248 Subversion svnserve server.
250 %description svnserve -l pl.UTF-8
251 Serwer subversion svnserve.
254 Summary: Subversion tools and scripts
255 Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion
256 Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion
258 Requires: %{name} = %{version}-%{release}
260 Requires: python-subversion = %{version}
263 Subversion tools and scripts.
265 %description tools -l pl.UTF-8
266 Narzędzia oraz skrypty dla subversion.
268 %package -n bash-completion-subversion
269 Summary: bash completion for subversion
270 Summary(pl.UTF-8): Dopełnienia basha dla subversion
271 Group: Applications/Shells
272 Requires: %{name} = %{version}-%{release}
273 Requires: bash-completion
274 Conflicts: %{name}-tools <= 1.1.0-0.rc6.1
275 %if "%{_rpmversion}" >= "5"
279 %description -n bash-completion-subversion
280 Bash completion for subversion.
282 %description -n bash-completion-subversion -l pl.UTF-8
283 Dopełnienia basha dla subversion.
285 %package -n java-subversion
286 Summary: Subversion Java bindings
287 Summary(pl.UTF-8): Dowiązania do Subversion dla Javy
288 Group: Development/Languages/Java
289 Requires: %{name}-libs = %{version}-%{release}
291 %description -n java-subversion
292 This is a set of Java classes which provide the functionality of
293 subversion-libs, the Subversion libraries. It is useful if you want
294 to, for example, write a Java class that manipulates a Subversion
295 repository or working copy. See the 'subversion' package for more
298 %description -n java-subversion -l pl.UTF-8
299 Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność
300 subversion-libs, czyli bibliotek Subversion. Jest przydatny przy
301 pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię
302 roboczą. Więcej informacji w pakiecie subversion.
304 %package -n python-subversion
305 Summary: Subversion Python bindings
306 Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona
307 Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion
308 Group: Development/Languages/Python
309 Requires: %{name}-libs = %{version}-%{release}
311 Obsoletes: subversion-python
313 %description -n python-subversion
314 Subversion Python bindings.
316 %description -n python-subversion -l pl.UTF-8
317 Dowiązania do Subversion dla Pythona.
319 %description -n python-subversion -l pt_BR.UTF-8
320 Módulos Python para acessar os recursos do Subversion.
322 %package -n python-csvn
323 Summary: CTypes Subversion Python bindings
324 Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona
325 Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion
326 Group: Development/Languages/Python
327 Requires: %{name}-libs = %{version}-%{release}
330 %description -n python-csvn
331 Subversion CTypes Python bindings.
333 %description -n python-csvn -l pl.UTF-8
334 Dowiązania do Subversion dla Pythona używające CTypes.
336 %description -n python-csvn -l pt_BR.UTF-8
337 Módulos Python para acessar os recursos do Subversion.
339 %package -n perl-subversion
340 Summary: Subversion Perl bindings
341 Summary(pl.UTF-8): Dowiązania do Subversion dla Perla
342 Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do Subversion
343 Group: Development/Languages/Perl
344 Requires: %{name}-libs = %{version}-%{release}
345 Obsoletes: subversion-perl
347 %description -n perl-subversion
348 Subversion Perl bindings.
350 %description -n perl-subversion -l pl.UTF-8
351 Dowiązania do Subversion dla Perla.
353 %description -n perl-subversion -l pt_BR.UTF-8
354 Módulos Perl para acessar os recursos do Subversion.
356 %package -n ruby-subversion
357 Summary: Subversion Ruby bindings
358 Summary(pl.UTF-8): Dowiązania do Subversion dla języka Ruby
359 Summary(pt_BR.UTF-8): Módulos Ruby para acessar os recursos do Subversion
360 Group: Development/Languages
361 Requires: %{name}-libs = %{version}-%{release}
362 Obsoletes: subversion-ruby
364 %description -n ruby-subversion
365 Subversion Ruby bindings.
367 %description -n ruby-subversion -l pl.UTF-8
368 Dowiązania do Subversion dla języka Ruby.
370 %description -n ruby-subversion -l pt_BR.UTF-8
371 Módulos Ruby para acessar os recursos do Subversion.
373 %package -n apache-mod_dav_svn
374 Summary: Apache module: Subversion Server
375 Summary(pl.UTF-8): Moduł Apache'a: serwer Subversion
376 Group: Networking/Daemons
377 Requires: %{name} = %{version}-%{release}
378 Requires: apache(modules-api) = %apache_modules_api
379 Requires: apache-mod_dav
381 %description -n apache-mod_dav_svn
382 Apache module: Subversion Server.
384 %description -n apache-mod_dav_svn -l pl.UTF-8
385 Moduł Apache'a: serwer Subversion.
387 %package -n apache-mod_authz_svn
388 Summary: Apache module: Subversion Server - path-based authorization
389 Summary(pl.UTF-8): Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera Subversion
390 Group: Networking/Daemons
391 Requires: %{name}-libs = %{version}-%{release}
392 Requires: apache(modules-api) = %apache_modules_api
393 Requires: apache-mod_dav_svn = %{version}-%{release}
395 %description -n apache-mod_authz_svn
396 Apache module: Subversion Server - path-based authorization.
398 %description -n apache-mod_authz_svn -l pl.UTF-8
399 Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera
402 %package -n apache-mod_dontdothat_svn
403 Summary: Apache module: Allows you to block specific svn requests
404 Summary(pl.UTF-8): Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn
405 Group: Networking/Daemons
406 Requires: %{name}-libs = %{version}-%{release}
407 Requires: apache(modules-api) = %apache_modules_api
408 Requires: apache-mod_dav_svn = %{version}-%{release}
410 %description -n apache-mod_dontdothat_svn
411 Apache module: Allows you to block specific svn requests.
413 %description -n apache-mod_dontdothat_svn -l pl.UTF-8
414 Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn.
416 %package -n gnome-keyring-subversion
417 Summary: GNOME Keyring authentication provider for Subversion
418 Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Subversion
419 Group: X11/Applications
420 Requires: %{name}-libs = %{version}-%{release}
422 %description -n gnome-keyring-subversion
423 Authentication provider module for Subversion which allows SVN client
424 to authenticate using GNOME Keyring.
426 %description -n gnome-keyring-subversion -l pl.UTF-8
427 Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
428 uwierzytelniać się przy użyciu mechanizmu GNOME Keyring.
430 %package -n kde4-kwallet-subversion
431 Summary: KDE Wallet authentication provider for Subversion
432 Summary(pl.UTF-8): Moduł uwierzytelniający dla Subversion wykorzystujący Portfel KDE
433 Group: X11/Applications
434 Requires: %{name}-libs = %{version}-%{release}
436 %description -n kde4-kwallet-subversion
437 Authentication provider module for Subversion which allows SVN client
438 to authenticate using KDE Wallet.
440 %description -n kde4-kwallet-subversion -l pl.UTF-8
441 Moduł uwierzytelniający dla Subversion pozwalający klientom SVN
442 uwierzytelniać się przy użyciu Portfela KDE.
453 sed -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4
456 # disabled regeneration - subversion 1.6.13 is not ready for swig 2.0.x
457 #%{__rm} subversion/bindings/swig/proxy/*.swg
458 #cd subversion/bindings/swig && python "%{SOURCE5}" && cd ../../..
459 chmod +x ./autogen.sh && ./autogen.sh
463 --with-utf8proc=internal \
464 --with-zlib=%{_libdir} \
465 --disable-runtime-module-search \
466 --disable-mod-activation \
468 --with-berkeley-db="db.h:%{_includedir}:%{_libdir}:db" \
469 %{?with_db6:--enable-bdb6} \
471 --without-berkeley-db \
474 --with-apache-libexecdir="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
475 --with-apxs=%{_sbindir}/apxs \
483 svn_cv_ruby_sitedir_libsuffix="" \
484 svn_cv_ruby_sitedir_archsuffix="" \
485 --with-ruby-sitedir=%{ruby_vendorarchdir} \
487 ac_cv_path_RUBY=none \
490 --with-ctypesgen=%{_bindir}/ctypesgen.py \
494 --with-jdk="%{java_home}" \
499 --with-serf=%{_prefix} \
500 --with-apr=%{_bindir}/apr-1-config \
501 --with-apr-util=%{_bindir}/apu-1-config \
514 # Python ctypes bindings
515 %{__make} ctypes-python
518 # Python swig bindings
520 swig_pydir=%{py_sitedir}/libsvn \
521 swig_pydir_extra=%{py_sitedir}/svn
525 %{__make} -j1 swig-pl-lib
526 cd subversion/bindings/swig/perl/native
527 %{__perl} Makefile.PL INSTALLDIRS=vendor
532 %{__make} -j1 javahl \
533 javahl_javadir="%{_javadir}"
543 %{__make} -j1 check-ctypes-python
546 %{__make} -j1 check-swig-py
549 %{__make} -j1 check-swig-pl
552 # disabled, see https://bugs.launchpad.net/pld-linux/+bug/734340
553 #%{__make} check-swig-rb
558 rm -rf $RPM_BUILD_ROOT
559 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \
560 $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \
561 $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \
562 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
563 $RPM_BUILD_ROOT/home/services/subversion{,/repos}
565 %{__make} -j1 install \
566 pkgconfig_dir=%{_pkgconfigdir} \
567 toolsdir=%{_bindir} \
568 DESTDIR=$RPM_BUILD_ROOT \
569 APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
572 javahl_javadir="%{_javadir}" \
576 swig_pydir=%{py_sitedir}/libsvn \
577 swig_pydir_extra=%{py_sitedir}/svn \
582 # manually execute install-ctypes-python target
583 cd subversion/bindings/ctypes-python
589 %{__make} -j1 install-swig-rb install-swig-rb-doc \
590 SWIG_RB_RI_DATADIR=$RPM_BUILD_ROOT%{ruby_ridir} \
591 DESTDIR=$RPM_BUILD_ROOT
594 %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/OptionParser
595 %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Time
596 %if "%{ruby_abi}" >= "2.0"
597 %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/File
599 %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri
600 %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid
604 %{__make} install-swig-pl-lib \
605 DESTDIR=$RPM_BUILD_ROOT
606 %{__make} -C subversion/bindings/swig/perl/native install \
607 DESTDIR=$RPM_BUILD_ROOT \
608 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
609 LIBDIR=$RPM_BUILD_ROOT%{_libdir}
613 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf
614 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf
615 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve
616 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve
619 %if %{without net_client_only}
620 install -p tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup
623 # rename not to conflict with standard packages. (are these needed at all?)
624 %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff
625 %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff3
626 %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff4
628 %if %{with python} || %{with csvn}
629 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
630 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
634 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la
635 # .a created on ac only
636 %{__rm} -f $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.a
637 cp -p tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
640 cp -p tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name}
641 cp -p tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
644 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a}
647 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a}
649 %{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/svn/ext/*.la
652 %if %{with gnome} || %{with kwallet}
653 # dlopened by soname (libsvn_auth_*-1.so.0)
654 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la}
660 rm -rf $RPM_BUILD_ROOT
664 %useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn
666 %post libs -p /sbin/ldconfig
667 %postun libs -p /sbin/ldconfig
669 %post devel -p /sbin/postshell
670 -/usr/sbin/fix-info-dir -c %{_infodir}
672 %postun devel -p /sbin/postshell
673 -/usr/sbin/fix-info-dir -c %{_infodir}
675 %post -n java-subversion -p /sbin/ldconfig
676 %postun -n java-subversion -p /sbin/ldconfig
678 %post -n perl-subversion -p /sbin/ldconfig
679 %postun -n perl-subversion -p /sbin/ldconfig
681 %post -n python-subversion -p /sbin/ldconfig
682 %postun -n python-subversion -p /sbin/ldconfig
684 %post -n ruby-subversion -p /sbin/ldconfig
685 %postun -n ruby-subversion -p /sbin/ldconfig
687 %post -n gnome-keyring-subversion -p /sbin/ldconfig
688 %postun -n gnome-keyring-subversion -p /sbin/ldconfig
690 %post -n kde4-kwallet-subversion -p /sbin/ldconfig
691 %postun -n kde4-kwallet-subversion -p /sbin/ldconfig
694 /sbin/chkconfig --add svnserve
695 %service svnserve restart "svnserve daemon"
698 if [ "$1" = "0" ]; then
699 %service svnserve stop
700 /sbin/chkconfig --del svnserve
704 if [ "$1" = "0" ]; then
709 %post -n apache-mod_dav_svn
710 %service -q httpd restart
712 %postun -n apache-mod_dav_svn
713 if [ "$1" = "0" ]; then
714 %service -q httpd restart
717 %post -n apache-mod_authz_svn
718 %service -q httpd restart
720 %postun -n apache-mod_authz_svn
721 if [ "$1" = "0" ]; then
722 %service -q httpd restart
725 %post -n apache-mod_dontdothat_svn
726 %service -q httpd restart
728 %postun -n apache-mod_dontdothat_svn
729 if [ "$1" = "0" ]; then
730 %service -q httpd restart
734 %defattr(644,root,root,755)
735 %doc BUGS CHANGES INSTALL README
737 %doc tools/hook-scripts/*.{pl,py,example}
738 %doc tools/hook-scripts/mailer/*.{py,example}
740 %attr(755,root,root) %{_bindir}/fsfs-stats
741 %attr(755,root,root) %{_bindir}/svn
742 %attr(755,root,root) %{_bindir}/svn-mergeinfo-normalizer
743 %attr(755,root,root) %{_bindir}/svnadmin
744 %attr(755,root,root) %{_bindir}/svnconflict
745 %attr(755,root,root) %{_bindir}/svndumpfilter
746 %attr(755,root,root) %{_bindir}/svnlook
747 %attr(755,root,root) %{_bindir}/svnmover
748 %attr(755,root,root) %{_bindir}/svnmucc
749 %attr(755,root,root) %{_bindir}/svnrdump
750 %attr(755,root,root) %{_bindir}/svnsync
751 %attr(755,root,root) %{_bindir}/svnversion
752 %{_mandir}/man1/svn.1*
753 %{_mandir}/man1/svnadmin.1*
754 %{_mandir}/man1/svndumpfilter.1*
755 %{_mandir}/man1/svnrdump.1*
756 %{_mandir}/man1/svnlook.1*
757 %{_mandir}/man1/svnmucc.1*
758 %{_mandir}/man1/svnsync.1*
759 %{_mandir}/man1/svnversion.1*
761 %files libs -f %{name}.lang
762 %defattr(644,root,root,755)
763 %dir %{_sysconfdir}/%{name}
764 %attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.*
765 %attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0
766 %attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.*
767 %attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0
768 %attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.*
769 %attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0
770 %attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.*
771 %attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0
772 %if %{without net_client_only}
773 %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.*
774 %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0
776 %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.*
777 %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0
778 %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.*
779 %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0
780 %attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so.*.*.*
781 %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_x-1.so.0
782 %attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.*
783 %attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0
784 %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.*
785 %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0
786 %attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so.*.*.*
787 %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_serf-1.so.0
788 %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.*
789 %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0
790 %attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.*
791 %attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0
792 %attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.*
793 %attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0
794 %attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.*
795 %attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0
798 %defattr(644,root,root,755)
799 %attr(755,root,root) %{_libdir}/libsvn_client-1.so
800 %attr(755,root,root) %{_libdir}/libsvn_delta-1.so
801 %attr(755,root,root) %{_libdir}/libsvn_diff-1.so
802 %attr(755,root,root) %{_libdir}/libsvn_fs-1.so
803 %if %{without net_client_only}
804 %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so
806 %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so
807 %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so
808 %attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so
809 %attr(755,root,root) %{_libdir}/libsvn_ra-1.so
810 %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so
811 %attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so
812 %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so
813 %attr(755,root,root) %{_libdir}/libsvn_repos-1.so
814 %attr(755,root,root) %{_libdir}/libsvn_subr-1.so
815 %attr(755,root,root) %{_libdir}/libsvn_wc-1.so
816 %{_libdir}/libsvn_client-1.la
817 %{_libdir}/libsvn_delta-1.la
818 %{_libdir}/libsvn_diff-1.la
819 %{_libdir}/libsvn_fs-1.la
820 %if %{without net_client_only}
821 %{_libdir}/libsvn_fs_base-1.la
823 %{_libdir}/libsvn_fs_fs-1.la
824 %{_libdir}/libsvn_fs_util-1.la
825 %{_libdir}/libsvn_fs_x-1.la
826 %{_libdir}/libsvn_ra-1.la
827 %{_libdir}/libsvn_ra_local-1.la
828 %{_libdir}/libsvn_ra_serf-1.la
829 %{_libdir}/libsvn_ra_svn-1.la
830 %{_libdir}/libsvn_repos-1.la
831 %{_libdir}/libsvn_subr-1.la
832 %{_libdir}/libsvn_wc-1.la
834 # only for feature check, linking will fail (no libsvn_auth_gnome_keyring.so)
835 %{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
838 # only for feature check, linking will fail (no libsvn_auth_kwallet.so)
839 %{_pkgconfigdir}/libsvn_auth_kwallet.pc
841 %{_pkgconfigdir}/libsvn_client.pc
842 %{_pkgconfigdir}/libsvn_delta.pc
843 %{_pkgconfigdir}/libsvn_diff.pc
844 %{_pkgconfigdir}/libsvn_fs.pc
845 %if %{without net_client_only}
846 %{_pkgconfigdir}/libsvn_fs_base.pc
848 %{_pkgconfigdir}/libsvn_fs_fs.pc
849 %{_pkgconfigdir}/libsvn_fs_util.pc
850 %{_pkgconfigdir}/libsvn_fs_x.pc
851 %{_pkgconfigdir}/libsvn_ra.pc
852 %{_pkgconfigdir}/libsvn_ra_local.pc
853 %{_pkgconfigdir}/libsvn_ra_serf.pc
854 %{_pkgconfigdir}/libsvn_ra_svn.pc
855 %{_pkgconfigdir}/libsvn_repos.pc
856 %{_pkgconfigdir}/libsvn_subr.pc
857 %{_pkgconfigdir}/libsvn_wc.pc
858 %{_includedir}/%{name}-1
859 %{_examplesdir}/%{name}-%{version}
862 %defattr(644,root,root,755)
863 %{_libdir}/libsvn_client-1.a
864 %{_libdir}/libsvn_delta-1.a
865 %{_libdir}/libsvn_diff-1.a
866 %{_libdir}/libsvn_fs-1.a
867 %if %{without net_client_only}
868 %{_libdir}/libsvn_fs_base-1.a
870 %{_libdir}/libsvn_fs_fs-1.a
871 %{_libdir}/libsvn_fs_util-1.a
872 %{_libdir}/libsvn_fs_x-1.a
873 %{_libdir}/libsvn_ra-1.a
874 %{_libdir}/libsvn_ra_local-1.a
875 %{_libdir}/libsvn_ra_serf-1.a
876 %{_libdir}/libsvn_ra_svn-1.a
877 %{_libdir}/libsvn_repos-1.a
878 %{_libdir}/libsvn_subr-1.a
879 %{_libdir}/libsvn_wc-1.a
882 %files -n gnome-keyring-subversion
883 %defattr(644,root,root,755)
884 %attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.*
885 %attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0
886 # does anything use it? requires libsvn_auth_gnome_keyring.so
887 #%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc
891 %files -n kde4-kwallet-subversion
892 %defattr(644,root,root,755)
893 %attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.*
894 %attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0
895 # does anything use it? requires libsvn_auth_kwallet.so
896 #%{_pkgconfigdir}/libsvn_auth_kwallet.pc
899 %if %{without net_client_only}
901 %defattr(644,root,root,755)
902 %attr(755,root,root) %{_bindir}/svnserve
903 %{_mandir}/man5/svnserve.conf.5*
904 %{_mandir}/man8/svnserve.8*
905 %dir %attr(750,svn,svn) /home/services/subversion
906 %dir %attr(750,svn,svn) /home/services/subversion/repos
908 %attr(754,root,root) /etc/rc.d/init.d/svnserve
909 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve
913 %defattr(644,root,root,755)
914 # tools/backup/hot-backup.py
915 %attr(755,root,root) %{_bindir}/svn-hot-backup
918 %attr(755,root,root) %{_bindir}/svndiff
919 %attr(755,root,root) %{_bindir}/svndiff3
920 %attr(755,root,root) %{_bindir}/svndiff4
923 %attr(755,root,root) %{_bindir}/svnfsfs
924 %attr(755,root,root) %{_bindir}/svn-populate-node-origins-index
925 %attr(755,root,root) %{_bindir}/svnauthz
926 %attr(755,root,root) %{_bindir}/svnauthz-validate
929 %attr(755,root,root) %{_bindir}/svnbench
931 # tools/dev/svnraisetreeconflict
932 %attr(755,root,root) %{_bindir}/svnraisetreeconflict
935 %attr(755,root,root) %{_bindir}/fsfs-access-map
936 %attr(755,root,root) %{_bindir}/x509-parser
938 %files -n bash-completion-subversion
939 %defattr(644,root,root,755)
940 /etc/bash_completion.d/%{name}
942 %endif # net_client_only
945 %files -n java-subversion
946 %defattr(644,root,root,755)
947 %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.*
948 %attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0
949 %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so
950 %{_javadir}/svn-javahl.jar
954 %files -n python-subversion
955 %defattr(644,root,root,755)
956 %doc tools/backup/*.py
957 %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.*
958 %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0
959 %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so
960 %dir %{py_sitedir}/libsvn
961 %attr(755,root,root) %{py_sitedir}/libsvn/_*.so
962 %{py_sitedir}/libsvn/*.py[co]
963 %dir %{py_sitedir}/svn
964 %{py_sitedir}/svn/*.py[co]
965 %{_examplesdir}/python-%{name}-%{version}
969 %files -n python-csvn
970 %defattr(644,root,root,755)
971 %doc subversion/bindings/ctypes-python/{README,TODO}
972 %doc subversion/bindings/ctypes-python/examples/*.py
973 %dir %{py_sitescriptdir}/csvn
974 %{py_sitescriptdir}/csvn/*.py[co]
975 %dir %{py_sitescriptdir}/csvn/core
976 %{py_sitescriptdir}/csvn/core/*.py[co]
977 %dir %{py_sitescriptdir}/csvn/ext
978 %{py_sitescriptdir}/csvn/ext/*.py[co]
979 %{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
983 %files -n perl-subversion
984 %defattr(644,root,root,755)
985 %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.*
986 %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0
987 %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so
988 %{perl_vendorarch}/SVN
989 %dir %{perl_vendorarch}/auto/SVN
990 %dir %{perl_vendorarch}/auto/SVN/*
991 %attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
992 %{_mandir}/man3/*.3pm*
996 %files -n ruby-subversion
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.*
999 %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0
1000 %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so
1001 %dir %{ruby_vendorarchdir}/svn
1002 %{ruby_vendorarchdir}/svn/*.rb
1003 %dir %{ruby_vendorarchdir}/svn/ext
1004 %attr(755,root,root) %{ruby_vendorarchdir}/svn/ext/*.so
1009 %files -n apache-mod_dav_svn
1010 %defattr(644,root,root,755)
1011 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf
1012 %attr(755,root,root) %{apachelibdir}/mod_dav_svn.so
1014 %files -n apache-mod_authz_svn
1015 %defattr(644,root,root,755)
1016 %doc subversion/mod_authz_svn/INSTALL
1017 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf
1018 %attr(755,root,root) %{apachelibdir}/mod_authz_svn.so
1020 %files -n apache-mod_dontdothat_svn
1021 %defattr(644,root,root,755)
1022 %doc tools/server-side/mod_dontdothat/README
1023 %attr(755,root,root) %{apachelibdir}/mod_dontdothat.so