3 %bcond_with internal_neon # build with internal neon
4 %bcond_with net_client_only # build only net client
6 %include /usr/lib/rpm/macros.python
7 %{!?with_net_client_only:%include /usr/lib/rpm/macros.perl}
8 Summary: A Concurrent Versioning system similar to but better than CVS
9 Summary(pl): System kontroli wersji podobny, ale lepszy, ni¿ CVS
10 Summary(pt_BR): Sistema de versionamento concorrente
14 License: Apache/BSD Style
15 Group: Development/Version Control
16 Source0: http://subversion.tigris.org/tarballs/%{name}-%{version}.tar.bz2
17 # Source0-md5: a8961f86a2bbd8deb59b2b62db303461
18 Source1: %{name}-dav_svn.conf
19 Source2: %{name}-authz_svn.conf
20 Source3: %{name}-svnserve.init
21 Source4: %{name}-svnserve.sysconfig
22 #Patch0: %{name}-svnlook.patch
23 #Patch1: %{name}-hot_backup_num.patch
24 URL: http://subversion.tigris.org/
25 %if %{with net_client_only}
26 %global apache_modules_api 0
28 BuildRequires: automake
29 BuildRequires: apache-devel >= 2.0.47-0.6
30 BuildRequires: db-devel >= 4.1.25
31 BuildRequires: rpmbuild(macros) >= 1.120
32 BuildRequires: swig >= 1.3.19
33 BuildRequires: swig-python >= 1.3.19
34 BuildRequires: swig-perl >= 1.3.19
35 BuildRequires: perl-devel >= 1:5.8.0
36 BuildRequires: rpm-perlprov >= 4.1-13
38 BuildRequires: apr-devel >= 1:0.9.5
39 BuildRequires: apr-util-devel >= 1:0.9.5
40 BuildRequires: autoconf >= 2.59
42 BuildRequires: docbook-style-xsl >= 1.56
43 BuildRequires: expat-devel
44 BuildRequires: libtool >= 1.4-9
45 BuildRequires: libxslt-progs
46 %{!?with_internal_neon:BuildRequires: neon-devel >= 0.24.6}
47 BuildRequires: python-devel >= 2.2
48 BuildRequires: rpm-pythonprov >= 4.0.2-50
49 BuildRequires: texinfo
51 Requires: %{name}-libs = %{version}-%{release}
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define _apachelibdir /usr/%{_lib}/apache
55 %define _libexecdir %{_libdir}/svn
58 The goal of the Subversion project is to build a version control
59 system that is a compelling replacement for CVS in the open source
63 - All current CVS features.
64 - Directories, renames, and file meta-data are versioned.
65 - Symbolic links, etc, are supported
66 - Commits are truly atomic.
67 - Branching and tagging are cheap (constant time) operations
68 - Repeated merges are handled gracefully
69 - Support for plug-in client side diff programs
70 - Natively client/server
71 - Client/server protocol sends diffs in both directions
72 - Costs are proportional to change size, not project size
73 - Internationalization
74 - Progressive multi-lingual support
77 Celem projektu Subversion jest stworzenie systemu kontroli wersji jako
81 - Wszystkie aktualne mo¿liwo¶ci CVS.
82 - Katalogi, zmiany nazw oraz meta-dane plików s± wersjonowane.
83 - Wsparcie dla linków symbolicznych itp.
84 - Commity s± w pe³ni atomowe.
85 - Branchowanie oraz tagowanie s± tanimi (sta³ymi w czasie) operacjami.
87 - Wsparcie dla pluginów diff'a po stronie klienta.
88 - Natywny klient/serwer.
89 - Klient/Serwer przesy³aj± diffy w obu kierunkach.
90 - Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu.
91 - Internacjonalizacja.
92 - Postêpuj±ce wsparcie dla wielu jêzyków.
95 O objetivo do projeto Subversion é construir um sistema de controle de
96 versões que seja um substituto para o CVS (Concurrent Versioning
97 System) na comunidade opensource, fornecendo grandes melhorias.
100 Summary: Subversion libraries and modules
101 Summary(pl): Biblioteka subversion oraz ³adowalne modu³y
103 Obsoletes: libsubversion0
104 %{!?with_internal_neon:Requires: neon >= 0.24.6}
107 Subversion libraries and modules.
109 %description libs -l pl
110 Biblioteka subversion oraz ³adowalne modu³y.
113 Summary: Header files and develpment documentation for subversion
114 Summary(pl): Pliki nag³ówkowe i dokumetacja do subversion
115 Summary(pt_BR): Arquivos de desenvolvimento para o Subversion
116 Group: Development/Libraries
117 Requires: %{name}-libs = %{version}-%{release}
118 Requires: apr-util-devel >= 1:0.9.5
119 %{!?with_internal_neon:Requires: neon-devel >= 0.24.6}
120 Obsoletes: libsubversion0-devel
123 Header files and develpment documentation for subversion.
125 %description devel -l pl
126 Pliki nag³ówkowe i dokumetacja do subversion.
128 %description devel -l pt_BR
129 Este pacote provê os arquivos necessários para desenvolvedores
130 interagirem com o Subversion.
133 Summary: Static subversion library
134 Summary(pl): Biblioteka statyczna subversion
135 Summary(pt_BR): Sistema de versionamento concorrente
136 Group: Development/Libraries
137 Requires: %{name}-devel = %{version}
138 Obsoletes: libsubversion0-static-devel
141 Static subversion library.
143 %description static -l pl
144 Biblioteka statyczna subversion.
146 %description static -l pt_BR
147 Este pacote provê um cliente estático do subversion.
150 Summary: Subversion svnserve
151 Summary(pl): Subversion svnserve
152 Group: Networking/Daemons
154 Requires(post,preun): /sbin/chkconfig
155 Requires: %{name} = %{version}-%{release}
157 %description svnserve
158 Subversion svnserve server.
160 %description svnserve -l pl
161 Serwer subversion svnserve.
164 Summary: Subversion tools and scripts
165 Summary(pl): Narzêdzia oraz skrypty dla subversion
166 Summary(pt_BR): Módulos python para acessar os recursos do Subversion
168 %pyrequires_eq python
169 Requires: python-rcsparse >= 0.1-0.20031026.0
170 Requires: python-subversion = %{version}
171 Requires: %{name} = %{version}-%{release}
174 Subversion tools and scripts.
176 %description tools -l pl
177 Narzêdzia oraz skrypty dla subversion.
179 %package -n python-subversion
180 Summary: Subversion python bindings
181 Summary(pl): Dowi±zania do subversion dla pythona
182 Summary(pt_BR): Módulos python para acessar os recursos do Subversion
183 Group: Development/Languages/Python
184 %pyrequires_eq python
185 Obsoletes: subversion-python
186 Requires: %{name}-libs = %{version}-%{release}
188 %description -n python-subversion
189 Subversion python bindings.
191 %description -n python-subversion -l pl
192 Dowi±zania do subversion dla pythona.
194 %description -n python-subversion -l pt_BR
195 Módulos python para acessar os recursos do Subversion.
197 %package -n perl-subversion
198 Summary: Subversion perl bindings
199 Summary(pl): Dowi±zania do subversion dla perla
200 Summary(pt_BR): Módulos perl para acessar os recursos do Subversion
201 Group: Development/Languages/Perl
202 Obsoletes: subversion-perl
203 Requires: %{name}-libs = %{version}-%{release}
205 %description -n perl-subversion
206 Subversion perl bindings.
208 %description -n perl-subversion -l pl
209 Dowi±zania do subversion dla perl.
211 %description -n perl-subversion -l pt_BR
212 Módulos perl para acessar os recursos do Subversion.
214 %package -n apache-mod_dav_svn
215 Summary: Apache module: Subversion Server
216 Summary(pl): Modu³ apache: Serwer Subversion
217 Group: Networking/Daemons
218 Requires: apache >= 2.0.47
219 Requires: apache(modules-api) = %{apache_modules_api}
220 Requires: apache-mod_dav
221 Requires: %{name} = %{version}-%{release}
223 %description -n apache-mod_dav_svn
224 Apache module: Subversion Server.
226 %description -n apache-mod_dav_svn -l pl
227 Modu³ apache: Serwer Subversion.
229 %package -n apache-mod_authz_svn
230 Summary: Apache module: Subversion Server - path-based authorization
231 Summary(pl): Modu³ apache: autoryzacja na podstawie ¶cie¿ki dla serwera Subversion
232 Group: Networking/Daemons
233 Requires: apache-mod_dav_svn = %{version}-%{release}
234 Requires: apache >= 2.0.47
235 Requires: apache(modules-api) = %{apache_modules_api}
237 %description -n apache-mod_authz_svn
238 Apache module: Subversion Server - path-based authorization.
240 %description -n apache-mod_authz_svn -l pl
241 Modu³ apache: autoryzacja na podstawie ¶cie¿ki dla serwera Subversion.
248 rm -rf apr-util{,/xml/expat}/autom4te.cache
251 cp -f /usr/share/automake/config.sub ac-helpers
252 chmod +x ./autogen.sh && ./autogen.sh
254 # don't enable dso - currently it's broken
256 %if %{with net_client_only}
260 --without-berkeley-db \
263 --disable-mod-activation \
264 --with-apxs=%{_sbindir}/apxs \
265 --with-berkeley-db=%{_includedir}/db4:%{_libdir} \
267 %{!?with_internal_neon:--with-neon=%{_prefix}} \
268 --with-apr=%{_bindir}/apr-config \
269 --with-apr-util=%{_bindir}/apu-config
273 %if ! %{with net_client_only}
276 swig_pydir=%{py_sitedir}/libsvn \
277 swig_pydir_extra=%{py_sitedir}/svn
280 %{__make} install-swig-pl-lib \
282 DESTDIR=${bdir}/swig-pl-lib-buildroot
284 cd subversion/bindings/swig/perl
285 env APR_CONFIG=%{_bindir}/apr-config \
286 APU_CONFIG=%{_bindir}/apu-config \
287 %{__perl} Makefile.PL \
289 env LIBRARY_PATH=${bdir}/swig-pl-lib-buildroot%{_libdir} %{__make}
293 # build documentation; build process for documentation is severely
294 # braindamaged -- authors suggests to untar docbook distribution in
295 # build directory, hence the hack here
296 ln -s /usr/share/sgml/docbook/xsl-stylesheets doc/book/tools/xsl
297 %{__make} -C doc/book all-html
299 # prepare for %%doc below
300 mv -f doc/book/book/html-chunk svn-handbook
301 mkdir svn-handbook/images/
302 cp -f doc/book/book/images/*.png svn-handbook/images/
305 rm -rf $RPM_BUILD_ROOT
306 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \
307 $RPM_BUILD_ROOT{%{_sysconfdir}/httpd/httpd.conf,%{_apachelibdir},%{_infodir}} \
308 $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}}
312 %{!?with_net_client_only:install-swig-py} \
313 DESTDIR=$RPM_BUILD_ROOT \
314 swig_pydir=%{py_sitedir}/libsvn \
315 swig_pydir_extra=%{py_sitedir}/svn
317 %if ! %{with net_client_only}
318 %{__make} install-swig-pl-lib \
320 DESTDIR=$RPM_BUILD_ROOT
321 %{__make} -C subversion/bindings/swig/perl install \
322 DESTDIR=$RPM_BUILD_ROOT
325 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/65_mod_dav_svn.conf
326 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/66_mod_authz_svn.conf
327 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve
328 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve
329 install doc/programmer/design/*.info* $RPM_BUILD_ROOT%{_infodir}/
331 %if ! %{with net_client_only}
332 install tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup
334 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
335 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
336 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f
337 install tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
340 install tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name}
341 install tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
344 rm -rf $RPM_BUILD_ROOT
347 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
350 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
352 %post libs -p /sbin/ldconfig
353 %postun libs -p /sbin/ldconfig
356 if [ -f /var/lock/subsys/svnserve ]; then
357 /etc/rc.d/init.d/svnserve restart 1>&2
359 echo "Run \"/etc/rc.d/init.d/svnserve start\" to start subversion svnserve daemon."
363 if [ "$1" = "0" ]; then
364 if [ -f /var/lock/subsys/svnserve ]; then
365 /etc/rc.d/init.d/svnserve restart 1>&2
369 %post -n apache-mod_dav_svn
370 if [ -f /var/lock/subsys/httpd ]; then
371 /etc/rc.d/init.d/httpd restart 1>&2
373 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
376 %preun -n apache-mod_dav_svn
377 if [ "$1" = "0" ]; then
378 if [ -f /var/lock/subsys/httpd ]; then
379 /etc/rc.d/init.d/httpd restart 1>&2
384 %defattr(644,root,root,755)
385 %doc BUGS CHANGES COPYING INSTALL README
386 %doc svn-handbook doc/book/misc-docs/misc-docs.html
387 %doc tools/hook-scripts/*.{pl,py,example}
388 %doc tools/hook-scripts/mailer/*.{py,example}
390 %attr(755,root,root) %{_bindir}/svn*
391 %exclude %{_bindir}/svnserve
392 %exclude %{_bindir}/svn-hot-backup
396 %exclude %{_mandir}/man?/svnserve*
397 %{?with_internal_neon:%exclude %{_mandir}/man1/neon*}
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_libdir}/lib*.so.*
404 %defattr(644,root,root,755)
405 %{_includedir}/%{name}*
406 %attr(755,root,root) %{_libdir}/lib*.so
409 %{_examplesdir}/%{name}-%{version}
412 %defattr(644,root,root,755)
415 %if ! %{with net_client_only}
417 %defattr(644,root,root,755)
418 %attr(755,root,root) %{_bindir}/svnserve
419 %{_mandir}/man?/svnserve*
420 %attr(754,root,root) /etc/rc.d/init.d/svnserve
421 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/svnserve
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_bindir}/svn-hot-backup
426 /etc/bash_completion.d/%{name}
428 %files -n python-subversion
429 %defattr(644,root,root,755)
430 %doc tools/backup/*.py tools/examples/*.py
431 %dir %{py_sitedir}/svn
432 %dir %{py_sitedir}/libsvn
433 %{py_sitedir}/svn/*.py[co]
434 %{py_sitedir}/libsvn/*.py[co]
435 %attr(755,root,root) %{py_sitedir}/libsvn/*.so
436 %{_examplesdir}/python-%{name}-%{version}
438 %files -n perl-subversion
439 %defattr(644,root,root,755)
440 %{perl_vendorarch}/SVN
441 %dir %{perl_vendorarch}/auto/SVN
442 %dir %{perl_vendorarch}/auto/SVN/*
443 %attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so
444 %{perl_vendorarch}/auto/SVN/*/*.bs
445 %{_mandir}/man3/*.3pm*
447 %files -n apache-mod_dav_svn
448 %defattr(644,root,root,755)
449 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/httpd.conf/*_mod_dav_svn.conf
450 %attr(755,root,root) %{_apachelibdir}/mod_dav_svn.so
452 %files -n apache-mod_authz_svn
453 %defattr(644,root,root,755)
454 %doc subversion/mod_authz_svn/INSTALL
455 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/httpd.conf/*_mod_authz_svn.conf
456 %attr(755,root,root) %{_apachelibdir}/mod_authz_svn.so