]>
Commit | Line | Data |
---|---|---|
8d40da51 | 1 | # |
bab73684 | 2 | # Conditional build: |
65c1d4bd | 3 | %bcond_with net_client_only # build only net client |
298f7114 | 4 | %bcond_without swig # disable bindings generation with Swig |
b1c8f82b | 5 | %bcond_without python # build without Python bindings |
5b21aa20 ER |
6 | %bcond_without csvn # build Python csvn bindings |
7 | %bcond_without perl # build without Perl bindings | |
bab2a704 | 8 | %bcond_with ruby # build without Ruby bindings |
298f7114 | 9 | %bcond_without apache # build without Apache support (webdav, etc) |
15e0d824 | 10 | %bcond_without java # build without javahl support (Java high-level bindings) |
3b981cf4 | 11 | %bcond_with tests # don't perform "make check" |
99500116 JR |
12 | %bcond_without kwallet # build without kde5 wallet support |
13 | %bcond_without kde # build without kde5 support (alias for kwallet) | |
bfb248d0 | 14 | %bcond_without gnome # build without gnome keyring support |
86250f0b | 15 | %bcond_without db # disable Subversion Berkeley DB based filesystem library |
28b85877 | 16 | %bcond_with db6 # allow BDB6 (not tested by upstream, released on AGPL) |
12c96b58 | 17 | |
15e0d824 | 18 | # for AC: --without csvn,gnome,java,kde,ruby |
355bd683 | 19 | |
298f7114 ER |
20 | %if %{with net_client_only} |
21 | %undefine with_apache | |
22 | %undefine with_db | |
23 | %undefine with_swig | |
15e0d824 | 24 | %undefine with_java |
eeba69cd ER |
25 | %undefine with_csvn |
26 | %undefine with_gnome | |
27 | %undefine with_kde | |
298f7114 ER |
28 | %endif |
29 | ||
30 | %if %{without swig} | |
31 | %undefine with_perl | |
32 | %undefine with_python | |
33 | %undefine with_ruby | |
34 | %endif | |
12c96b58 | 35 | |
d9d66e02 | 36 | %if %{without kde} |
3c200272 JB |
37 | %undefine with_kwallet |
38 | %endif | |
298f7114 ER |
39 | |
40 | %if %{without python} && %{without perl} && %{without ruby} | |
e2c40ca2 | 41 | %undefine with_swig |
298f7114 ER |
42 | %endif |
43 | ||
44 | %define apxs /usr/sbin/apxs | |
45 | %define pdir SVN | |
46 | %define pnam _Core | |
47 | ||
67cb9518 | 48 | Summary: A Concurrent Versioning system similar to but better than CVS |
abe3c421 ER |
49 | Summary(pl.UTF-8): System kontroli wersji podobny, ale lepszy, niż CVS |
50 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
93b78127 | 51 | Name: subversion |
69c6af4b JP |
52 | Version: 1.14.0 |
53 | Release: 1 | |
8df86594 | 54 | License: Apache v2.0 |
93b78127 | 55 | Group: Development/Version Control |
8942083b | 56 | Source0: http://www.apache.org/dist/subversion/%{name}-%{version}.tar.bz2 |
69c6af4b | 57 | # Source0-md5: 8f6c50632355ae08445c2ed63ba9689e |
93b78127 | 58 | Source1: %{name}-dav_svn.conf |
65318afa | 59 | Source2: %{name}-authz_svn.conf |
b56474ff AM |
60 | Source3: %{name}-svnserve.init |
61 | Source4: %{name}-svnserve.sysconfig | |
a510fada AM |
62 | # current subversion tarball has correct *.swg files |
63 | # but after regeneration these are broken again, so | |
64 | # we still need this script | |
f313e9a9 | 65 | Source5: %{name}-convert-typemaps-to-ifdef.py |
ed6210a2 | 66 | Patch0: %{name}-home_etc.patch |
d46e45ba | 67 | Patch1: %{name}-DESTDIR.patch |
00664663 | 68 | Patch2: %{name}-ruby-datadir-path.patch |
1cfe7af2 | 69 | Patch3: %{name}-tests.patch |
7923efca | 70 | Patch4: x32-libdir.patch |
dc8fcc41 | 71 | URL: http://subversion.apache.org/ |
f9c8674f | 72 | %{?with_apache:BuildRequires: apache-devel >= 2.4.14} |
8d40da51 JB |
73 | BuildRequires: apr-devel >= 1:1.3 |
74 | BuildRequires: apr-util-devel >= 1:1.3 | |
4323aab4 | 75 | BuildRequires: apr-util-crypto-openssl |
b0a7a5b2 | 76 | BuildRequires: autoconf >= 2.59 |
86250f0b | 77 | BuildRequires: automake |
79d8c53c | 78 | BuildRequires: bison |
dfeb8a3c | 79 | BuildRequires: cyrus-sasl-devel |
86250f0b JB |
80 | %if %{with kwallet} || %{with gnome} |
81 | BuildRequires: dbus-devel | |
82 | %endif | |
7937f96a | 83 | %{!?with_db6:BuildRequires: db-devel < 6} |
b98707c2 | 84 | BuildRequires: db-devel >= 4.1.25 |
93b78127 | 85 | BuildRequires: expat-devel |
b4f033d9 | 86 | BuildRequires: gettext-tools |
8d40da51 | 87 | %{?with_gnome:BuildRequires: glib2-devel >= 2.0} |
60036f0a | 88 | %{?with_kde:BuildRequires: kf5-kdelibs4support-devel} |
99500116 | 89 | %{?with_kwallet:BuildRequires: kf5-kwallet-devel} |
5f328a6e | 90 | %{?with_gnome:BuildRequires: libgnome-keyring-devel} |
fdee3c2c | 91 | %{?with_gnome:BuildRequires: libsecret-devel} |
86250f0b | 92 | BuildRequires: libmagic-devel |
a70bbcf5 | 93 | BuildRequires: libtool >= 2:2 |
ca1e2bce | 94 | BuildRequires: libutf8proc-devel >= 1.3.1-4 |
62313a20 | 95 | BuildRequires: lz4-devel |
54271075 | 96 | BuildRequires: pkgconfig |
86250f0b | 97 | %{?with_csvn:BuildRequires: python-ctypesgen} |
c01720ea | 98 | BuildRequires: rpm-pythonprov |
dd30c674 | 99 | BuildRequires: rpmbuild(macros) >= 1.656 |
a562165a | 100 | BuildRequires: sed >= 4.0 |
8d40da51 | 101 | BuildRequires: serf-devel >= 1.3.4 |
62313a20 | 102 | BuildRequires: sqlite3-devel >= 3.8.11.1 |
a562165a JB |
103 | BuildRequires: texinfo |
104 | BuildRequires: which | |
62313a20 | 105 | BuildRequires: zlib-devel >= 1.2 |
15e0d824 | 106 | %if %{with java} |
c4092ce7 | 107 | BuildRequires: jdk >= 1.8 |
a70bbcf5 | 108 | BuildRequires: libstdc++-devel >= 6:4.7 |
86250f0b JB |
109 | %endif |
110 | %if %{with perl} | |
111 | BuildRequires: perl-devel >= 1:5.8.0 | |
112 | BuildRequires: rpm-perlprov >= 4.1-13 | |
113 | BuildRequires: swig-perl >= 1.3.24 | |
114 | %endif | |
115 | %if %{with python} | |
69c6af4b | 116 | BuildRequires: py3c |
86250f0b | 117 | BuildRequires: python-devel >= 1:2.4 |
b1c8f82b AM |
118 | BuildRequires: swig3-python >= 3.0.12 |
119 | BuildRequires: swig3-python < 4.0.0 | |
86250f0b JB |
120 | %endif |
121 | %if %{with ruby} | |
1d7939c9 | 122 | BuildRequires: rpm-rubyprov |
38c0314f | 123 | BuildRequires: ruby-devel >= 1:1.8.2 |
8942083b | 124 | BuildRequires: ruby-irb |
86250f0b JB |
125 | BuildRequires: ruby-rubygems |
126 | BuildRequires: swig-ruby >= 1.3.24 | |
e3ad24ea | 127 | %endif |
027f8ebe | 128 | Requires: %{name}-libs = %{version}-%{release} |
8b023a9d | 129 | %requires_ge sqlite3 |
93b78127 AM |
130 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
131 | ||
f4070f5f | 132 | %define _libexecdir %{_libdir}/svn |
1af5e34d ER |
133 | %define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
134 | %define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
93b78127 | 135 | |
f9c8674f | 136 | %define skip_post_check_so libsvn_swig_py-1.so.* libsvn_swig_perl-1.so.* libsvn_fs_x-1.so.* |
58f4b627 | 137 | |
93b78127 AM |
138 | %description |
139 | The goal of the Subversion project is to build a version control | |
140 | system that is a compelling replacement for CVS in the open source | |
141 | community. | |
142 | ||
143 | Our goals are: | |
144 | - All current CVS features. | |
145 | - Directories, renames, and file meta-data are versioned. | |
146 | - Symbolic links, etc, are supported | |
147 | - Commits are truly atomic. | |
148 | - Branching and tagging are cheap (constant time) operations | |
149 | - Repeated merges are handled gracefully | |
150 | - Support for plug-in client side diff programs | |
151 | - Natively client/server | |
152 | - Client/server protocol sends diffs in both directions | |
153 | - Costs are proportional to change size, not project size | |
154 | - Internationalization | |
155 | - Progressive multi-lingual support | |
156 | ||
aa59005f | 157 | %description -l pl.UTF-8 |
93b78127 AM |
158 | Celem projektu Subversion jest stworzenie systemu kontroli wersji jako |
159 | zamiennika dla CVS. | |
160 | ||
161 | Cele projektu to: | |
aa59005f | 162 | - Wszystkie aktualne możliwości CVS. |
24406120 JB |
163 | - Katalogi, zmiany nazw oraz metadane plików są wersjonowane. |
164 | - Obsługa dowiązań symbolicznych itp. | |
aa59005f JR |
165 | - Commity są w pełni atomowe. |
166 | - Branchowanie oraz tagowanie są tanimi (stałymi w czasie) operacjami. | |
24406120 JB |
167 | - Dobra obsługa powtarzanego łączenia (merge). |
168 | - Obsługa wtyczek diff po stronie klienta. | |
93b78127 | 169 | - Natywny klient/serwer. |
aa59005f | 170 | - Klient/Serwer przesyłają diffy w obu kierunkach. |
93b78127 AM |
171 | - Koszty proporcjonalne do rozmiaru zmiany, a nie rozmiaru projektu. |
172 | - Internacjonalizacja. | |
aa59005f | 173 | - Postępujące wsparcie dla wielu języków. |
93b78127 | 174 | |
aa59005f JR |
175 | %description -l pt_BR.UTF-8 |
176 | O objetivo do projeto Subversion é construir um sistema de controle de | |
177 | versões que seja um substituto para o CVS (Concurrent Versioning | |
92066deb | 178 | System) na comunidade opensource, fornecendo grandes melhorias. |
179 | ||
f4e6a380 AM |
180 | %package libs |
181 | Summary: Subversion libraries and modules | |
abe3c421 | 182 | Summary(pl.UTF-8): Biblioteka subversion oraz ładowalne moduły |
f4e6a380 | 183 | Group: Libraries |
8d40da51 JB |
184 | Requires: apr >= 1:1.3 |
185 | Requires: apr-util >= 1:1.3 | |
186 | Requires: serf >= 1.3.4 | |
62313a20 | 187 | Requires: zlib >= 1.2 |
53855fbf | 188 | Obsoletes: libsubversion0 |
f4e6a380 AM |
189 | |
190 | %description libs | |
191 | Subversion libraries and modules. | |
192 | ||
aa59005f JR |
193 | %description libs -l pl.UTF-8 |
194 | Biblioteka subversion oraz ładowalne moduły. | |
f4e6a380 | 195 | |
93b78127 AM |
196 | %package devel |
197 | Summary: Header files and develpment documentation for subversion | |
abe3c421 ER |
198 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do subversion |
199 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para o Subversion | |
93b78127 | 200 | Group: Development/Libraries |
9cb7e099 | 201 | Requires: %{name}-libs = %{version}-%{release} |
8d40da51 | 202 | Requires: apr-util-devel >= 1:1.3 |
567d54df | 203 | Requires: libutf8proc-devel >= 1.3.1-4 |
8d40da51 | 204 | Requires: serf-devel >= 1.3.4 |
12cf252c | 205 | Obsoletes: libsubversion0-devel |
93b78127 AM |
206 | |
207 | %description devel | |
208 | Header files and develpment documentation for subversion. | |
209 | ||
aa59005f JR |
210 | %description devel -l pl.UTF-8 |
211 | Pliki nagłówkowe i dokumetacja do subversion. | |
93b78127 | 212 | |
aa59005f JR |
213 | %description devel -l pt_BR.UTF-8 |
214 | Este pacote provê os arquivos necessários para desenvolvedores | |
92066deb | 215 | interagirem com o Subversion. |
216 | ||
93b78127 AM |
217 | %package static |
218 | Summary: Static subversion library | |
abe3c421 ER |
219 | Summary(pl.UTF-8): Biblioteka statyczna subversion |
220 | Summary(pt_BR.UTF-8): Sistema de versionamento concorrente | |
93b78127 AM |
221 | Group: Development/Libraries |
222 | Requires: %{name}-devel = %{version} | |
12cf252c | 223 | Obsoletes: libsubversion0-static-devel |
93b78127 AM |
224 | |
225 | %description static | |
226 | Static subversion library. | |
227 | ||
aa59005f | 228 | %description static -l pl.UTF-8 |
93b78127 AM |
229 | Biblioteka statyczna subversion. |
230 | ||
aa59005f JR |
231 | %description static -l pt_BR.UTF-8 |
232 | Este pacote provê um cliente estático do subversion. | |
92066deb | 233 | |
b56474ff AM |
234 | %package svnserve |
235 | Summary: Subversion svnserve | |
abe3c421 | 236 | Summary(pl.UTF-8): Subversion svnserve |
b56474ff | 237 | Group: Networking/Daemons |
3817faf5 | 238 | Requires(post,preun): /sbin/chkconfig |
93f1d402 | 239 | Requires(postun): /usr/sbin/groupdel |
240 | Requires(postun): /usr/sbin/userdel | |
241 | Requires(pre): /bin/id | |
242 | Requires(pre): /usr/bin/getgid | |
243 | Requires(pre): /usr/lib/rpm/user_group.sh | |
244 | Requires(pre): /usr/sbin/groupadd | |
245 | Requires(pre): /usr/sbin/useradd | |
246 | Requires(pre): /usr/sbin/usermod | |
9cb7e099 | 247 | Requires: %{name} = %{version}-%{release} |
7b27380f | 248 | Requires: rc-scripts |
a1bac09d MŁ |
249 | Provides: group(svn) |
250 | Provides: user(svn) | |
b56474ff AM |
251 | |
252 | %description svnserve | |
253 | Subversion svnserve server. | |
254 | ||
aa59005f | 255 | %description svnserve -l pl.UTF-8 |
b56474ff AM |
256 | Serwer subversion svnserve. |
257 | ||
4bbdbbf8 AM |
258 | %package tools |
259 | Summary: Subversion tools and scripts | |
abe3c421 ER |
260 | Summary(pl.UTF-8): Narzędzia oraz skrypty dla subversion |
261 | Summary(pt_BR.UTF-8): Módulos python para acessar os recursos do Subversion | |
4bbdbbf8 | 262 | Group: Applications |
7b27380f | 263 | Requires: %{name} = %{version}-%{release} |
4975bf39 | 264 | Requires: python |
0aa109cb | 265 | %{?with_python:Requires: python-subversion = %{version}} |
4bbdbbf8 AM |
266 | |
267 | %description tools | |
268 | Subversion tools and scripts. | |
269 | ||
aa59005f JR |
270 | %description tools -l pl.UTF-8 |
271 | Narzędzia oraz skrypty dla subversion. | |
4bbdbbf8 | 272 | |
fe5bb6bb | 273 | %package -n bash-completion-subversion |
274 | Summary: bash completion for subversion | |
abe3c421 | 275 | Summary(pl.UTF-8): Dopełnienia basha dla subversion |
fe5bb6bb | 276 | Group: Applications/Shells |
e30588c4 | 277 | Requires: %{name} = %{version}-%{release} |
53855fbf | 278 | Requires: bash-completion |
e30588c4 | 279 | Conflicts: %{name}-tools <= 1.1.0-0.rc6.1 |
90e66b00 ER |
280 | %if "%{_rpmversion}" >= "5" |
281 | BuildArch: noarch | |
282 | %endif | |
fe5bb6bb | 283 | |
284 | %description -n bash-completion-subversion | |
285 | Bash completion for subversion. | |
286 | ||
aa59005f JR |
287 | %description -n bash-completion-subversion -l pl.UTF-8 |
288 | Dopełnienia basha dla subversion. | |
fe5bb6bb | 289 | |
1cc7453a | 290 | %package -n java-subversion |
65c1d4bd JB |
291 | Summary: Subversion Java bindings |
292 | Summary(pl.UTF-8): Dowiązania do Subversion dla Javy | |
1cc7453a | 293 | Group: Development/Languages/Java |
294 | Requires: %{name}-libs = %{version}-%{release} | |
295 | ||
296 | %description -n java-subversion | |
297 | This is a set of Java classes which provide the functionality of | |
298 | subversion-libs, the Subversion libraries. It is useful if you want | |
299 | to, for example, write a Java class that manipulates a Subversion | |
300 | repository or working copy. See the 'subversion' package for more | |
301 | information. | |
302 | ||
65c1d4bd JB |
303 | %description -n java-subversion -l pl.UTF-8 |
304 | Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność | |
305 | subversion-libs, czyli bibliotek Subversion. Jest przydatny przy | |
d46e45ba AM |
306 | pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię |
307 | roboczą. Więcej informacji w pakiecie subversion. | |
65c1d4bd | 308 | |
fa3ff1b2 | 309 | %package -n python-subversion |
65c1d4bd JB |
310 | Summary: Subversion Python bindings |
311 | Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona | |
312 | Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion | |
f4e6a380 | 313 | Group: Development/Languages/Python |
9cb7e099 | 314 | Requires: %{name}-libs = %{version}-%{release} |
4975bf39 | 315 | Requires: python |
53855fbf | 316 | Obsoletes: subversion-python |
f4e6a380 | 317 | |
fa3ff1b2 | 318 | %description -n python-subversion |
65c1d4bd | 319 | Subversion Python bindings. |
f4e6a380 | 320 | |
aa59005f | 321 | %description -n python-subversion -l pl.UTF-8 |
65c1d4bd | 322 | Dowiązania do Subversion dla Pythona. |
f4e6a380 | 323 | |
aa59005f | 324 | %description -n python-subversion -l pt_BR.UTF-8 |
65c1d4bd | 325 | Módulos Python para acessar os recursos do Subversion. |
92066deb | 326 | |
137fcafd AM |
327 | %package -n python-csvn |
328 | Summary: CTypes Subversion Python bindings | |
329 | Summary(pl.UTF-8): Dowiązania do Subversion dla Pythona | |
330 | Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do Subversion | |
331 | Group: Development/Languages/Python | |
137fcafd | 332 | Requires: %{name}-libs = %{version}-%{release} |
4975bf39 | 333 | Requires: python |
137fcafd AM |
334 | |
335 | %description -n python-csvn | |
336 | Subversion CTypes Python bindings. | |
337 | ||
338 | %description -n python-csvn -l pl.UTF-8 | |
339 | Dowiązania do Subversion dla Pythona używające CTypes. | |
340 | ||
341 | %description -n python-csvn -l pt_BR.UTF-8 | |
342 | Módulos Python para acessar os recursos do Subversion. | |
343 | ||
b56474ff | 344 | %package -n perl-subversion |
65c1d4bd JB |
345 | Summary: Subversion Perl bindings |
346 | Summary(pl.UTF-8): Dowiązania do Subversion dla Perla | |
347 | Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do Subversion | |
b56474ff | 348 | Group: Development/Languages/Perl |
9cb7e099 | 349 | Requires: %{name}-libs = %{version}-%{release} |
53855fbf | 350 | Obsoletes: subversion-perl |
b56474ff AM |
351 | |
352 | %description -n perl-subversion | |
65c1d4bd | 353 | Subversion Perl bindings. |
b56474ff | 354 | |
aa59005f | 355 | %description -n perl-subversion -l pl.UTF-8 |
65c1d4bd | 356 | Dowiązania do Subversion dla Perla. |
b56474ff | 357 | |
aa59005f | 358 | %description -n perl-subversion -l pt_BR.UTF-8 |
65c1d4bd | 359 | Módulos Perl para acessar os recursos do Subversion. |
b56474ff | 360 | |
d46e45ba AM |
361 | %package -n ruby-subversion |
362 | Summary: Subversion Ruby bindings | |
d2bf70bf | 363 | Summary(pl.UTF-8): Dowiązania do Subversion dla języka Ruby |
d46e45ba AM |
364 | Summary(pt_BR.UTF-8): Módulos Ruby para acessar os recursos do Subversion |
365 | Group: Development/Languages | |
366 | Requires: %{name}-libs = %{version}-%{release} | |
367 | Obsoletes: subversion-ruby | |
368 | ||
369 | %description -n ruby-subversion | |
370 | Subversion Ruby bindings. | |
371 | ||
372 | %description -n ruby-subversion -l pl.UTF-8 | |
d2bf70bf | 373 | Dowiązania do Subversion dla języka Ruby. |
d46e45ba AM |
374 | |
375 | %description -n ruby-subversion -l pt_BR.UTF-8 | |
376 | Módulos Ruby para acessar os recursos do Subversion. | |
377 | ||
93b78127 AM |
378 | %package -n apache-mod_dav_svn |
379 | Summary: Apache module: Subversion Server | |
ba084299 | 380 | Summary(pl.UTF-8): Moduł Apache'a: serwer Subversion |
93b78127 | 381 | Group: Networking/Daemons |
7b27380f | 382 | Requires: %{name} = %{version}-%{release} |
53855fbf | 383 | Requires: apache(modules-api) = %apache_modules_api |
7887b1ac | 384 | Requires: apache-mod_dav |
93b78127 AM |
385 | |
386 | %description -n apache-mod_dav_svn | |
387 | Apache module: Subversion Server. | |
388 | ||
aa59005f | 389 | %description -n apache-mod_dav_svn -l pl.UTF-8 |
ba084299 | 390 | Moduł Apache'a: serwer Subversion. |
93b78127 | 391 | |
65318afa AF |
392 | %package -n apache-mod_authz_svn |
393 | Summary: Apache module: Subversion Server - path-based authorization | |
ba084299 | 394 | Summary(pl.UTF-8): Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera Subversion |
65318afa | 395 | Group: Networking/Daemons |
38c0314f | 396 | Requires: %{name}-libs = %{version}-%{release} |
53855fbf | 397 | Requires: apache(modules-api) = %apache_modules_api |
9cb7e099 | 398 | Requires: apache-mod_dav_svn = %{version}-%{release} |
65318afa AF |
399 | |
400 | %description -n apache-mod_authz_svn | |
401 | Apache module: Subversion Server - path-based authorization. | |
402 | ||
aa59005f | 403 | %description -n apache-mod_authz_svn -l pl.UTF-8 |
ba084299 JB |
404 | Moduł Apache'a: autoryzacja na podstawie ścieżki dla serwera |
405 | Subversion. | |
e23909be | 406 | |
53bea8b1 AM |
407 | %package -n apache-mod_dontdothat_svn |
408 | Summary: Apache module: Allows you to block specific svn requests | |
ba084299 | 409 | Summary(pl.UTF-8): Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn |
53bea8b1 AM |
410 | Group: Networking/Daemons |
411 | Requires: %{name}-libs = %{version}-%{release} | |
412 | Requires: apache(modules-api) = %apache_modules_api | |
413 | Requires: apache-mod_dav_svn = %{version}-%{release} | |
414 | ||
415 | %description -n apache-mod_dontdothat_svn | |
416 | Apache module: Allows you to block specific svn requests. | |
417 | ||
418 | %description -n apache-mod_dontdothat_svn -l pl.UTF-8 | |
ba084299 | 419 | Moduł Apache'a pozwalający na blokowanie pewnych zapytań svn. |
53bea8b1 | 420 | |
1429fa1c | 421 | %package -n gnome-keyring-subversion |
fe242fac JB |
422 | Summary: GNOME Keyring authentication provider for Subversion |
423 | Summary(pl.UTF-8): Moduł uwierzytelniający GNOME Keyring dla Subversion | |
1429fa1c | 424 | Group: X11/Applications |
38c0314f | 425 | Requires: %{name}-libs = %{version}-%{release} |
1429fa1c AM |
426 | |
427 | %description -n gnome-keyring-subversion | |
fe242fac JB |
428 | Authentication provider module for Subversion which allows SVN client |
429 | to authenticate using GNOME Keyring. | |
1429fa1c AM |
430 | |
431 | %description -n gnome-keyring-subversion -l pl.UTF-8 | |
fe242fac JB |
432 | Moduł uwierzytelniający dla Subversion pozwalający klientom SVN |
433 | uwierzytelniać się przy użyciu mechanizmu GNOME Keyring. | |
1429fa1c | 434 | |
99500116 | 435 | %package -n kde5-kwallet-subversion |
fe242fac JB |
436 | Summary: KDE Wallet authentication provider for Subversion |
437 | Summary(pl.UTF-8): Moduł uwierzytelniający dla Subversion wykorzystujący Portfel KDE | |
1429fa1c | 438 | Group: X11/Applications |
38c0314f | 439 | Requires: %{name}-libs = %{version}-%{release} |
1429fa1c | 440 | |
99500116 | 441 | %description -n kde5-kwallet-subversion |
fe242fac JB |
442 | Authentication provider module for Subversion which allows SVN client |
443 | to authenticate using KDE Wallet. | |
1429fa1c | 444 | |
99500116 | 445 | %description -n kde5-kwallet-subversion -l pl.UTF-8 |
fe242fac JB |
446 | Moduł uwierzytelniający dla Subversion pozwalający klientom SVN |
447 | uwierzytelniać się przy użyciu Portfela KDE. | |
1429fa1c | 448 | |
93b78127 | 449 | %prep |
0c6e93f6 | 450 | %setup -q |
ed6210a2 | 451 | %patch0 -p0 |
d4bccc60 | 452 | %patch1 -p1 |
00664663 | 453 | %patch2 -p0 |
1cfe7af2 | 454 | %patch3 -p1 |
7923efca | 455 | %patch4 -p1 |
a510fada AM |
456 | |
457 | sed -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4 | |
458 | ||
b1c8f82b | 459 | sed -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ |
33350c9f | 460 | tools/backup/hot-backup.py.in \ |
b1c8f82b AM |
461 | tools/examples/blame.py \ |
462 | tools/examples/check-modified.py \ | |
463 | tools/examples/dumpprops.py \ | |
464 | tools/examples/get-location-segments.py \ | |
465 | tools/examples/getfile.py \ | |
466 | tools/examples/geturl.py \ | |
467 | tools/examples/putfile.py \ | |
468 | tools/examples/revplist.py \ | |
469 | tools/examples/svnlook.py \ | |
470 | tools/examples/svnshell.py \ | |
471 | tools/examples/walk-config-auth.py | |
472 | ||
93b78127 | 473 | %build |
1cfe7af2 JB |
474 | # disabled regeneration - subversion 1.6.13 is not ready for swig 2.0.x |
475 | #%{__rm} subversion/bindings/swig/proxy/*.swg | |
476 | #cd subversion/bindings/swig && python "%{SOURCE5}" && cd ../../.. | |
67cb9518 | 477 | chmod +x ./autogen.sh && ./autogen.sh |
1cfe7af2 | 478 | %{__libtoolize} |
93b78127 | 479 | %configure \ |
5dfeafd7 | 480 | --with-editor=vi \ |
12ae68c1 | 481 | --with-zlib=%{_libdir} \ |
fa6fa2cf | 482 | --disable-runtime-module-search \ |
86ee97d3 | 483 | --disable-mod-activation \ |
298f7114 | 484 | %if %{with db} |
ad5c551e | 485 | --with-berkeley-db="db.h:%{_includedir}:%{_libdir}:db" \ |
28b85877 | 486 | %{?with_db6:--enable-bdb6} \ |
298f7114 ER |
487 | %else |
488 | --without-berkeley-db \ | |
489 | %endif | |
0905b458 | 490 | %if %{with apache} |
1e0ba091 | 491 | --with-apache-libexecdir="$(%{_sbindir}/apxs -q LIBEXECDIR)" \ |
536b3fd3 | 492 | --with-apxs=%{_sbindir}/apxs \ |
0905b458 | 493 | %else |
0905b458 | 494 | --without-apxs \ |
0905b458 | 495 | %endif |
298f7114 | 496 | %if %{without swig} |
0905b458 | 497 | --without-swig \ |
5c072a77 | 498 | %endif |
69c6af4b JP |
499 | %if %{with python} |
500 | --with-swig=/usr/bin/swig-3 \ | |
501 | %endif | |
dd30c674 ER |
502 | %if %{with ruby} |
503 | svn_cv_ruby_sitedir_libsuffix="" \ | |
504 | svn_cv_ruby_sitedir_archsuffix="" \ | |
505 | --with-ruby-sitedir=%{ruby_vendorarchdir} \ | |
506 | %else | |
5c072a77 | 507 | ac_cv_path_RUBY=none \ |
0905b458 | 508 | %endif |
a26edfbd ER |
509 | %if %{with csvn} |
510 | --with-ctypesgen=%{_bindir}/ctypesgen.py \ | |
511 | %endif | |
c3746b64 | 512 | %if %{with java} |
a26edfbd | 513 | --enable-javahl \ |
1cc7453a | 514 | --with-jdk="%{java_home}" \ |
cf2589d0 | 515 | --without-jikes \ |
a26edfbd ER |
516 | %else |
517 | --disable-javahl \ | |
518 | %endif | |
04129f48 | 519 | --with-serf=%{_prefix} \ |
16429189 | 520 | --with-apr=%{_bindir}/apr-1-config \ |
1429fa1c | 521 | --with-apr-util=%{_bindir}/apu-1-config \ |
65f2befa | 522 | %if %{with kwallet} |
1429fa1c | 523 | --with-kwallet \ |
65f2befa | 524 | %endif |
bfb248d0 | 525 | %if %{with gnome} |
1429fa1c | 526 | --with-gnome-keyring |
bfb248d0 | 527 | %endif |
536b3fd3 | 528 | |
1f630180 | 529 | %{__make} -j1 |
536b3fd3 | 530 | |
92bfa7e1 ER |
531 | %{__make} tools |
532 | ||
5b21aa20 | 533 | %if %{with csvn} |
a26edfbd | 534 | # Python ctypes bindings |
137fcafd | 535 | %{__make} ctypes-python |
5b21aa20 | 536 | %endif |
a26edfbd ER |
537 | %if %{with python} |
538 | # Python swig bindings | |
86a4919e | 539 | %{__make} swig-py \ |
65318afa AF |
540 | swig_pydir=%{py_sitedir}/libsvn \ |
541 | swig_pydir_extra=%{py_sitedir}/svn | |
0905b458 | 542 | %endif |
0905b458 | 543 | %if %{with perl} |
a26edfbd | 544 | # Perl swig bindings |
390bb8f4 | 545 | %{__make} -j1 swig-pl-lib |
bf539998 AM |
546 | cd subversion/bindings/swig/perl/native |
547 | %{__perl} Makefile.PL INSTALLDIRS=vendor | |
b445847c | 548 | %{__make} -j1 |
a26edfbd | 549 | cd - |
536b3fd3 | 550 | %endif |
c3746b64 | 551 | %if %{with java} |
b445847c | 552 | %{__make} -j1 javahl \ |
1cc7453a | 553 | javahl_javadir="%{_javadir}" |
554 | %endif | |
d46e45ba AM |
555 | # ruby |
556 | %if %{with ruby} | |
557 | %{__make} swig-rb | |
558 | %endif | |
12ae68c1 AM |
559 | |
560 | %if %{with tests} | |
5abe2f77 | 561 | %{__make} -j1 check |
5b21aa20 | 562 | %if %{with csvn} |
5abe2f77 | 563 | %{__make} -j1 check-ctypes-python |
5b21aa20 | 564 | %endif |
a26edfbd | 565 | %if %{with python} |
5abe2f77 | 566 | %{__make} -j1 check-swig-py |
d46e45ba AM |
567 | %endif |
568 | %if %{with perl} | |
5abe2f77 | 569 | %{__make} -j1 check-swig-pl |
d46e45ba AM |
570 | %endif |
571 | %if %{with ruby} | |
6e3aae2d ER |
572 | # disabled, see https://bugs.launchpad.net/pld-linux/+bug/734340 |
573 | #%{__make} check-swig-rb | |
d46e45ba | 574 | %endif |
0905b458 | 575 | %endif |
93b78127 AM |
576 | |
577 | %install | |
578 | rm -rf $RPM_BUILD_ROOT | |
1326bb99 | 579 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,bash_completion.d} \ |
1af5e34d | 580 | $RPM_BUILD_ROOT{%{apacheconfdir},%{apachelibdir},%{_infodir}} \ |
afb35189 | 581 | $RPM_BUILD_ROOT%{_examplesdir}/{%{name}-%{version},python-%{name}-%{version}} \ |
d9d66e02 | 582 | $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \ |
a54611db | 583 | $RPM_BUILD_ROOT/home/services/subversion{,/repos} |
93b78127 | 584 | |
9eb45f32 JB |
585 | %{__make} -j1 install \ |
586 | pkgconfig_dir=%{_pkgconfigdir} \ | |
92bfa7e1 | 587 | toolsdir=%{_bindir} \ |
a26edfbd ER |
588 | DESTDIR=$RPM_BUILD_ROOT \ |
589 | APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \ | |
c3746b64 | 590 | %if %{with java} |
1cc7453a | 591 | install-javahl \ |
592 | javahl_javadir="%{_javadir}" \ | |
593 | %endif | |
d46e45ba | 594 | %if %{with python} |
0905b458 | 595 | install-swig-py \ |
a26edfbd | 596 | swig_pydir=%{py_sitedir}/libsvn \ |
2ecedb13 | 597 | swig_pydir_extra=%{py_sitedir}/svn \ |
a26edfbd | 598 | %endif |
74465f3c JP |
599 | install-tools |
600 | ||
5b21aa20 | 601 | %if %{with csvn} |
74465f3c JP |
602 | # manually execute install-ctypes-python target |
603 | cd subversion/bindings/ctypes-python | |
604 | %py_install | |
605 | cd ../../.. | |
d46e45ba | 606 | %endif |
49f25a64 | 607 | |
d46e45ba | 608 | %if %{with ruby} |
9eb45f32 | 609 | %{__make} -j1 install-swig-rb install-swig-rb-doc \ |
59894d8a | 610 | SWIG_RB_RI_DATADIR=$RPM_BUILD_ROOT%{ruby_ridir} \ |
9eb45f32 | 611 | DESTDIR=$RPM_BUILD_ROOT |
49f25a64 ER |
612 | |
613 | # not our package | |
49f25a64 ER |
614 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/OptionParser |
615 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/Time | |
b98707c2 | 616 | %if "%{ruby_abi}" >= "2.0" |
59894d8a | 617 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_ridir}/File |
c6918405 | 618 | %endif |
49f25a64 ER |
619 | %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri |
620 | %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid | |
0905b458 | 621 | %endif |
93b78127 | 622 | |
298f7114 | 623 | %if %{with perl} |
bf539998 AM |
624 | %{__make} install-swig-pl-lib \ |
625 | DESTDIR=$RPM_BUILD_ROOT | |
b445847c | 626 | %{__make} -C subversion/bindings/swig/perl/native install \ |
bf539998 AM |
627 | DESTDIR=$RPM_BUILD_ROOT \ |
628 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ | |
629 | LIBDIR=$RPM_BUILD_ROOT%{_libdir} | |
bf539998 AM |
630 | %endif |
631 | ||
0905b458 | 632 | %if %{with apache} |
d9d66e02 ER |
633 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/65_mod_dav_svn.conf |
634 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{apacheconfdir}/66_mod_authz_svn.conf | |
635 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/svnserve | |
636 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svnserve | |
0905b458 | 637 | %endif |
93b78127 | 638 | |
d9d66e02 ER |
639 | %if %{without net_client_only} |
640 | install -p tools/backup/hot-backup.py $RPM_BUILD_ROOT%{_bindir}/svn-hot-backup | |
298f7114 | 641 | %endif |
92bfa7e1 ER |
642 | |
643 | # rename not to conflict with standard packages. (are these needed at all?) | |
9eb45f32 JB |
644 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff |
645 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff3 | |
646 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,svn}diff4 | |
92bfa7e1 | 647 | |
e834894b | 648 | %if %{with python} || %{with csvn} |
f4e6a380 AM |
649 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
650 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
3c200272 | 651 | %py_postclean |
e834894b ER |
652 | %endif |
653 | %if %{with python} | |
3c200272 | 654 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.la |
f37da0a1 ER |
655 | # .a created on ac only |
656 | %{__rm} -f $RPM_BUILD_ROOT%{py_sitedir}/libsvn/*.a | |
657 | cp -p tools/examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
536b3fd3 | 658 | %endif |
f4e6a380 | 659 | |
d9d66e02 ER |
660 | cp -p tools/client-side/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/%{name} |
661 | cp -p tools/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
1326bb99 | 662 | |
c3746b64 | 663 | %if %{with java} |
a26edfbd ER |
664 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvnjavahl*.{la,a} |
665 | %endif | |
298f7114 | 666 | %if %{with swig} |
fe242fac | 667 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_swig*.{la,a} |
5c072a77 | 668 | %if %{with ruby} |
dd30c674 | 669 | %{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/svn/ext/*.la |
5f328a6e | 670 | %endif |
5c072a77 | 671 | %endif |
fe242fac JB |
672 | %if %{with gnome} || %{with kwallet} |
673 | # dlopened by soname (libsvn_auth_*-1.so.0) | |
535649a6 | 674 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsvn_auth_*-1.{so,la} |
fe242fac | 675 | %endif |
205a3ddc | 676 | |
fe242fac | 677 | %find_lang %{name} |
a6ecf312 | 678 | |
e23909be JB |
679 | %clean |
680 | rm -rf $RPM_BUILD_ROOT | |
681 | ||
a1bac09d MŁ |
682 | %pre svnserve |
683 | %groupadd -g 86 svn | |
684 | %useradd -u 180 -d /home/services/subversion -c "Subversion svnserve" -g svn svn | |
685 | ||
d2bf70bf JB |
686 | %post libs -p /sbin/ldconfig |
687 | %postun libs -p /sbin/ldconfig | |
688 | ||
689 | %post devel -p /sbin/postshell | |
6f99c3bd | 690 | -/usr/sbin/fix-info-dir -c %{_infodir} |
93b78127 | 691 | |
d2bf70bf | 692 | %postun devel -p /sbin/postshell |
6f99c3bd | 693 | -/usr/sbin/fix-info-dir -c %{_infodir} |
93b78127 | 694 | |
12c96b58 ER |
695 | %post -n java-subversion -p /sbin/ldconfig |
696 | %postun -n java-subversion -p /sbin/ldconfig | |
697 | ||
d2bf70bf JB |
698 | %post -n perl-subversion -p /sbin/ldconfig |
699 | %postun -n perl-subversion -p /sbin/ldconfig | |
700 | ||
701 | %post -n python-subversion -p /sbin/ldconfig | |
702 | %postun -n python-subversion -p /sbin/ldconfig | |
f4e6a380 | 703 | |
12c96b58 ER |
704 | %post -n ruby-subversion -p /sbin/ldconfig |
705 | %postun -n ruby-subversion -p /sbin/ldconfig | |
706 | ||
707 | %post -n gnome-keyring-subversion -p /sbin/ldconfig | |
708 | %postun -n gnome-keyring-subversion -p /sbin/ldconfig | |
709 | ||
ab99ba37 JR |
710 | %post -n kde5-kwallet-subversion -p /sbin/ldconfig |
711 | %postun -n kde5-kwallet-subversion -p /sbin/ldconfig | |
12c96b58 | 712 | |
b56474ff | 713 | %post svnserve |
e8d9186f ER |
714 | /sbin/chkconfig --add svnserve |
715 | %service svnserve restart "svnserve daemon" | |
716 | ||
b56474ff AM |
717 | %preun svnserve |
718 | if [ "$1" = "0" ]; then | |
e8d9186f ER |
719 | %service svnserve stop |
720 | /sbin/chkconfig --del svnserve | |
b56474ff AM |
721 | fi |
722 | ||
a1bac09d MŁ |
723 | %postun svnserve |
724 | if [ "$1" = "0" ]; then | |
12c96b58 ER |
725 | %userremove svn |
726 | %groupremove svn | |
a1bac09d MŁ |
727 | fi |
728 | ||
93b78127 | 729 | %post -n apache-mod_dav_svn |
e8d9186f | 730 | %service -q httpd restart |
93b78127 | 731 | |
ba425c92 | 732 | %postun -n apache-mod_dav_svn |
93b78127 | 733 | if [ "$1" = "0" ]; then |
e8d9186f | 734 | %service -q httpd restart |
93b78127 AM |
735 | fi |
736 | ||
9688ba4c JR |
737 | %post -n apache-mod_authz_svn |
738 | %service -q httpd restart | |
739 | ||
ba425c92 | 740 | %postun -n apache-mod_authz_svn |
9688ba4c JR |
741 | if [ "$1" = "0" ]; then |
742 | %service -q httpd restart | |
743 | fi | |
744 | ||
53bea8b1 AM |
745 | %post -n apache-mod_dontdothat_svn |
746 | %service -q httpd restart | |
747 | ||
748 | %postun -n apache-mod_dontdothat_svn | |
749 | if [ "$1" = "0" ]; then | |
750 | %service -q httpd restart | |
751 | fi | |
752 | ||
93b78127 AM |
753 | %files |
754 | %defattr(644,root,root,755) | |
c5c1593f | 755 | %doc BUGS CHANGES INSTALL README |
d37298dc | 756 | %doc doc/*/*.html |
4bbdbbf8 AM |
757 | %doc tools/hook-scripts/*.{pl,py,example} |
758 | %doc tools/hook-scripts/mailer/*.{py,example} | |
1326bb99 | 759 | %doc tools/xslt/* |
535649a6 | 760 | %attr(755,root,root) %{_bindir}/fsfs-stats |
b445847c | 761 | %attr(755,root,root) %{_bindir}/svn |
535649a6 | 762 | %attr(755,root,root) %{_bindir}/svn-mergeinfo-normalizer |
b445847c | 763 | %attr(755,root,root) %{_bindir}/svnadmin |
535649a6 | 764 | %attr(755,root,root) %{_bindir}/svnconflict |
b445847c JB |
765 | %attr(755,root,root) %{_bindir}/svndumpfilter |
766 | %attr(755,root,root) %{_bindir}/svnlook | |
535649a6 | 767 | %attr(755,root,root) %{_bindir}/svnmover |
3d85fab0 | 768 | %attr(755,root,root) %{_bindir}/svnmucc |
1e0ba091 | 769 | %attr(755,root,root) %{_bindir}/svnrdump |
b445847c JB |
770 | %attr(755,root,root) %{_bindir}/svnsync |
771 | %attr(755,root,root) %{_bindir}/svnversion | |
772 | %{_mandir}/man1/svn.1* | |
773 | %{_mandir}/man1/svnadmin.1* | |
774 | %{_mandir}/man1/svndumpfilter.1* | |
c5c1593f | 775 | %{_mandir}/man1/svnrdump.1* |
b445847c | 776 | %{_mandir}/man1/svnlook.1* |
3d85fab0 | 777 | %{_mandir}/man1/svnmucc.1* |
b445847c JB |
778 | %{_mandir}/man1/svnsync.1* |
779 | %{_mandir}/man1/svnversion.1* | |
f4e6a380 | 780 | |
205a3ddc | 781 | %files libs -f %{name}.lang |
f4e6a380 | 782 | %defattr(644,root,root,755) |
d9d66e02 | 783 | %dir %{_sysconfdir}/%{name} |
b445847c JB |
784 | %attr(755,root,root) %{_libdir}/libsvn_client-1.so.*.*.* |
785 | %attr(755,root,root) %ghost %{_libdir}/libsvn_client-1.so.0 | |
786 | %attr(755,root,root) %{_libdir}/libsvn_delta-1.so.*.*.* | |
787 | %attr(755,root,root) %ghost %{_libdir}/libsvn_delta-1.so.0 | |
788 | %attr(755,root,root) %{_libdir}/libsvn_diff-1.so.*.*.* | |
789 | %attr(755,root,root) %ghost %{_libdir}/libsvn_diff-1.so.0 | |
790 | %attr(755,root,root) %{_libdir}/libsvn_fs-1.so.*.*.* | |
791 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs-1.so.0 | |
5f328a6e | 792 | %if %{without net_client_only} |
b445847c JB |
793 | %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so.*.*.* |
794 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_base-1.so.0 | |
5f328a6e | 795 | %endif |
b445847c JB |
796 | %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so.*.*.* |
797 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_fs-1.so.0 | |
798 | %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so.*.*.* | |
799 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_util-1.so.0 | |
f9c8674f AM |
800 | %attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so.*.*.* |
801 | %attr(755,root,root) %ghost %{_libdir}/libsvn_fs_x-1.so.0 | |
b445847c JB |
802 | %attr(755,root,root) %{_libdir}/libsvn_ra-1.so.*.*.* |
803 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra-1.so.0 | |
804 | %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so.*.*.* | |
805 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_local-1.so.0 | |
1e0ba091 AM |
806 | %attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so.*.*.* |
807 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_serf-1.so.0 | |
b445847c JB |
808 | %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so.*.*.* |
809 | %attr(755,root,root) %ghost %{_libdir}/libsvn_ra_svn-1.so.0 | |
810 | %attr(755,root,root) %{_libdir}/libsvn_repos-1.so.*.*.* | |
811 | %attr(755,root,root) %ghost %{_libdir}/libsvn_repos-1.so.0 | |
812 | %attr(755,root,root) %{_libdir}/libsvn_subr-1.so.*.*.* | |
813 | %attr(755,root,root) %ghost %{_libdir}/libsvn_subr-1.so.0 | |
814 | %attr(755,root,root) %{_libdir}/libsvn_wc-1.so.*.*.* | |
815 | %attr(755,root,root) %ghost %{_libdir}/libsvn_wc-1.so.0 | |
93b78127 AM |
816 | |
817 | %files devel | |
818 | %defattr(644,root,root,755) | |
b445847c JB |
819 | %attr(755,root,root) %{_libdir}/libsvn_client-1.so |
820 | %attr(755,root,root) %{_libdir}/libsvn_delta-1.so | |
821 | %attr(755,root,root) %{_libdir}/libsvn_diff-1.so | |
822 | %attr(755,root,root) %{_libdir}/libsvn_fs-1.so | |
5f328a6e | 823 | %if %{without net_client_only} |
b445847c | 824 | %attr(755,root,root) %{_libdir}/libsvn_fs_base-1.so |
5f328a6e | 825 | %endif |
b445847c JB |
826 | %attr(755,root,root) %{_libdir}/libsvn_fs_fs-1.so |
827 | %attr(755,root,root) %{_libdir}/libsvn_fs_util-1.so | |
f9c8674f | 828 | %attr(755,root,root) %{_libdir}/libsvn_fs_x-1.so |
b445847c JB |
829 | %attr(755,root,root) %{_libdir}/libsvn_ra-1.so |
830 | %attr(755,root,root) %{_libdir}/libsvn_ra_local-1.so | |
1e0ba091 | 831 | %attr(755,root,root) %{_libdir}/libsvn_ra_serf-1.so |
b445847c JB |
832 | %attr(755,root,root) %{_libdir}/libsvn_ra_svn-1.so |
833 | %attr(755,root,root) %{_libdir}/libsvn_repos-1.so | |
834 | %attr(755,root,root) %{_libdir}/libsvn_subr-1.so | |
835 | %attr(755,root,root) %{_libdir}/libsvn_wc-1.so | |
836 | %{_libdir}/libsvn_client-1.la | |
837 | %{_libdir}/libsvn_delta-1.la | |
838 | %{_libdir}/libsvn_diff-1.la | |
839 | %{_libdir}/libsvn_fs-1.la | |
5f328a6e | 840 | %if %{without net_client_only} |
b445847c | 841 | %{_libdir}/libsvn_fs_base-1.la |
5f328a6e | 842 | %endif |
b445847c JB |
843 | %{_libdir}/libsvn_fs_fs-1.la |
844 | %{_libdir}/libsvn_fs_util-1.la | |
f9c8674f | 845 | %{_libdir}/libsvn_fs_x-1.la |
b445847c JB |
846 | %{_libdir}/libsvn_ra-1.la |
847 | %{_libdir}/libsvn_ra_local-1.la | |
1e0ba091 | 848 | %{_libdir}/libsvn_ra_serf-1.la |
b445847c JB |
849 | %{_libdir}/libsvn_ra_svn-1.la |
850 | %{_libdir}/libsvn_repos-1.la | |
851 | %{_libdir}/libsvn_subr-1.la | |
852 | %{_libdir}/libsvn_wc-1.la | |
ff76629a | 853 | %if %{with gnome} |
9eb45f32 JB |
854 | # only for feature check, linking will fail (no libsvn_auth_gnome_keyring.so) |
855 | %{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc | |
ff76629a JP |
856 | %endif |
857 | %if %{with kwallet} | |
9eb45f32 JB |
858 | # only for feature check, linking will fail (no libsvn_auth_kwallet.so) |
859 | %{_pkgconfigdir}/libsvn_auth_kwallet.pc | |
ff76629a | 860 | %endif |
9eb45f32 JB |
861 | %{_pkgconfigdir}/libsvn_client.pc |
862 | %{_pkgconfigdir}/libsvn_delta.pc | |
863 | %{_pkgconfigdir}/libsvn_diff.pc | |
864 | %{_pkgconfigdir}/libsvn_fs.pc | |
f9c8674f | 865 | %if %{without net_client_only} |
9eb45f32 JB |
866 | %{_pkgconfigdir}/libsvn_fs_base.pc |
867 | %endif | |
868 | %{_pkgconfigdir}/libsvn_fs_fs.pc | |
869 | %{_pkgconfigdir}/libsvn_fs_util.pc | |
870 | %{_pkgconfigdir}/libsvn_fs_x.pc | |
871 | %{_pkgconfigdir}/libsvn_ra.pc | |
872 | %{_pkgconfigdir}/libsvn_ra_local.pc | |
873 | %{_pkgconfigdir}/libsvn_ra_serf.pc | |
874 | %{_pkgconfigdir}/libsvn_ra_svn.pc | |
875 | %{_pkgconfigdir}/libsvn_repos.pc | |
876 | %{_pkgconfigdir}/libsvn_subr.pc | |
877 | %{_pkgconfigdir}/libsvn_wc.pc | |
b445847c | 878 | %{_includedir}/%{name}-1 |
1326bb99 | 879 | %{_examplesdir}/%{name}-%{version} |
93b78127 AM |
880 | |
881 | %files static | |
882 | %defattr(644,root,root,755) | |
b445847c JB |
883 | %{_libdir}/libsvn_client-1.a |
884 | %{_libdir}/libsvn_delta-1.a | |
885 | %{_libdir}/libsvn_diff-1.a | |
886 | %{_libdir}/libsvn_fs-1.a | |
5f328a6e | 887 | %if %{without net_client_only} |
b445847c | 888 | %{_libdir}/libsvn_fs_base-1.a |
5f328a6e | 889 | %endif |
b445847c JB |
890 | %{_libdir}/libsvn_fs_fs-1.a |
891 | %{_libdir}/libsvn_fs_util-1.a | |
f9c8674f | 892 | %{_libdir}/libsvn_fs_x-1.a |
b445847c JB |
893 | %{_libdir}/libsvn_ra-1.a |
894 | %{_libdir}/libsvn_ra_local-1.a | |
1e0ba091 | 895 | %{_libdir}/libsvn_ra_serf-1.a |
b445847c JB |
896 | %{_libdir}/libsvn_ra_svn-1.a |
897 | %{_libdir}/libsvn_repos-1.a | |
898 | %{_libdir}/libsvn_subr-1.a | |
899 | %{_libdir}/libsvn_wc-1.a | |
93b78127 | 900 | |
bfb248d0 | 901 | %if %{with gnome} |
1429fa1c AM |
902 | %files -n gnome-keyring-subversion |
903 | %defattr(644,root,root,755) | |
904 | %attr(755,root,root) %{_libdir}/libsvn_auth_gnome_keyring-1.so.*.*.* | |
905 | %attr(755,root,root) %ghost %{_libdir}/libsvn_auth_gnome_keyring-1.so.0 | |
8d40da51 JB |
906 | # does anything use it? requires libsvn_auth_gnome_keyring.so |
907 | #%{_pkgconfigdir}/libsvn_auth_gnome_keyring.pc | |
bfb248d0 | 908 | %endif |
1429fa1c | 909 | |
65f2befa | 910 | %if %{with kwallet} |
ab99ba37 | 911 | %files -n kde5-kwallet-subversion |
1429fa1c AM |
912 | %defattr(644,root,root,755) |
913 | %attr(755,root,root) %{_libdir}/libsvn_auth_kwallet-1.so.*.*.* | |
914 | %attr(755,root,root) %ghost %{_libdir}/libsvn_auth_kwallet-1.so.0 | |
8d40da51 JB |
915 | # does anything use it? requires libsvn_auth_kwallet.so |
916 | #%{_pkgconfigdir}/libsvn_auth_kwallet.pc | |
65f2befa | 917 | %endif |
1429fa1c | 918 | |
12c96b58 | 919 | %if %{without net_client_only} |
b56474ff AM |
920 | %files svnserve |
921 | %defattr(644,root,root,755) | |
922 | %attr(755,root,root) %{_bindir}/svnserve | |
b445847c JB |
923 | %{_mandir}/man5/svnserve.conf.5* |
924 | %{_mandir}/man8/svnserve.8* | |
a1bac09d MŁ |
925 | %dir %attr(750,svn,svn) /home/services/subversion |
926 | %dir %attr(750,svn,svn) /home/services/subversion/repos | |
0905b458 | 927 | %if %{with apache} |
b56474ff | 928 | %attr(754,root,root) /etc/rc.d/init.d/svnserve |
86ea8fde | 929 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/svnserve |
0905b458 | 930 | %endif |
b56474ff | 931 | |
4bbdbbf8 AM |
932 | %files tools |
933 | %defattr(644,root,root,755) | |
92bfa7e1 | 934 | # tools/backup/hot-backup.py |
1326bb99 | 935 | %attr(755,root,root) %{_bindir}/svn-hot-backup |
fe5bb6bb | 936 | |
92bfa7e1 ER |
937 | # tools/diff |
938 | %attr(755,root,root) %{_bindir}/svndiff | |
939 | %attr(755,root,root) %{_bindir}/svndiff3 | |
940 | %attr(755,root,root) %{_bindir}/svndiff4 | |
941 | ||
942 | # tools/server-side | |
f9c8674f | 943 | %attr(755,root,root) %{_bindir}/svnfsfs |
92bfa7e1 | 944 | %attr(755,root,root) %{_bindir}/svn-populate-node-origins-index |
3d85fab0 | 945 | %attr(755,root,root) %{_bindir}/svnauthz |
92bfa7e1 ER |
946 | %attr(755,root,root) %{_bindir}/svnauthz-validate |
947 | ||
3d85fab0 | 948 | # tools/client-side |
f9c8674f | 949 | %attr(755,root,root) %{_bindir}/svnbench |
1e0ba091 | 950 | |
92bfa7e1 ER |
951 | # tools/dev/svnraisetreeconflict |
952 | %attr(755,root,root) %{_bindir}/svnraisetreeconflict | |
953 | ||
1e0ba091 AM |
954 | # tools/dev/ |
955 | %attr(755,root,root) %{_bindir}/fsfs-access-map | |
f9c8674f | 956 | %attr(755,root,root) %{_bindir}/x509-parser |
1e0ba091 | 957 | |
fe5bb6bb | 958 | %files -n bash-completion-subversion |
101e74de | 959 | %defattr(644,root,root,755) |
1326bb99 | 960 | /etc/bash_completion.d/%{name} |
536b3fd3 | 961 | |
f37da0a1 ER |
962 | %endif # net_client_only |
963 | ||
c3746b64 | 964 | %if %{with java} |
1cc7453a | 965 | %files -n java-subversion |
966 | %defattr(644,root,root,755) | |
b445847c JB |
967 | %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so.*.*.* |
968 | %attr(755,root,root) %ghost %{_libdir}/libsvnjavahl-1.so.0 | |
969 | %attr(755,root,root) %{_libdir}/libsvnjavahl-1.so | |
1cc7453a | 970 | %{_javadir}/svn-javahl.jar |
971 | %endif | |
972 | ||
0905b458 | 973 | %if %{with python} |
fa3ff1b2 | 974 | %files -n python-subversion |
f4e6a380 | 975 | %defattr(644,root,root,755) |
693a6ddf | 976 | %doc tools/backup/*.py |
b445847c JB |
977 | %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so.*.*.* |
978 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_py-1.so.0 | |
979 | %attr(755,root,root) %{_libdir}/libsvn_swig_py-1.so | |
65318afa | 980 | %dir %{py_sitedir}/libsvn |
3c200272 | 981 | %attr(755,root,root) %{py_sitedir}/libsvn/_*.so |
65318afa | 982 | %{py_sitedir}/libsvn/*.py[co] |
b445847c JB |
983 | %dir %{py_sitedir}/svn |
984 | %{py_sitedir}/svn/*.py[co] | |
1326bb99 | 985 | %{_examplesdir}/python-%{name}-%{version} |
a26edfbd | 986 | %endif |
137fcafd | 987 | |
5b21aa20 | 988 | %if %{with csvn} |
137fcafd AM |
989 | %files -n python-csvn |
990 | %defattr(644,root,root,755) | |
991 | %doc subversion/bindings/ctypes-python/{README,TODO} | |
992 | %doc subversion/bindings/ctypes-python/examples/*.py | |
993 | %dir %{py_sitescriptdir}/csvn | |
994 | %{py_sitescriptdir}/csvn/*.py[co] | |
995 | %dir %{py_sitescriptdir}/csvn/core | |
996 | %{py_sitescriptdir}/csvn/core/*.py[co] | |
997 | %dir %{py_sitescriptdir}/csvn/ext | |
998 | %{py_sitescriptdir}/csvn/ext/*.py[co] | |
3c200272 | 999 | %{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info |
0905b458 | 1000 | %endif |
f4e6a380 | 1001 | |
0905b458 | 1002 | %if %{with perl} |
b56474ff AM |
1003 | %files -n perl-subversion |
1004 | %defattr(644,root,root,755) | |
b445847c JB |
1005 | %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so.*.*.* |
1006 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_perl-1.so.0 | |
1007 | %attr(755,root,root) %{_libdir}/libsvn_swig_perl-1.so | |
b56474ff AM |
1008 | %{perl_vendorarch}/SVN |
1009 | %dir %{perl_vendorarch}/auto/SVN | |
1010 | %dir %{perl_vendorarch}/auto/SVN/* | |
1011 | %attr(755,root,root) %{perl_vendorarch}/auto/SVN/*/*.so | |
a70bbcf5 | 1012 | %{_mandir}/man3/SVN::*.3pm* |
0905b458 | 1013 | %endif |
b56474ff | 1014 | |
d46e45ba AM |
1015 | %if %{with ruby} |
1016 | %files -n ruby-subversion | |
1017 | %defattr(644,root,root,755) | |
b445847c JB |
1018 | %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so.*.*.* |
1019 | %attr(755,root,root) %ghost %{_libdir}/libsvn_swig_ruby-1.so.0 | |
1020 | %attr(755,root,root) %{_libdir}/libsvn_swig_ruby-1.so | |
dd30c674 ER |
1021 | %dir %{ruby_vendorarchdir}/svn |
1022 | %{ruby_vendorarchdir}/svn/*.rb | |
1023 | %dir %{ruby_vendorarchdir}/svn/ext | |
1024 | %attr(755,root,root) %{ruby_vendorarchdir}/svn/ext/*.so | |
916011ef | 1025 | %{ruby_ridir}/Svn |
d46e45ba AM |
1026 | %endif |
1027 | ||
0905b458 | 1028 | %if %{with apache} |
93b78127 AM |
1029 | %files -n apache-mod_dav_svn |
1030 | %defattr(644,root,root,755) | |
1af5e34d ER |
1031 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_dav_svn.conf |
1032 | %attr(755,root,root) %{apachelibdir}/mod_dav_svn.so | |
65318afa AF |
1033 | |
1034 | %files -n apache-mod_authz_svn | |
1035 | %defattr(644,root,root,755) | |
1036 | %doc subversion/mod_authz_svn/INSTALL | |
1af5e34d ER |
1037 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_authz_svn.conf |
1038 | %attr(755,root,root) %{apachelibdir}/mod_authz_svn.so | |
53bea8b1 AM |
1039 | |
1040 | %files -n apache-mod_dontdothat_svn | |
1041 | %defattr(644,root,root,755) | |
1042 | %doc tools/server-side/mod_dontdothat/README | |
1043 | %attr(755,root,root) %{apachelibdir}/mod_dontdothat.so | |
536b3fd3 | 1044 | %endif |