2 # - move modules to some directory (+ link with rpath)
4 %include /usr/lib/rpm/macros.python
5 Summary: A Concurrent Versioning system similar to but better than CVS.
6 Summary(pl): System Concurrent Versioning System ale lepszy ni¿ CVS
10 License: Apache/BSD Style
11 Group: Development/Version Control
12 Source0: svn://svn.collab.net/repos/svn/trunk/%{name}-%{snap}.tar.gz
13 Source1: %{name}-dav_svn.conf
14 Patch0: %{name}-lib.patch
15 Patch1: %{name}-python.patch
16 URL: http://subversion.tigris.org/
17 BuildRequires: apache-devel >= 2.0.35
18 BuildRequires: apr-devel >= 2.0.35
19 BuildRequires: autoconf >= 2.53
21 BuildRequires: db4-devel >= 4.0.14
22 BuildRequires: expat-devel
23 BuildRequires: libtool >= 1.4-9
24 BuildRequires: neon-devel >= 0.19.2
25 BuildRequires: python >= 2.2
26 BuildRequires: rpm-pythonprov >= 4.0.2-50
27 BuildRequires: swig >= 1.3.11
28 BuildRequires: texinfo
29 Requires(post): /usr/sbin/fix-info-dir
30 Requires(postun): /usr/sbin/fix-info-dir
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _apachelibdir /usr/lib/apache
34 %define _libexecdir %{_libdir}/svn
37 The goal of the Subversion project is to build a version control
38 system that is a compelling replacement for CVS in the open source
42 - All current CVS features.
43 - Directories, renames, and file meta-data are versioned.
44 - Symbolic links, etc, are supported
45 - Commits are truly atomic.
46 - Branching and tagging are cheap (constant time) operations
47 - Repeated merges are handled gracefully
48 - Support for plug-in client side diff programs
49 - Natively client/server
50 - Client/server protocol sends diffs in both directions
51 - Costs are proportional to change size, not project size
52 - Internationalization
53 - Progressive multi-lingual support
56 Celem projektu Subversion jest stworzenie systemu kontroli wersji jako
60 - Wszystkie aktualne mo¿liwo¶ci CVS.
61 - Katalogi, zmiany nazw oraz meta-dane plików s± wersjonowane.
62 - Wsparcie dla linków symbolicznych itp.
63 - Commity s± w pe³ni atomowe.
64 - Branchowanie oraz tagowanie s± tanimi (sta³ymi w czasie) operacjami.
66 - Wsparcie dla pluginów diff'a po stronie klienta.
67 - Natywny klient/serwer.
68 - Klient/Serwer przesy³aj± diffy w obu kierunkach.
69 - Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu.
70 - Internacjonalizacja.
71 - Postêpuj±ce wsparcie dla wielu jêzyków.
74 Summary: Subversion libraries and modules
75 Summary(pl): Biblioteka subversion oraz ³adowalne modu³y
79 Subversion libraries and modules.
81 %description libs -l pl
82 Biblioteka subversion oraz ³adowalne modu³y.
85 Summary: Header files and develpment documentation for subversion
86 Summary(pl): Pliki nag³ówkowe i dokumetacja do subversion
87 Group: Development/Libraries
88 Requires: %{name}-libs = %{version}
91 Header files and develpment documentation for subversion.
93 %description devel -l pl
94 Pliki nag³ówkowe i dokumetacja do subversion.
97 Summary: Static subversion library
98 Summary(pl): Biblioteka statyczna subversion
99 Group: Development/Libraries
100 Requires: %{name}-devel = %{version}
103 Static subversion library.
105 %description static -l pl
106 Biblioteka statyczna subversion.
109 Summary: Subversion python bindings
110 Summary(pl): Dowi±zania do subversion dla pythona
111 Group: Development/Languages/Python
112 Requires: python >= 2.2
113 %pyrequires_eq python
116 Subversion python bindings.
118 %description python -l pl
119 Dowi±zania do subversion dla pythona.
121 %package -n apache-mod_dav_svn
122 Summary: Apache module: Subversion Server
123 Summary(pl): Modu³ apache: Serwer Subversion
124 Group: Networking/Daemons
125 Requires: apache >= 2.0.35
126 Requires: apache-mod_dav >= 2.0.35
128 %description -n apache-mod_dav_svn
129 Apache module: Subversion Server.
131 %description -n apache-mod_dav_svn
132 Modu³ apache: Serwer Subversion.
135 %setup -q -n %{name}-%{snap}
140 chmod +x ./autogen.sh
142 # EXPAT is external so get rid of all except (patched) xmlparse.h
143 rm -rf expat-lite/[a-w]*.[ch] expat-lite/xmldef.h expat-lite/xmlparse.c
144 rm -rf expat-lite/xmlrole* expat-lite/xmltok* neon apr
148 --with-apr=%{_bindir}/apr-config \
149 --with-apxs=%{_sbindir}/apxs \
150 --with-berkeley-db=%{_includedir}/db4:%{_libdir}
153 cd subversion/bindings/swig/python
154 CFLAGS="%{rpmcflags}" python setup.py build
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/httpd/httpd.conf,%{_apachelibdir}}
161 INSTALL_MOD_SHARED=echo \
162 DESTDIR=$RPM_BUILD_ROOT \
163 libdir=$RPM_BUILD_ROOT%{_libdir} \
164 fs_libdir=$RPM_BUILD_ROOT%{_libdir} \
165 base_libdir=$RPM_BUILD_ROOT%{_libdir} \
166 swig_py_libdir=$RPM_BUILD_ROOT%{_libdir} \
167 bindir=$RPM_BUILD_ROOT%{_bindir} \
168 fs_bindir=$RPM_BUILD_ROOT%{_bindir} \
169 includedir=$RPM_BUILD_ROOT%{_includedir}/%{name}
171 install subversion/mod_dav_svn/.libs/*.so $RPM_BUILD_ROOT%{_apachelibdir}
172 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/65_mod_dav_svn.conf
174 gzip -9nf BUGS CHANGES IDEAS INSTALL README
176 cd subversion/bindings/swig/python
177 python setup.py install --root=$RPM_BUILD_ROOT
179 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
180 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
183 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
186 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
188 %post libs -p /sbin/ldconfig
189 %postun libs -p /sbin/ldconfig
191 %post -n apache-mod_dav_svn
192 if [ -f /var/lock/subsys/httpd ]; then
193 /etc/rc.d/init.d/httpd restart 1>&2
195 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
198 %preun -n apache-mod_dav_svn
199 if [ "$1" = "0" ]; then
200 if [ -f /var/lock/subsys/httpd ]; then
201 /etc/rc.d/init.d/httpd restart 1>&2
206 rm -rf $RPM_BUILD_ROOT
209 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_bindir}/*
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/libsvn_[cdsw]*.so.*
218 %attr(755,root,root) %{_libdir}/libsvn_ra.so.*
219 %attr(755,root,root) %{_libdir}/libsvn_fs*.so*
220 %attr(755,root,root) %{_libdir}/libsvn_ra_*.so*
221 %attr(755,root,root) %{_libdir}/libsvn_repos.so*
224 %defattr(644,root,root,755)
225 %{_includedir}/%{name}
226 %attr(755,root,root) %{_libdir}/libsvn_[cdsw]*.so
227 %attr(755,root,root) %{_libdir}/libsvn_ra.so
228 %attr(755,root,root) %{_libdir}/lib*.la
231 %defattr(644,root,root,755)
235 %defattr(644,root,root,755)
236 %doc tools/backup tools/cvs2svn/*.py tools/examples/*.py
237 %dir %{py_sitedir}/svn
238 %{py_sitedir}/svn/*.py[co]
239 %attr(755,root,root) %{py_sitedir}/svn/*.so
241 %files -n apache-mod_dav_svn
242 %defattr(644,root,root,755)
243 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/httpd.conf/*_mod_dav_svn.conf
244 %attr(755,root,root) %{_apachelibdir}/*.so