]>
Commit | Line | Data |
---|---|---|
1f630180 | 1 | # TODO: |
1930bef0 | 2 | # - remove net_client_only and add db bcond (then without apache and |
3 | # without db => net_client_only - spec will be more simpler, I think) | |
4 | # | |
bab73684 | 5 | # Conditional build: |
bc526ca4 | 6 | %bcond_with net_client_only # build only net client |
8f179f02 | 7 | %bcond_without python # build without python bindings (broken) |
0905b458 | 8 | %bcond_without perl # build without perl bindings |
9 | %bcond_without apache # build without apache support (webdav, etc) | |
7b27380f | 10 | # |
b56474ff | 11 | %{!?with_net_client_only:%include /usr/lib/rpm/macros.perl} |
f4070f5f | 12 | %define apxs /usr/sbin/apxs |
1f630180 ER |
13 | %define pdir SVN |
14 | %define pnam _Core | |
67cb9518 | 15 | Summary: A Concurrent Versioning system similar to but better than CVS |
abe3c421 ER |
16 | Summary(pl.UTF-8): System kontroli wersji podobny, ale lepszy, niż CVS |
17 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
93b78127 | 18 | Name: subversion |
ca6914ac | 19 | Version: 1.4.6 |
4c624bb1 | 20 | Release: 2 |
93b78127 AM |
21 | License: Apache/BSD Style |
22 | Group: Development/Version Control | |
e30588c4 | 23 | Source0: http://subversion.tigris.org/downloads/%{name}-%{version}.tar.gz |
ca6914ac | 24 | # Source0-md5: 32786fe2f322982c0567346de18f6460 |
93b78127 | 25 | Source1: %{name}-dav_svn.conf |
65318afa | 26 | Source2: %{name}-authz_svn.conf |
b56474ff AM |
27 | Source3: %{name}-svnserve.init |
28 | Source4: %{name}-svnserve.sysconfig | |
f313e9a9 | 29 | Source5: %{name}-convert-typemaps-to-ifdef.py |
ed6210a2 | 30 | Patch0: %{name}-home_etc.patch |
d4bccc60 | 31 | Patch1: %{name}-DESTDIR.patch |
3eab78e4 | 32 | Patch2: %{name}-neon.patch |
f313e9a9 | 33 | Patch3: %{name}-python_bindings.patch |
0134b8dd | 34 | Patch4: %{name}-swig.patch |
93b78127 | 35 | URL: http://subversion.tigris.org/ |
4945947e AM |
36 | %if %{with net_client_only} |
37 | %global apache_modules_api 0 | |
38 | %else | |
f2a757d6 | 39 | %{?with_apache:BuildRequires: apache-devel >= 2.2.0-8} |
7b27380f | 40 | BuildRequires: automake |
3817faf5 | 41 | BuildRequires: db-devel >= 4.1.25 |
e8d9186f | 42 | BuildRequires: rpmbuild(macros) >= 1.268 |
0905b458 | 43 | %if %{with perl} |
522a69b4 | 44 | BuildRequires: perl-devel >= 1:5.8.0 |
45 | BuildRequires: rpm-perlprov >= 4.1-13 | |
15f9818d | 46 | BuildRequires: swig-perl >= 1.3.24 |
536b3fd3 | 47 | %endif |
0905b458 | 48 | %endif |
16429189 | 49 | BuildRequires: apr-devel >= 1:1.0.0 |
a6ecf312 | 50 | BuildRequires: apr-util-devel >= 1:1.2.8-3 |
b0a7a5b2 | 51 | BuildRequires: autoconf >= 2.59 |
79d8c53c | 52 | BuildRequires: bison |
93b78127 | 53 | BuildRequires: expat-devel |
86ea8fde | 54 | BuildRequires: gettext-devel |
f4e6a380 | 55 | BuildRequires: libtool >= 1.4-9 |
bd3c99a8 | 56 | BuildRequires: neon-devel >= 0.26.0 |
53855fbf | 57 | BuildRequires: python >= 2.2 |
ed6210a2 | 58 | BuildRequires: python-modules >= 2.2 |
f313e9a9 | 59 | %if %{with python} |
60 | BuildRequires: python-devel >= 2.2 | |
1f16145f | 61 | BuildRequires: sed >= 4.0 |
15f9818d | 62 | BuildRequires: swig-python >= 1.3.24 |
0905b458 | 63 | %endif |
93b78127 | 64 | BuildRequires: texinfo |
7b35d179 | 65 | BuildRequires: which |
027f8ebe | 66 | Requires: %{name}-libs = %{version}-%{release} |
93b78127 AM |
67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68 | ||
f4070f5f | 69 | %define _libexecdir %{_libdir}/svn |
4c624bb1 ER |
70 | %define pkgconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
71 | %define pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
93b78127 AM |
72 | |
73 | %description | |
74 | The goal of the Subversion project is to build a version control | |
75 | system that is a compelling replacement for CVS in the open source | |
76 | community. | |
77 | ||
78 | Our goals are: | |
79 | - All current CVS features. | |
80 | - Directories, renames, and file meta-data are versioned. | |
81 | - Symbolic links, etc, are supported | |
82 | - Commits are truly atomic. | |
83 | - Branching and tagging are cheap (constant time) operations | |
84 | - Repeated merges are handled gracefully | |
85 | - Support for plug-in client side diff programs | |
86 | - Natively client/server | |
87 | - Client/server protocol sends diffs in both directions | |
88 | - Costs are proportional to change size, not project size | |
89 | - Internationalization | |
90 | - Progressive multi-lingual support | |
91 | ||
aa59005f | 92 | %description -l pl.UTF-8 |
93b78127 AM |
93 | Celem projektu Subversion jest stworzenie systemu kontroli wersji jako |
94 | zamiennika dla CVS. | |
95 | ||
96 | Cele projektu to: | |
aa59005f | 97 | - Wszystkie aktualne możliwości CVS. |
24406120 JB |
98 | - Katalogi, zmiany nazw oraz metadane plików są wersjonowane. |
99 | - Obsługa dowiązań symbolicznych itp. | |
aa59005f JR |
100 | - Commity są w pełni atomowe. |
101 | - Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami. | |
24406120 JB |
102 | - Dobra obsługa powtarzanego łączenia (merge). |
103 | - Obsługa wtyczek diff po stronie klienta. | |
93b78127 | 104 | - Natywny klient/serwer. |
aa59005f | 105 | - Klient/Serwer przesyłają diffy w obu kierunkach. |
93b78127 AM |
106 | - Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu. |
107 | - Internacjonalizacja. | |
aa59005f | 108 | - Postępujące wsparcie dla wielu języków. |
93b78127 | 109 | |
aa59005f JR |
110 | %description -l pt_BR.UTF-8 |
111 | O objetivo do projeto Subversion é construir um sistema de controle de | |
112 | versões que seja um substituto para o CVS (Concurrent Versioning | |
92066deb | 113 | System) na comunidade opensource, fornecendo grandes melhorias. |
114 | ||
f4e6a380 AM |
115 | %package libs |
116 | Summary: Subversion libraries and modules | |
abe3c421 | 117 | Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły |
f4e6a380 | 118 | Group: Libraries |
24406120 | 119 | Requires: neon >= 0.26.0 |
53855fbf | 120 | Obsoletes: libsubversion0 |
f4e6a380 AM |
121 | |
122 | %description libs | |
123 | Subversion libraries and modules. | |
124 | ||
aa59005f JR |
125 | %description libs -l pl.UTF-8 |
126 | Biblioteka subversion oraz ładowalne moduły. | |
f4e6a380 | 127 | |
93b78127 AM |
128 | %package devel |
129 | Summary: Header files and develpment documentation for subversion | |
abe3c421 ER |
130 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion |
131 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion | |
93b78127 | 132 | Group: Development/Libraries |
9cb7e099 | 133 | Requires: %{name}-libs = %{version}-%{release} |
c5b1d686 | 134 | Requires: apr-util-devel >= 1:1.0.0 |
24406120 | 135 | Requires: neon-devel >= 0.26.0 |
12cf252c | 136 | Obsoletes: libsubversion0-devel |
93b78127 AM |
137 | |
138 | %description devel | |
139 | Header files and develpment documentation for subversion. | |
140 | ||
aa59005f JR |
141 | %description devel -l pl.UTF-8 |
142 | Pliki nagłówkowe i dokumetacja do subversion. | |
93b78127 | 143 | |
aa59005f JR |
144 | %description devel -l pt_BR.UTF-8 |
145 | Este pacote provê os arquivos necessários para desenvolvedores | |
92066deb | 146 | interagirem com o Subversion. |
147 | ||
93b78127 AM |
148 | %package static |
149 | Summary: Static subversion library | |
abe3c421 ER |
150 | Summary(pl.UTF-8): Biblioteka statyczna subversion |
151 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
93b78127 AM |
152 | Group: Development/Libraries |
153 | Requires: %{name}-devel = %{version} | |
12cf252c | 154 | Obsoletes: libsubversion0-static-devel |
93b78127 AM |
155 | |
156 | %description static | |
157 | Static subversion library. | |
158 | ||
aa59005f | 159 | %description static -l pl.UTF-8 |
93b78127 AM |
160 | Biblioteka statyczna subversion. |
161 | ||
aa59005f JR |
162 | %description static -l pt_BR.UTF-8 |
163 | Este pacote provê um cliente estático do subversion. | |
92066deb | 164 | |
b56474ff AM |
165 | %package svnserve |
166 | Summary: Subversion svnserve | |
abe3c421 | 167 | Summary(pl.UTF-8): Subversion svnserve |
b56474ff | 168 | Group: Networking/Daemons |
3817faf5 | 169 | Requires(post,preun): /sbin/chkconfig |
9cb7e099 | 170 | Requires: %{name} = %{version}-%{release} |
7b27380f | 171 | Requires: rc-scripts |
b56474ff AM |
172 | |
173 | %description svnserve | |
174 | Subversion svnserve server. | |
175 | ||
aa59005f | 176 | %description svnserve -l pl.UTF-8 |
b56474ff AM |
177 | Serwer subversion svnserve. |
178 | ||
4bbdbbf8 AM |
179 | %package tools |
180 | Summary: Subversion tools and scripts | |
abe3c421 ER |
181 | Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion |
182 | Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion | |
4bbdbbf8 | 183 | Group: Applications |
4bbdbbf8 | 184 | %pyrequires_eq python |
7b27380f | 185 | Requires: %{name} = %{version}-%{release} |
1271c9bd | 186 | Requires: python-rcsparse >= 0.1-0.20031026.0 |
4bbdbbf8 AM |
187 | Requires: python-subversion = %{version} |
188 | ||
189 | %description tools | |
190 | Subversion tools and scripts. | |
191 | ||
aa59005f JR |
192 | %description tools -l pl.UTF-8 |
193 | Narzędzia oraz skrypty dla subversion. | |
4bbdbbf8 | 194 | |
fe5bb6bb | 195 | %package -n bash-completion-subversion |
196 | Summary: bash completion for subversion | |
abe3c421 | 197 | Summary(pl.UTF-8): Dopełnienia basha dla subversion |
fe5bb6bb | 198 | Group: Applications/Shells |
e30588c4 | 199 | Requires: %{name} = %{version}-%{release} |
53855fbf | 200 | Requires: bash-completion |
e30588c4 | 201 | Conflicts: %{name}-tools <= 1.1.0-0.rc6.1 |
fe5bb6bb | 202 | |
203 | %description -n bash-completion-subversion | |
204 | Bash completion for subversion. | |
205 | ||
aa59005f JR |
206 | %description -n bash-completion-subversion -l pl.UTF-8 |
207 | Dopełnienia basha dla subversion. | |
fe5bb6bb | 208 | |
fa3ff1b2 | 209 | %package -n python-subversion |
f4e6a380 | 210 | Summary: Subversion python bindings |
abe3c421 ER |
211 | Summary(pl.UTF-8): Dowiązania do subversion dla pythona |
212 | Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion | |
f4e6a380 | 213 | Group: Development/Languages/Python |
f4e6a380 | 214 | %pyrequires_eq python |
9cb7e099 | 215 | Requires: %{name}-libs = %{version}-%{release} |
53855fbf | 216 | Obsoletes: subversion-python |
f4e6a380 | 217 | |
fa3ff1b2 | 218 | %description -n python-subversion |
f4e6a380 AM |
219 | Subversion python bindings. |
220 | ||
aa59005f JR |
221 | %description -n python-subversion -l pl.UTF-8 |
222 | Dowiązania do subversion dla pythona. | |
f4e6a380 | 223 | |
aa59005f JR |
224 | %description -n python-subversion -l pt_BR.UTF-8 |
225 | Módulos python para acessar os recursos do Subversion. | |
92066deb | 226 | |
b56474ff AM |
227 | %package -n perl-subversion |
228 | Summary: Subversion perl bindings | |
abe3c421 ER |
229 | Summary(pl.UTF-8): Dowiązania do subversion dla perla |
230 | Summary(pt_BR.UTF-8): Módulos perl para acessar os recursos do Subversion | |
b56474ff | 231 | Group: Development/Languages/Perl |
9cb7e099 | 232 | Requires: %{name}-libs = %{version}-%{release} |
53855fbf | 233 | Obsoletes: subversion-perl |
b56474ff AM |
234 | |
235 | %description -n perl-subversion | |
236 | Subversion perl bindings. | |
237 | ||
aa59005f JR |
238 | %description -n perl-subversion -l pl.UTF-8 |
239 | Dowiązania do subversion dla perl. | |
b56474ff | 240 | |
aa59005f JR |
241 | %description -n perl-subversion -l pt_BR.UTF-8 |
242 | Módulos perl para acessar os recursos do Subversion. | |
b56474ff | 243 | |
93b78127 AM |
244 | %package -n apache-mod_dav_svn |
245 | Summary: Apache module: Subversion Server | |
abe3c421 | 246 | Summary(pl.UTF-8): Moduł apache: Serwer Subversion |
93b78127 | 247 | Group: Networking/Daemons |
7b27380f | 248 | Requires: %{name} = %{version}-%{release} |
53855fbf | 249 | Requires: apache(modules-api) = %apache_modules_api |
7887b1ac | 250 | Requires: apache-mod_dav |
93b78127 AM |
251 | |
252 | %description -n apache-mod_dav_svn | |
253 | Apache module: Subversion Server. | |
254 | ||
aa59005f JR |
255 | %description -n apache-mod_dav_svn -l pl.UTF-8 |
256 | Moduł apache: Serwer Subversion. | |
93b78127 | 257 | |
65318afa AF |
258 | %package -n apache-mod_authz_svn |
259 | Summary: Apache module: Subversion Server - path-based authorization | |
abe3c421 | 260 | Summary(pl.UTF-8): Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion |
65318afa | 261 | Group: Networking/Daemons |
53855fbf | 262 | Requires: apache(modules-api) = %apache_modules_api |
9cb7e099 | 263 | Requires: apache-mod_dav_svn = %{version}-%{release} |
65318afa AF |
264 | |
265 | %description -n apache-mod_authz_svn | |
266 | Apache module: Subversion Server - path-based authorization. | |
267 | ||
aa59005f JR |
268 | %description -n apache-mod_authz_svn -l pl.UTF-8 |
269 | Moduł apache: autoryzacja na podstawie ścieżki dla serwera Subversion. | |
e23909be | 270 | |
93b78127 | 271 | %prep |
281e2246 | 272 | %setup -q |
e30588c4 | 273 | rm -rf apr apr-util neon |
ed6210a2 | 274 | %patch0 -p0 |
d4bccc60 | 275 | %patch1 -p1 |
3eab78e4 | 276 | %patch2 -p1 |
f313e9a9 | 277 | %patch3 -p1 |
0134b8dd | 278 | %patch4 -p1 |
027f8ebe | 279 | |
93b78127 | 280 | %build |
f313e9a9 | 281 | rm subversion/bindings/swig/proxy/*.swg |
24406120 | 282 | cd subversion/bindings/swig && python "%{SOURCE5}" && cd ../../.. |
a7bcb345 | 283 | cp -f /usr/share/automake/config.sub ac-helpers |
67cb9518 | 284 | chmod +x ./autogen.sh && ./autogen.sh |
8a3d9172 | 285 | |
fa3ff1b2 | 286 | # don't enable dso - currently it's broken |
93b78127 | 287 | %configure \ |
5dfeafd7 AM |
288 | --with-editor=vi \ |
289 | --with-zlib \ | |
497058f9 AM |
290 | --with-python=%{_bindir}/python \ |
291 | --with-perl5=%{_bindir}/perl \ | |
536b3fd3 AM |
292 | %if %{with net_client_only} |
293 | --without-apache \ | |
294 | --without-swig \ | |
295 | --without-apxs \ | |
296 | --without-berkeley-db \ | |
297 | %else | |
227d7ab4 | 298 | --disable-dso \ |
86ee97d3 | 299 | --disable-mod-activation \ |
0905b458 | 300 | %if %{with apache} |
536b3fd3 | 301 | --with-apxs=%{_sbindir}/apxs \ |
0905b458 | 302 | %else |
303 | --without-apache \ | |
304 | --without-apxs \ | |
536b3fd3 | 305 | --with-berkeley-db=%{_includedir}/db4:%{_libdir} \ |
0905b458 | 306 | %endif |
cf353d53 | 307 | %if !%{with python} && !%{with perl} |
0905b458 | 308 | --without-swig \ |
309 | %endif | |
536b3fd3 | 310 | %endif |
e30588c4 | 311 | --with-neon=%{_prefix} \ |
78f330c4 | 312 | --disable-neon-version-check \ |
16429189 | 313 | --with-apr=%{_bindir}/apr-1-config \ |
314 | --with-apr-util=%{_bindir}/apu-1-config | |
536b3fd3 | 315 | |
1f630180 | 316 | %{__make} -j1 |
536b3fd3 | 317 | |
cf353d53 | 318 | %if !%{with net_client_only} |
b56474ff | 319 | # python |
0905b458 | 320 | %if %{with python} |
86a4919e | 321 | %{__make} swig-py \ |
65318afa AF |
322 | swig_pydir=%{py_sitedir}/libsvn \ |
323 | swig_pydir_extra=%{py_sitedir}/svn | |
0905b458 | 324 | %endif |
b56474ff | 325 | # perl |
0905b458 | 326 | %if %{with perl} |
bf539998 AM |
327 | %{__make} swig-pl-lib |
328 | odir=$(pwd) | |
329 | cd subversion/bindings/swig/perl/native | |
330 | %{__perl} Makefile.PL INSTALLDIRS=vendor | |
331 | %{__make} | |
332 | cd $odir | |
536b3fd3 | 333 | %endif |
0905b458 | 334 | %endif |
93b78127 AM |
335 | |
336 | %install | |
337 | rm -rf $RPM_BUILD_ROOT | |
1326bb99 | 338 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \ |
4c624bb1 | 339 | $RPM_BUILD_ROOT{%{pkgconfdir},%{pkglibdir},%{_infodir}} \ |
afb35189 | 340 | $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \ |
a54611db | 341 | $RPM_BUILD_ROOT/home/services/subversion{,/repos} |
93b78127 | 342 | |
1f630180 | 343 | %{__make} install -j1 \ |
cf353d53 | 344 | %if !%{with net_client_only} && %{with python} |
0905b458 | 345 | install-swig-py \ |
346 | %endif | |
f2a757d6 | 347 | APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \ |
86a4919e | 348 | DESTDIR=$RPM_BUILD_ROOT \ |
65318afa AF |
349 | swig_pydir=%{py_sitedir}/libsvn \ |
350 | swig_pydir_extra=%{py_sitedir}/svn | |
93b78127 | 351 | |
cf353d53 | 352 | %if !%{with net_client_only} && %{with perl} |
bf539998 AM |
353 | %{__make} install-swig-pl-lib \ |
354 | DESTDIR=$RPM_BUILD_ROOT | |
355 | odir=$(pwd) | |
356 | cd subversion/bindings/swig/perl/native | |
357 | %{__make} install \ | |
358 | DESTDIR=$RPM_BUILD_ROOT \ | |
359 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ | |
360 | LIBDIR=$RPM_BUILD_ROOT%{_libdir} | |
361 | cd $odir | |
362 | %endif | |
363 | ||
0905b458 | 364 | %if %{with apache} |
4c624bb1 ER |
365 | install %{SOURCE1} $RPM_BUILD_ROOT%{pkgconfdir}/65_mod_dav_svn.conf |
366 | install %{SOURCE2} $RPM_BUILD_ROOT%{pkgconfdir}/66_mod_authz_svn.conf | |
b56474ff AM |
367 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve |
368 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve | |
0905b458 | 369 | %endif |
93b78127 | 370 | |
cf353d53 | 371 | %if !%{with net_client_only} |
1326bb99 | 372 | install tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup |
0905b458 | 373 | %if %{with python} |
f4e6a380 AM |
374 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
375 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
1326bb99 JK |
376 | find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f |
377 | install tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
536b3fd3 | 378 | %endif |
0905b458 | 379 | %endif |
f4e6a380 | 380 | |
1326bb99 JK |
381 | install tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name} |
382 | install tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
1326bb99 | 383 | |
205a3ddc AM |
384 | %find_lang %{name} |
385 | ||
a6ecf312 | 386 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*swig*.la |
387 | ||
e23909be JB |
388 | %clean |
389 | rm -rf $RPM_BUILD_ROOT | |
390 | ||
65318afa | 391 | %post devel |
93b78127 AM |
392 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
393 | ||
65318afa | 394 | %postun devel |
93b78127 AM |
395 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
396 | ||
e23909be JB |
397 | %post libs -p /sbin/ldconfig |
398 | %postun libs -p /sbin/ldconfig | |
164f681b AM |
399 | %post -n python-subversion -p /sbin/ldconfig |
400 | %postun -n perl-subversion -p /sbin/ldconfig | |
f4e6a380 | 401 | |
b56474ff | 402 | %post svnserve |
e8d9186f ER |
403 | /sbin/chkconfig --add svnserve |
404 | %service svnserve restart "svnserve daemon" | |
405 | ||
b56474ff AM |
406 | %preun svnserve |
407 | if [ "$1" = "0" ]; then | |
e8d9186f ER |
408 | %service svnserve stop |
409 | /sbin/chkconfig --del svnserve | |
b56474ff AM |
410 | fi |
411 | ||
93b78127 | 412 | %post -n apache-mod_dav_svn |
e8d9186f | 413 | %service -q httpd restart |
93b78127 AM |
414 | |
415 | %preun -n apache-mod_dav_svn | |
416 | if [ "$1" = "0" ]; then | |
e8d9186f | 417 | %service -q httpd restart |
93b78127 AM |
418 | fi |
419 | ||
93b78127 AM |
420 | %files |
421 | %defattr(644,root,root,755) | |
983a49f6 | 422 | %doc BUGS CHANGES COPYING INSTALL README |
d37298dc | 423 | %doc doc/*/*.html |
4bbdbbf8 AM |
424 | %doc tools/hook-scripts/*.{pl,py,example} |
425 | %doc tools/hook-scripts/mailer/*.{py,example} | |
1326bb99 | 426 | %doc tools/xslt/* |
fa3ff1b2 | 427 | %attr(755,root,root) %{_bindir}/svn* |
b56474ff | 428 | %exclude %{_bindir}/svnserve |
cf353d53 | 429 | %if !%{with net_client_only} |
9cb7e099 | 430 | %exclude %{_bindir}/svn-hot-backup |
d62de3c9 | 431 | %endif |
f4e6a380 | 432 | %{_mandir}/man1/* |
af654ba5 AM |
433 | %{_mandir}/man5/* |
434 | %{_mandir}/man8/* | |
b56474ff | 435 | %exclude %{_mandir}/man?/svnserve* |
f4e6a380 | 436 | |
205a3ddc | 437 | %files libs -f %{name}.lang |
f4e6a380 | 438 | %defattr(644,root,root,755) |
227d7ab4 | 439 | %attr(755,root,root) %{_libdir}/lib*.so.* |
164f681b AM |
440 | %if %{with perl} || %{with python} |
441 | %exclude %{_libdir}/lib*_swig_*.so.* | |
442 | %endif | |
93b78127 AM |
443 | |
444 | %files devel | |
445 | %defattr(644,root,root,755) | |
227d7ab4 AM |
446 | %{_includedir}/%{name}* |
447 | %attr(755,root,root) %{_libdir}/lib*.so | |
b2bcb22a | 448 | %{_libdir}/lib*.la |
b72a2fbb | 449 | %if %{with perl} || %{with python} |
c00fdf6f | 450 | %exclude %{_libdir}/lib*_swig_*.so |
b72a2fbb | 451 | %endif |
1326bb99 | 452 | %{_examplesdir}/%{name}-%{version} |
93b78127 AM |
453 | |
454 | %files static | |
455 | %defattr(644,root,root,755) | |
456 | %{_libdir}/lib*.a | |
457 | ||
cf353d53 | 458 | %if !%{with net_client_only} |
b56474ff AM |
459 | %files svnserve |
460 | %defattr(644,root,root,755) | |
461 | %attr(755,root,root) %{_bindir}/svnserve | |
462 | %{_mandir}/man?/svnserve* | |
afb35189 | 463 | %dir /home/services/subversion |
a54611db | 464 | %dir /home/services/subversion/repos |
0905b458 | 465 | %if %{with apache} |
b56474ff | 466 | %attr(754,root,root) /etc/rc.d/init.d/svnserve |
86ea8fde | 467 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve |
0905b458 | 468 | %endif |
b56474ff | 469 | |
4bbdbbf8 AM |
470 | %files tools |
471 | %defattr(644,root,root,755) | |
1326bb99 | 472 | %attr(755,root,root) %{_bindir}/svn-hot-backup |
fe5bb6bb | 473 | |
474 | %files -n bash-completion-subversion | |
101e74de | 475 | %defattr(644,root,root,755) |
1326bb99 | 476 | /etc/bash_completion.d/%{name} |
536b3fd3 | 477 | |
0905b458 | 478 | %if %{with python} |
fa3ff1b2 | 479 | %files -n python-subversion |
f4e6a380 | 480 | %defattr(644,root,root,755) |
4bbdbbf8 | 481 | %doc tools/backup/*.py tools/examples/*.py |
f4e6a380 | 482 | %dir %{py_sitedir}/svn |
65318afa | 483 | %dir %{py_sitedir}/libsvn |
f4e6a380 | 484 | %{py_sitedir}/svn/*.py[co] |
65318afa AF |
485 | %{py_sitedir}/libsvn/*.py[co] |
486 | %attr(755,root,root) %{py_sitedir}/libsvn/*.so | |
1326bb99 | 487 | %{_examplesdir}/python-%{name}-%{version} |
c00fdf6f | 488 | %attr(755,root,root) %{_libdir}/lib*_swig_py*.so* |
0905b458 | 489 | %endif |
f4e6a380 | 490 | |
0905b458 | 491 | %if %{with perl} |
b56474ff AM |
492 | %files -n perl-subversion |
493 | %defattr(644,root,root,755) | |
494 | %{perl_vendorarch}/SVN | |
495 | %dir %{perl_vendorarch}/auto/SVN | |
496 | %dir %{perl_vendorarch}/auto/SVN/* | |
497 | %attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so | |
498 | %{perl_vendorarch}/auto/SVN/*/*.bs | |
499 | %{_mandir}/man3/*.3pm* | |
c00fdf6f | 500 | %attr(755,root,root) %{_libdir}/lib*_swig_perl*.so* |
0905b458 | 501 | %endif |
b56474ff | 502 | |
0905b458 | 503 | %if %{with apache} |
93b78127 AM |
504 | %files -n apache-mod_dav_svn |
505 | %defattr(644,root,root,755) | |
4c624bb1 ER |
506 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{pkgconfdir}/*_mod_dav_svn.conf |
507 | %attr(755,root,root) %{pkglibdir}/mod_dav_svn.so | |
65318afa AF |
508 | |
509 | %files -n apache-mod_authz_svn | |
510 | %defattr(644,root,root,755) | |
511 | %doc subversion/mod_authz_svn/INSTALL | |
4c624bb1 ER |
512 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{pkgconfdir}/*_mod_authz_svn.conf |
513 | %attr(755,root,root) %{pkglibdir}/mod_authz_svn.so | |
536b3fd3 | 514 | %endif |
7b27380f ER |
515 | |
516 | %endif # net_client_only |