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