]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - subpackage crypto modules? (-plugin-crypto_{botan,gcrypt,openssl} or so) | |
3 | # - force maven to work without network, enable java_mvn | |
4 | # - haskell plugin (BR: ghc >= 8.0.0, cabal) | |
5 | # - rest-backend (BR: cppcms boost >= 1.45 libjwt openssl) | |
6 | # - rest-frontend, web (BR: npm) | |
7 | # - use system nickel (1.1.0, in src/plugins/ni), inih (r29, src/plugins/ini) | |
8 | # | |
9 | # Conditonal build: | |
10 | %bcond_with full # "full" variant (libelektra-full with all plugins linked in) | |
11 | %bcond_without gen # gen tool packaging | |
12 | %bcond_without glib # GLib/GObject/GSetttings (+ GI) bindings | |
13 | %bcond_without gsettings # GSetttings module | |
14 | %bcond_without java # Java support: JNA binding and JNI plugin (needs Java 8) | |
15 | %bcond_with java_mvn # Java JNA binding (needs Java 8 and maven) | |
16 | %bcond_without lua # Lua (5.2) support: bindings and plugin | |
17 | %bcond_without python2 # Python 2 support: bindings and plugin | |
18 | %bcond_without python3 # Python 3 support: bindings and plugin | |
19 | %bcond_without qt # Qt GUI | |
20 | %bcond_without ruby # Ruby binding and plugin | |
21 | ||
22 | %if %{without glib} | |
23 | %undefine with_gsettings | |
24 | %endif | |
25 | %if %{without java} | |
26 | %undefine with_java_mvn | |
27 | %endif | |
28 | Summary: A key/value pair database to store software configurations | |
29 | Summary(pl.UTF-8): Baza kluczy/wartości do przechowywania konfiguracji oprogramowania | |
30 | Name: elektra | |
31 | Version: 0.8.26 | |
32 | Release: 1 | |
33 | License: BSD | |
34 | Group: Applications/System | |
35 | Source0: https://www.libelektra.org/ftp/elektra/releases/%{name}-%{version}.tar.gz | |
36 | # Source0-md5: 4ef202b5d421cc497ef05221e5309ebc | |
37 | Patch0: %{name}-zsh.patch | |
38 | Patch1: %{name}-no-markdown.patch | |
39 | Patch2: disable-broken-tests.patch | |
40 | Patch3: gcc11.patch | |
41 | Patch4: %{name}-gpgme.patch | |
42 | Patch5: %{name}-jni.patch | |
43 | URL: https://www.libelektra.org/ | |
44 | %if %{with qt} | |
45 | BuildRequires: Qt5Core-devel >= 5.3 | |
46 | BuildRequires: Qt5Gui-devel >= 5.3 | |
47 | BuildRequires: Qt5Qml-devel >= 5.3 | |
48 | BuildRequires: Qt5Quick-devel >= 5.3 | |
49 | BuildRequires: Qt5Svg-devel >= 5.3 | |
50 | BuildRequires: Qt5Test-devel >= 5.3 | |
51 | BuildRequires: Qt5Widgets-devel >= 5.3 | |
52 | %endif | |
53 | BuildRequires: augeas-devel >= 1.0 | |
54 | BuildRequires: boost-devel | |
55 | BuildRequires: botan2-devel | |
56 | BuildRequires: cmake >= 3.0 | |
57 | BuildRequires: curl-devel >= 7.28.0 | |
58 | BuildRequires: dbus-devel | |
59 | BuildRequires: doxygen | |
60 | BuildRequires: gcc >= 6:4.8 | |
61 | BuildRequires: gettext-tools | |
62 | %{?with_glib:BuildRequires: glib2-devel >= 1:2.36} | |
63 | %{?with_gsettings:BuildRequires: glib2-devel >= 1:2.42} | |
64 | %{?with_glib:BuildRequires: gobject-introspection-devel >= 1.38} | |
65 | BuildRequires: gpgme-devel >= 1.10 | |
66 | # for binding | |
67 | %{?with_java_mvn:BuildRequires: java-jna >= 4.5.0} | |
68 | %{?with_java_mvn:BuildRequires: java-junit >= 4.12} | |
69 | %{?with_java:BuildRequires: jdk >= 1.8} | |
70 | # jawt for plugin | |
71 | %{?with_java:BuildRequires: jre-X11 >= 1.8} | |
72 | BuildRequires: libgcrypt-devel | |
73 | BuildRequires: libgit2-devel >= 0.24.1 | |
74 | %{?with_qt:BuildRequires: libmarkdown-devel} | |
75 | BuildRequires: libstdc++-devel | |
76 | BuildRequires: libuv-devel | |
77 | BuildRequires: libxml2-devel >= 2.0 | |
78 | BuildRequires: libxslt-progs | |
79 | %{?with_lua:BuildRequires: lua52-devel >= 5.2} | |
80 | %{?with_java_mvn:BuildRequires: maven} | |
81 | %{?with_java_mvn:BuildRequires: maven-plugin-compiler >= 3.6.0} | |
82 | %{?with_java_mvn:BuildRequires: maven-plugin-surefire >= 2.19.1} | |
83 | BuildRequires: openssl-devel | |
84 | BuildRequires: pkgconfig | |
85 | %{?with_python2:BuildRequires: python-devel >= 1:2.7} | |
86 | %{?with_python3:BuildRequires: python3-devel >= 1:3.2} | |
87 | BuildRequires: ronn | |
88 | BuildRequires: rpm-build >= 4.6 | |
89 | BuildRequires: rpm-pythonprov | |
90 | BuildRequires: rpmbuild(macros) >= 1.612 | |
91 | %{?with_ruby:BuildRequires: ruby-devel} | |
92 | BuildRequires: sed >= 4.0 | |
93 | BuildRequires: swig >= 3 | |
94 | %if %{with python2} || %{with python3} | |
95 | BuildRequires: swig-python >= 3 | |
96 | %endif | |
97 | %{?with_ruby:BuildRequires: swig-ruby >= 3.0.8} | |
98 | BuildRequires: systemd-devel | |
99 | BuildRequires: tcl-devel | |
100 | BuildRequires: xerces-c-devel >= 3.0.0 | |
101 | BuildRequires: yajl-devel | |
102 | BuildRequires: yaml-cpp-devel >= 0.5 | |
103 | BuildRequires: zeromq-devel >= 3.2 | |
104 | BuildRequires: zlib-devel | |
105 | BuildConflicts: java-gnu-classpath | |
106 | Requires: %{name}-libs = %{version}-%{release} | |
107 | Requires: mktemp | |
108 | # plugins dependencies (move to individual plugin subpackage if created) | |
109 | Requires: augeas-libs >= 1.0 | |
110 | Requires: curl-libs >= 7.28.0 | |
111 | Requires: libgit2 >= 0.24.1 | |
112 | Requires: yaml-cpp >= 0.5 | |
113 | Obsoletes: registry < 0.4 | |
114 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
115 | ||
116 | %description | |
117 | The Elektra Project provides a framework to store generic | |
118 | configuration data in an hierarchical key-value pair database, instead | |
119 | of a human-readable only text file. | |
120 | ||
121 | This way any software can read/save his configuration using a | |
122 | consistent API. Also, applications can be aware of other applications | |
123 | configurations, leveraging easy application integration. | |
124 | ||
125 | %description -l pl.UTF-8 | |
126 | Projekt Elektra dostarcza szkielet do przechowywania typowych danych | |
127 | konfiguracyjnych w postaci klucz-wartość w hierarchicznej bazie | |
128 | danych, zamiast w pliku tekstowym czytelnym tylko dla człowieka. | |
129 | ||
130 | W ten sposób oprogramowanie może odczytywać/zapisywać konfigurację za | |
131 | pomocą spójnego API. Dodatkowo aplikacje mogą być zorientowane w | |
132 | konfiguracji innych aplikacji, ułatwiając ich integrację. | |
133 | ||
134 | %package gen | |
135 | Summary: Elektra kbd-gen code generation utility | |
136 | Summary(pl.UTF-8): Narzędzie Elektra kbd-gen do generowania kodu | |
137 | Group: Development/Tools | |
138 | Requires: %{name} = %{version}-%{release} | |
139 | Requires: python-modules >= 1:2.7 | |
140 | ||
141 | %description gen | |
142 | Elektra kbd-gen code generation utility. | |
143 | ||
144 | %description gen -l pl.UTF-8 | |
145 | Narzędzie Elektra kbd-gen do generowania kodu. | |
146 | ||
147 | %package gui | |
148 | Summary: Qt based GUI for Elektra | |
149 | Summary(pl.UTF-8): Oparty na Qt graficzny interfejs do Elektry | |
150 | Group: X11/Applications | |
151 | Requires: %{name} = %{version}-%{release} | |
152 | ||
153 | %description gui | |
154 | Qt based GUI for Elektra. | |
155 | ||
156 | %description gui -l pl.UTF-8 | |
157 | Oparty na Qt graficzny interfejs do Elektry. | |
158 | ||
159 | %package plugin-jni | |
160 | Summary: Java JNI plugin for Elektra | |
161 | Summary(pl.UTF-8): Wtyczka Java JNI dla Elektry | |
162 | Group: Libraries | |
163 | Requires: %{name} = %{version}-%{release} | |
164 | # jawt | |
165 | Requires: jre-X11 >= 1.8 | |
166 | ||
167 | %description plugin-jni | |
168 | Java JNI plugin for Elektra. It allows to use plugins written in Java. | |
169 | ||
170 | %description plugin-jni -l pl.UTF-8 | |
171 | Wtyczka Java JNI dla Elektry. Pozwala na używanie wtyczek napisanych w | |
172 | Javie. | |
173 | ||
174 | %package plugin-lua | |
175 | Summary: Lua plugin for Elektra | |
176 | Summary(pl.UTF-8): Wtyczka Lua dla Elektry | |
177 | Group: Libraries | |
178 | Requires: %{name} = %{version}-%{release} | |
179 | Requires: lua52-libs >= 5.2 | |
180 | ||
181 | %description plugin-lua | |
182 | Lua plugin for Elektra. It allows to use plugins written in Lua. | |
183 | ||
184 | %description plugin-lua -l pl.UTF-8 | |
185 | Wtyczka Lua dla Elektry. Pozwala na używanie wtyczek napisanych w Lua. | |
186 | ||
187 | %package plugin-python2 | |
188 | Summary: Python 2 plugin for Elektra | |
189 | Summary(pl.UTF-8): Wtyczka Python 2 dla Elektry | |
190 | Group: Libraries | |
191 | Requires: %{name} = %{version}-%{release} | |
192 | Requires: python-libs >= 1:2.7 | |
193 | ||
194 | %description plugin-python2 | |
195 | Python 2 plugin for Elektra. It allows to use plugins written in | |
196 | Python 2. | |
197 | ||
198 | %description plugin-python2 -l pl.UTF-8 | |
199 | Wtyczka 2 Python dla Elektry. Pozwala na używanie wtyczek napisanych w | |
200 | Pythonie 2. | |
201 | ||
202 | %package plugin-python3 | |
203 | Summary: Python 3 plugin for Elektra | |
204 | Summary(pl.UTF-8): Wtyczka Python 3 dla Elektry | |
205 | Group: Libraries | |
206 | Requires: %{name} = %{version}-%{release} | |
207 | Requires: python3-libs >= 1:3.2 | |
208 | ||
209 | %description plugin-python3 | |
210 | Python 3 plugin for Elektra. It allows to use plugins written in | |
211 | Python 3. | |
212 | ||
213 | %description plugin-python3 -l pl.UTF-8 | |
214 | Wtyczka Python 3 dla Elektry. Pozwala na używanie wtyczek napisanych w | |
215 | Pythonie 3. | |
216 | ||
217 | %package plugin-ruby | |
218 | Summary: Ruby plugin for Elektra | |
219 | Summary(pl.UTF-8): Wtyczka Ruby dla Elektry | |
220 | Group: Libraries | |
221 | Requires: %{name} = %{version}-%{release} | |
222 | Requires: ruby | |
223 | ||
224 | %description plugin-ruby | |
225 | Ruby plugin for Elektra. It allows to use plugins written in Ruby. | |
226 | ||
227 | %description plugin-ruby -l pl.UTF-8 | |
228 | Wtyczka Ruby dla Elektry. Pozwala na używanie wtyczek napisanych w | |
229 | języku Ruby. | |
230 | ||
231 | %package -n bash-completion-elektra | |
232 | Summary: Bash completion for Elektra commands | |
233 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów dla poleceń z pakietu Elektra | |
234 | Group: Applications/Shells | |
235 | Requires: %{name} = %{version}-%{release} | |
236 | Requires: bash-completion >= 2 | |
237 | BuildArch: noarch | |
238 | ||
239 | %description -n bash-completion-elektra | |
240 | Bash completion for Elektra kdb command. | |
241 | ||
242 | %description -n bash-completion-elektra -l pl.UTF-8 | |
243 | Bashowe uzupełnianie parametrów dla polecenia kdb z pakietu Elektra. | |
244 | ||
245 | %package -n fish-completion-elektra | |
246 | Summary: Fish completion for Elektra commands | |
247 | Summary(pl.UTF-8): Uzupełnianie parametrów w fish dla poleceń z pakietu Elektra | |
248 | Group: Applications/Shells | |
249 | Requires: %{name} = %{version}-%{release} | |
250 | Requires: fish | |
251 | BuildArch: noarch | |
252 | ||
253 | %description -n fish-completion-elektra | |
254 | Fish completion for Elektra kdb command. | |
255 | ||
256 | %description -n fish-completion-elektra -l pl.UTF-8 | |
257 | Uzupełnianie parametrów w fish dla polecenia kdb z pakietu Elektra. | |
258 | ||
259 | %package -n zsh-completion-elektra | |
260 | Summary: ZSH completion for Elektra commands | |
261 | Summary(pl.UTF-8): Uzupełnianie parametrów dla poleceń z pakietu Elektra w powłoce ZSH | |
262 | Group: Applications/Shells | |
263 | Requires: %{name} = %{version}-%{release} | |
264 | Requires: zsh | |
265 | BuildArch: noarch | |
266 | ||
267 | %description -n zsh-completion-elektra | |
268 | ZSH completion for Elektra kdb command. | |
269 | ||
270 | %description -n zsh-completion-elektra -l pl.UTF-8 | |
271 | Uzupełnianie parametrów dla polecenia kdb z pakietu Elektra w powłoce | |
272 | ZSH. | |
273 | ||
274 | %package libs | |
275 | Summary: Elektra Project libraries | |
276 | Summary(pl.UTF-8): Biblioteki projektu Elektra | |
277 | Group: Libraries | |
278 | Obsoletes: elektra-cpp < 0.8 | |
279 | Obsoletes: registry-libs < 0.4 | |
280 | Conflicts: elektra < 0.7 | |
281 | ||
282 | %description libs | |
283 | The Elektra Project provides a framework to store generic | |
284 | configuration data in an hierarchical key-value pair database, instead | |
285 | of a human-readable only text file. | |
286 | ||
287 | This way any software can read/save his configuration using a | |
288 | consistent API. Also, applications can be aware of other applications | |
289 | configurations, leveraging easy application integration. | |
290 | ||
291 | This package contains Elektra shared libraries. | |
292 | ||
293 | %description libs -l pl.UTF-8 | |
294 | Projekt Elektra dostarcza szkielet do przechowywania typowych danych | |
295 | konfiguracyjnych w postaci klucz-wartość w hierarchicznej bazie | |
296 | danych, zamiast w pliku tekstowym czytelnym tylko dla człowieka. | |
297 | ||
298 | W ten sposób oprogramowanie może odczytywać/zapisywać konfigurację za | |
299 | pomocą spójnego API. Dodatkowo aplikacje mogą być zorientowane w | |
300 | konfiguracji innych aplikacji, ułatwiając ich integrację. | |
301 | ||
302 | Ten pakiet zawiera biblioteki współdzielone Elektry. | |
303 | ||
304 | %package devel | |
305 | Summary: Include files and API documentation for Elektra Project | |
306 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja API projektu Elektra | |
307 | Group: Development/Libraries | |
308 | Requires: %{name}-libs = %{version}-%{release} | |
309 | Obsoletes: registry-devel < 0.4 | |
310 | Obsoletes: registry-examples < 0.4 | |
311 | ||
312 | %description devel | |
313 | This package contains the include files and API manual pages to use | |
314 | the Elektra API in C. | |
315 | ||
316 | %description devel -l pl.UTF-8 | |
317 | Ten pakiet zawiera pliki nagłówkowe oraz strony podręcznika | |
318 | systemowego opisującego sposób użycia API Elektry w C. | |
319 | ||
320 | %package static | |
321 | Summary: Static libraries for Elektra Project | |
322 | Summary(pl.UTF-8): Statyczne biblioteki projektu Elektra | |
323 | Group: Development/Libraries | |
324 | Requires: %{name}-devel = %{version}-%{release} | |
325 | ||
326 | %description static | |
327 | This package contains static libraries for Elektra Project. | |
328 | ||
329 | %description static -l pl.UTF-8 | |
330 | Ten pakiet zawiera statyczne biblioteki projektu Elektra. | |
331 | ||
332 | %package cpp-devel | |
333 | Summary: Header files of C++ interface for Elektra library | |
334 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu C++ do biblioteki Elektra | |
335 | Group: Development/Libraries | |
336 | Requires: %{name}-devel = %{version}-%{release} | |
337 | Requires: libstdc++-devel | |
338 | Obsoletes: elektra-cpp-static < 0.8 | |
339 | ||
340 | %description cpp-devel | |
341 | Header files of C++ interface for Elektra library. | |
342 | ||
343 | %description cpp-devel -l pl.UTF-8 | |
344 | Pliki nagłówkowe interfejsu C++ do biblioteki Elektra. | |
345 | ||
346 | %package glib | |
347 | Summary: GLib/GObject binding for Elektra | |
348 | Summary(pl.UTF-8): Wiązanie GLib/GObject do Elektry | |
349 | Group: Libraries | |
350 | Requires: %{name}-libs = %{version}-%{release} | |
351 | %if %{with gsettings} | |
352 | Requires: glib2 >= 1:2.42 | |
353 | %else | |
354 | Requires: glib2 >= 1:2.36 | |
355 | %endif | |
356 | ||
357 | %description glib | |
358 | GLib/GObject binding for Elektra. | |
359 | ||
360 | %description glib -l pl.UTF-8 | |
361 | Wiązanie GLib/GObject do Elektry. | |
362 | ||
363 | %package glib-devel | |
364 | Summary: GLib/GObject binding for Elektra - development files | |
365 | Summary(pl.UTF-8): Wiązanie GLib/GObject do Elektry - pliki programistyczne | |
366 | Group: Libraries | |
367 | Requires: %{name}-devel = %{version}-%{release} | |
368 | %if %{with gsettings} | |
369 | Requires: glib2-devel >= 1:2.42 | |
370 | %else | |
371 | Requires: glib2-devel >= 1:2.36 | |
372 | %endif | |
373 | ||
374 | %description glib-devel | |
375 | GLib/GObject binding for Elektra - development files. | |
376 | ||
377 | %description glib-devel -l pl.UTF-8 | |
378 | Wiązanie GLib/GObject do Elektry - pliki programistyczne. | |
379 | ||
380 | %package io-glib | |
381 | Summary: Elektra I/O binding using GLib | |
382 | Summary(pl.UTF-8): Wiązanie we/wy Elektry wykorzystujące GLib | |
383 | Group: Libraries | |
384 | Requires: %{name}-libs = %{version}-%{release} | |
385 | ||
386 | %description io-glib | |
387 | Elektra I/O binding using GLib. | |
388 | ||
389 | %description io-glib -l pl.UTF-8 | |
390 | Wiązanie we/wy Elektry wykorzystujące GLib. | |
391 | ||
392 | %package io-glib-devel | |
393 | Summary: Development files for Elektra I/O GLib binding | |
394 | Summary(pl.UTF-8): Pliki programistyczne wiązania we/wy Elektry GLib | |
395 | Group: Development/Libraries | |
396 | Requires: %{name}-devel = %{version}-%{release} | |
397 | Requires: %{name}-io-glib = %{version}-%{release} | |
398 | Requires: glib2-devel >= 2.0 | |
399 | ||
400 | %description io-glib-devel | |
401 | Development files for Elektra I/O GLib binding. | |
402 | ||
403 | %description io-glib-devel -l pl.UTF-8 | |
404 | Pliki programistyczne wiązania we/wy Elektry GLib. | |
405 | ||
406 | %package io-uv | |
407 | Summary: Elektra I/O binding using uv | |
408 | Summary(pl.UTF-8): Wiązanie we/wy Elektry wykorzystujące uv | |
409 | Group: Libraries | |
410 | Requires: %{name}-libs = %{version}-%{release} | |
411 | ||
412 | %description io-uv | |
413 | Elektra I/O binding using uv. | |
414 | ||
415 | %description io-uv -l pl.UTF-8 | |
416 | Wiązanie we/wy Elektry wykorzystujące uv. | |
417 | ||
418 | %package io-uv-devel | |
419 | Summary: Development files for Elektra I/O uv binding | |
420 | Summary(pl.UTF-8): Pliki programistyczne wiązania we/wy Elektry uv | |
421 | Group: Development/Libraries | |
422 | Requires: %{name}-devel = %{version}-%{release} | |
423 | Requires: %{name}-io-uv = %{version}-%{release} | |
424 | Requires: libuv-devel | |
425 | ||
426 | %description io-uv-devel | |
427 | Development files for Elektra I/O uv binding. | |
428 | ||
429 | %description io-uv-devel -l pl.UTF-8 | |
430 | Pliki programistyczne wiązania we/wy Elektry uv. | |
431 | ||
432 | %package -n java-elektra | |
433 | Summary: Java binding for Elektra | |
434 | Summary(pl.UTF-8): Wiązanie języka Java dla Elektry | |
435 | Group: Libraries | |
436 | Requires: %{name}-libs = %{version}-%{release} | |
437 | Requires: java-jna >= 4.5.0 | |
438 | Requires: jre >= 1.8 | |
439 | ||
440 | %description -n java-elektra | |
441 | Java binding for Elektra. | |
442 | ||
443 | %description -n java-elektra -l pl.UTF-8 | |
444 | Wiązanie języka Java dla Elektry. | |
445 | ||
446 | %package -n lua-elektra | |
447 | Summary: Lua binding for Elektra | |
448 | Summary(pl.UTF-8): Wiązanie języka Lua dla Elektry | |
449 | Group: Libraries | |
450 | Requires: %{name}-libs = %{version}-%{release} | |
451 | Requires: lua52-libs >= 5.2 | |
452 | ||
453 | %description -n lua-elektra | |
454 | Lua binding for Elektra. | |
455 | ||
456 | %description -n lua-elektra -l pl.UTF-8 | |
457 | Wiązanie języka Lua dla Elektry. | |
458 | ||
459 | %package -n lua-elektra-glib | |
460 | Summary: Lua/GI binding for Elektra | |
461 | Summary(pl.UTF-8): Wiązanie Lua/GI dla Elektry | |
462 | Group: Libraries | |
463 | Requires: %{name}-glib = %{version}-%{release} | |
464 | Requires: lua52-libs >= 5.2 | |
465 | #R: lua52-lgi ? | |
466 | ||
467 | %description -n lua-elektra-glib | |
468 | Lua/GI binding for Elektra. Note: this bindings is deprecated, it's | |
469 | better to use SWIG (lua-elektra) binding. | |
470 | ||
471 | %description -n lua-elektra-glib -l pl.UTF-8 | |
472 | Wiązanie Lua/GI dla Elektry. Uwaga: to wiązanie jest przestarzałe, | |
473 | lepiej używać wiązania SWIG (lua-elektra). | |
474 | ||
475 | %package -n python-elektra | |
476 | Summary: Python 2 binding for Elektra | |
477 | Summary(pl.UTF-8): Wiązanie Pythona 2 dla Elektry | |
478 | Group: Libraries | |
479 | Requires: %{name}-libs = %{version}-%{release} | |
480 | Requires: python-libs >= 1:2.7 | |
481 | ||
482 | %description -n python-elektra | |
483 | Python 2 binding for Elektra. | |
484 | ||
485 | %description -n python-elektra -l pl.UTF-8 | |
486 | Wiązanie Pythona 2 dla Elektry. | |
487 | ||
488 | %package -n python3-elektra | |
489 | Summary: Python 3 binding for Elektra | |
490 | Summary(pl.UTF-8): Wiązanie Pythona 3 dla Elektry | |
491 | Group: Libraries | |
492 | Requires: %{name}-libs = %{version}-%{release} | |
493 | Requires: python3-libs >= 1:3.2 | |
494 | ||
495 | %description -n python3-elektra | |
496 | Python 3 binding for Elektra. | |
497 | ||
498 | %description -n python3-elektra -l pl.UTF-8 | |
499 | Wiązanie Pythona 3 dla Elektry. | |
500 | ||
501 | %package -n python3-elektra-glib | |
502 | Summary: Python 3 GI binding for Elektra | |
503 | Summary(pl.UTF-8): Wiązanie Pythona 3 GI dla Elektry | |
504 | Group: Libraries | |
505 | Requires: %{name}-glib = %{version}-%{release} | |
506 | Requires: python3-pygobject3 >= 3 | |
507 | ||
508 | %description -n python3-elektra-glib | |
509 | Python 3 GI binding for Elektra. Note: this bindings is deprecated, | |
510 | it's better to use SWIG (python*-elektra) binding. | |
511 | ||
512 | ||
513 | %description -n python3-elektra-glib -l pl.UTF-8 | |
514 | Wiązanie Pythona 3 GI dla Elektry. Uwaga: to wiązanie jest | |
515 | przestarzałe, lepiej używać wiązania SWIG (python*-elektra). | |
516 | ||
517 | %package -n ruby-elektra | |
518 | Summary: Ruby binding for Elektra | |
519 | Summary(pl.UTF-8): Wiązanie języka Ruby dla Elektry | |
520 | Group: Libraries | |
521 | Requires: %{name}-libs = %{version}-%{release} | |
522 | ||
523 | %description -n ruby-elektra | |
524 | Ruby binding for Elektra. | |
525 | ||
526 | %description -n ruby-elektra -l pl.UTF-8 | |
527 | Wiązanie języka Ruby dla Elektry. | |
528 | ||
529 | %prep | |
530 | %setup -q | |
531 | %patch0 -p1 | |
532 | %patch1 -p1 | |
533 | %patch2 -p1 | |
534 | %patch3 -p1 | |
535 | %patch4 -p1 | |
536 | %patch5 -p1 | |
537 | ||
538 | %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' $(grep -l '/usr/bin/env bash' -r scripts) | |
539 | %{__sed} -i -e '1s,/usr/bin/env sh,/bin/sh,' scripts/check-env-dep | |
540 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' scripts/{find-tools,update-infos-status} | |
541 | ||
542 | %{__rm} -r src/bindings/io/test | |
543 | %{__rm} src/bindings/io/uv/testio_uv.c | |
544 | %{__rm} src/bindings/io/glib/testio_glib.c | |
545 | ||
546 | %build | |
547 | install -d build | |
548 | cd build | |
549 | %cmake .. \ | |
550 | -DBINDINGS="INTERCEPT;cpp;io_uv%{?with_glib:;glib;io_glib%{?with_gsettings:;gsettings}%{?with_lua:;gi_lua}%{?with_python3:;gi_python}}%{?with_java_mvn:;jna}%{?with_lua:;swig_lua}%{?with_python2:;swig_python2}%{?with_python3:;swig_python}%{?with_ruby:;swig_ruby}" \ | |
551 | %{!?with_full:-DBUILD_FULL=OFF} \ | |
552 | -DINSTALL_TESTING=FALSE \ | |
553 | %{?with_glib:-DIS_GLIB_ADDED=ON} \ | |
554 | -DPLUGINS=ALL \ | |
555 | -DTARGET_CMAKE_FOLDER=%{_datadir}/cmake/Modules \ | |
556 | -DTOOLS="kdb;race%{?with_gen:;gen}%{?with_qt:;qt-gui}" \ | |
557 | -DBUILD_STATIC=ON | |
558 | ||
559 | %{__make} | |
560 | ||
561 | %install | |
562 | rm -rf $RPM_BUILD_ROOT | |
563 | ||
564 | %{__make} -C build install \ | |
565 | DESTDIR=$RPM_BUILD_ROOT | |
566 | ||
567 | # unneeded compat symlink | |
568 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libelektragetenv.so.0 | |
569 | ||
570 | install -D src/plugins/xmltool/xmlschema/elektra.xsd $RPM_BUILD_ROOT%{_datadir}/sgml/elektra/elektra.xsd | |
571 | ||
572 | %if %{with python2} | |
573 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
574 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
575 | %py_postclean | |
576 | %endif | |
577 | ||
578 | %if %{with python3} | |
579 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} | |
580 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
581 | %endif | |
582 | ||
583 | # "static" variant (with libelektra-static and thus all plugins linked in); | |
584 | # we don't need it | |
585 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/kdb-static | |
586 | ||
587 | # prepare docs | |
588 | %{__rm} -rf installed-doc | |
589 | install -d installed-doc | |
590 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-api installed-doc/elektra-api | |
591 | # packaged as %doc | |
592 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
593 | ||
594 | # these don't belong to man3 | |
595 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{CODING.md,README_md,doc_*_md,md_doc_*,md_src_*,scripts_README_md,src_libs{,_getenv,_highlevel}_README_md,src_plugins_README_md}.3elektra | |
596 | # internal or example, not part of API | |
597 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{DocBindingData,DocOperationData,SomeIoLibHandle}.3elektra | |
598 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/doc.h.3elektra | |
599 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{array,backend,dl,doc,ease_keyname,elektra_{keyname,plugin,proposal},exportsymbols,functional,internal,kdbenum,log,markdownlinkconverter,meta,mount,nolog,owner,plugin_plugin,proposal_proposal,split,static,testio_doc,testlib_notification,testlib_pluginprocess,trie,try_compile_{dbus,zeromq}}.c.3elektra | |
600 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{benchmark_crypto_comparison,benchmark_plugins,examples_backend}.cpp.3elektra | |
601 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/std_hash_*_.3elektra | |
602 | ||
603 | %if %{without java_mvn} | |
604 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/org_libelektra_*.3elektra | |
605 | %endif | |
606 | ||
607 | %clean | |
608 | rm -rf $RPM_BUILD_ROOT | |
609 | ||
610 | %post libs -p /sbin/ldconfig | |
611 | %postun libs -p /sbin/ldconfig | |
612 | ||
613 | %post glib -p /sbin/ldconfig | |
614 | %postun glib -p /sbin/ldconfig | |
615 | ||
616 | %post io-glib -p /sbin/ldconfig | |
617 | %postun io-glib -p /sbin/ldconfig | |
618 | ||
619 | %post io-uv -p /sbin/ldconfig | |
620 | %postun io-uv -p /sbin/ldconfig | |
621 | ||
622 | %files | |
623 | %defattr(644,root,root,755) | |
624 | %doc LICENSE.md README.md doc/{AUTHORS,BIGPICTURE.md,DESIGN.md,GOALS.md,SECURITY.md,WHY.md,todo} build/doc/NEWS.md | |
625 | # doc/standards installed-doc/scripts | |
626 | %attr(755,root,root) %{_bindir}/kdb | |
627 | %if %{with full} | |
628 | %attr(755,root,root) %{_bindir}/kdb-full | |
629 | %endif | |
630 | %dir %{_libdir}/elektra | |
631 | # R: augeas-libs >= 1.0 libxml2 | |
632 | %attr(755,root,root) %{_libdir}/elektra/libelektra-augeas.so | |
633 | %attr(755,root,root) %{_libdir}/elektra/libelektra-base64.so | |
634 | %attr(755,root,root) %{_libdir}/elektra/libelektra-blockresolver.so | |
635 | %attr(755,root,root) %{_libdir}/elektra/libelektra-boolean.so | |
636 | %attr(755,root,root) %{_libdir}/elektra/libelektra-c.so | |
637 | %attr(755,root,root) %{_libdir}/elektra/libelektra-cachefilter.so | |
638 | %attr(755,root,root) %{_libdir}/elektra/libelektra-camel.so | |
639 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ccode.so | |
640 | %attr(755,root,root) %{_libdir}/elektra/libelektra-conditionals.so | |
641 | %attr(755,root,root) %{_libdir}/elektra/libelektra-constants.so | |
642 | %attr(755,root,root) %{_libdir}/elektra/libelektra-counter.so | |
643 | # R: libstdc++ | |
644 | %attr(755,root,root) %{_libdir}/elektra/libelektra-cpptemplate.so | |
645 | # R: botan | |
646 | %attr(755,root,root) %{_libdir}/elektra/libelektra-crypto_botan.so | |
647 | # R: libgcrypt | |
648 | %attr(755,root,root) %{_libdir}/elektra/libelektra-crypto_gcrypt.so | |
649 | # R: openssl | |
650 | %attr(755,root,root) %{_libdir}/elektra/libelektra-crypto_openssl.so | |
651 | %attr(755,root,root) %{_libdir}/elektra/libelektra-csvstorage.so | |
652 | # R: curl-libs >= 7.28.0 | |
653 | %attr(755,root,root) %{_libdir}/elektra/libelektra-curlget.so | |
654 | %attr(755,root,root) %{_libdir}/elektra/libelektra-date.so | |
655 | # R: dbus | |
656 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dbus.so | |
657 | # R: dbus | |
658 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dbusrecv.so | |
659 | %attr(755,root,root) %{_libdir}/elektra/libelektra-desktop.so | |
660 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dini.so | |
661 | %attr(755,root,root) %{_libdir}/elektra/libelektra-directoryvalue.so | |
662 | %attr(755,root,root) %{_libdir}/elektra/libelektra-doc.so | |
663 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dpkg.so | |
664 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dump.so | |
665 | %attr(755,root,root) %{_libdir}/elektra/libelektra-enum.so | |
666 | %attr(755,root,root) %{_libdir}/elektra/libelektra-error.so | |
667 | %attr(755,root,root) %{_libdir}/elektra/libelektra-fcrypt.so | |
668 | %attr(755,root,root) %{_libdir}/elektra/libelektra-file.so | |
669 | %attr(755,root,root) %{_libdir}/elektra/libelektra-filecheck.so | |
670 | %attr(755,root,root) %{_libdir}/elektra/libelektra-fstab.so | |
671 | # R: libgit2 >= 0.24.1 | |
672 | %attr(755,root,root) %{_libdir}/elektra/libelektra-gitresolver.so | |
673 | %attr(755,root,root) %{_libdir}/elektra/libelektra-glob.so | |
674 | # R: gpgme | |
675 | %attr(755,root,root) %{_libdir}/elektra/libelektra-gpgme.so | |
676 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hexcode.so | |
677 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hexnumber.so | |
678 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hidden.so | |
679 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hosts.so | |
680 | %attr(755,root,root) %{_libdir}/elektra/libelektra-iconv.so | |
681 | # uses internal inih library | |
682 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ini.so | |
683 | %attr(755,root,root) %{_libdir}/elektra/libelektra-internalnotification.so | |
684 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ipaddr.so | |
685 | %attr(755,root,root) %{_libdir}/elektra/libelektra-iterate.so | |
686 | # R: systemd-libs | |
687 | %attr(755,root,root) %{_libdir}/elektra/libelektra-journald.so | |
688 | %attr(755,root,root) %{_libdir}/elektra/libelektra-keytometa.so | |
689 | %attr(755,root,root) %{_libdir}/elektra/libelektra-line.so | |
690 | %attr(755,root,root) %{_libdir}/elektra/libelektra-lineendings.so | |
691 | %attr(755,root,root) %{_libdir}/elektra/libelektra-list.so | |
692 | %attr(755,root,root) %{_libdir}/elektra/libelektra-logchange.so | |
693 | %attr(755,root,root) %{_libdir}/elektra/libelektra-mathcheck.so | |
694 | %attr(755,root,root) %{_libdir}/elektra/libelektra-mini.so | |
695 | %attr(755,root,root) %{_libdir}/elektra/libelektra-mmapstorage.so | |
696 | # R: zlib | |
697 | %attr(755,root,root) %{_libdir}/elektra/libelektra-mmapstorage_crc.so | |
698 | %attr(755,root,root) %{_libdir}/elektra/libelektra-mozprefs.so | |
699 | %attr(755,root,root) %{_libdir}/elektra/libelektra-multifile.so | |
700 | %attr(755,root,root) %{_libdir}/elektra/libelektra-network.so | |
701 | %attr(755,root,root) %{_libdir}/elektra/libelektra-noresolver.so | |
702 | # uses internal nickel library | |
703 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ni.so | |
704 | %attr(755,root,root) %{_libdir}/elektra/libelektra-null.so | |
705 | %attr(755,root,root) %{_libdir}/elektra/libelektra-passwd.so | |
706 | %attr(755,root,root) %{_libdir}/elektra/libelektra-path.so | |
707 | %attr(755,root,root) %{_libdir}/elektra/libelektra-process.so | |
708 | %attr(755,root,root) %{_libdir}/elektra/libelektra-profile.so | |
709 | %attr(755,root,root) %{_libdir}/elektra/libelektra-range.so | |
710 | %attr(755,root,root) %{_libdir}/elektra/libelektra-reference.so | |
711 | %attr(755,root,root) %{_libdir}/elektra/libelektra-regexstore.so | |
712 | %attr(755,root,root) %{_libdir}/elektra/libelektra-rename.so | |
713 | %attr(755,root,root) %{_libdir}/elektra/libelektra-resolver.so | |
714 | %attr(755,root,root) %{_libdir}/elektra/libelektra-resolver_fm_*.so | |
715 | %attr(755,root,root) %{_libdir}/elektra/libelektra-required.so | |
716 | %attr(755,root,root) %{_libdir}/elektra/libelektra-semlock.so | |
717 | %attr(755,root,root) %{_libdir}/elektra/libelektra-shell.so | |
718 | %attr(755,root,root) %{_libdir}/elektra/libelektra-simplespeclang.so | |
719 | %attr(755,root,root) %{_libdir}/elektra/libelektra-simpleini.so | |
720 | %attr(755,root,root) %{_libdir}/elektra/libelektra-spec.so | |
721 | %attr(755,root,root) %{_libdir}/elektra/libelektra-storage.so | |
722 | %attr(755,root,root) %{_libdir}/elektra/libelektra-struct.so | |
723 | %attr(755,root,root) %{_libdir}/elektra/libelektra-sync.so | |
724 | %attr(755,root,root) %{_libdir}/elektra/libelektra-syslog.so | |
725 | %attr(755,root,root) %{_libdir}/elektra/libelektra-tcl.so | |
726 | %attr(755,root,root) %{_libdir}/elektra/libelektra-template.so | |
727 | %attr(755,root,root) %{_libdir}/elektra/libelektra-timeofday.so | |
728 | %attr(755,root,root) %{_libdir}/elektra/libelektra-tracer.so | |
729 | %attr(755,root,root) %{_libdir}/elektra/libelektra-type.so | |
730 | # R: xerces-c >= 3.0.0 | |
731 | %attr(755,root,root) %{_libdir}/elektra/libelektra-xerces.so | |
732 | %attr(755,root,root) %{_libdir}/elektra/libelektra-uname.so | |
733 | %attr(755,root,root) %{_libdir}/elektra/libelektra-validation.so | |
734 | %attr(755,root,root) %{_libdir}/elektra/libelektra-wresolver.so | |
735 | # R: libxml2 | |
736 | %attr(755,root,root) %{_libdir}/elektra/libelektra-xmltool.so | |
737 | # R: yajl | |
738 | %attr(755,root,root) %{_libdir}/elektra/libelektra-yajl.so | |
739 | # R: libstdc++ | |
740 | %attr(755,root,root) %{_libdir}/elektra/libelektra-yambi.so | |
741 | # R: yaml-cpp >= 0.5 | |
742 | %attr(755,root,root) %{_libdir}/elektra/libelektra-yamlcpp.so | |
743 | # R: libstdc++ | |
744 | %attr(755,root,root) %{_libdir}/elektra/libelektra-yamlsmith.so | |
745 | # R: zeromq | |
746 | %attr(755,root,root) %{_libdir}/elektra/libelektra-zeromqrecv.so | |
747 | # R: zeromq | |
748 | %attr(755,root,root) %{_libdir}/elektra/libelektra-zeromqsend.so | |
749 | %dir %{_libdir}/elektra/tool_exec | |
750 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/backup | |
751 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/benchmark-createtree | |
752 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/change-resolver-symlink | |
753 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/change-storage-symlink | |
754 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/check-env-dep | |
755 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/configure-firefox | |
756 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-fstab | |
757 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-hosts | |
758 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-inittab | |
759 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-users | |
760 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektra-merge | |
761 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektra-mount | |
762 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektra-umount | |
763 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektrify-open | |
764 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektrify-getenv | |
765 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/example-xorg | |
766 | %dir %{_libdir}/elektra/tool_exec/ffconfig | |
767 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/setupConfig | |
768 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/setupHomepage | |
769 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/setupProxy | |
770 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/writeConfigFiles | |
771 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/find-tools | |
772 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/getenv | |
773 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/install-sh-completion | |
774 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/list-tools | |
775 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-augeas | |
776 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-info | |
777 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-list-all-files | |
778 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-kde | |
779 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-openicc | |
780 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mountpoint-info | |
781 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/race | |
782 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/restore | |
783 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/stash | |
784 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/umount-all | |
785 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/update-snippet-repository | |
786 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/upgrade-bootstrap | |
787 | %{_datadir}/sgml/elektra | |
788 | %{_mandir}/man1/kdb.1* | |
789 | %{_mandir}/man1/kdb-backup.1* | |
790 | %{_mandir}/man1/kdb-change-resolver-symlink.1* | |
791 | %{_mandir}/man1/kdb-change-storage-symlink.1* | |
792 | %{_mandir}/man1/kdb-check.1* | |
793 | %{_mandir}/man1/kdb-check-env-dep.1* | |
794 | %{_mandir}/man1/kdb-complete.1* | |
795 | %{_mandir}/man1/kdb-convert.1* | |
796 | %{_mandir}/man1/kdb-cp.1* | |
797 | %{_mandir}/man1/kdb-editor.1* | |
798 | %{_mandir}/man1/kdb-elektrify-getenv.1* | |
799 | %{_mandir}/man1/kdb-export.1* | |
800 | %{_mandir}/man1/kdb-file.1* | |
801 | %{_mandir}/man1/kdb-find.1* | |
802 | %{_mandir}/man1/kdb-find-tools.1* | |
803 | %{_mandir}/man1/kdb-fstab.1* | |
804 | %{_mandir}/man1/kdb-get.1* | |
805 | %{_mandir}/man1/kdb-getmeta.1* | |
806 | %{_mandir}/man1/kdb-global-mount.1* | |
807 | %{_mandir}/man1/kdb-global-umount.1* | |
808 | %{_mandir}/man1/kdb-help.1* | |
809 | %{_mandir}/man1/kdb-import.1* | |
810 | %{_mandir}/man1/kdb-info.1* | |
811 | %{_mandir}/man1/kdb-introduction.1* | |
812 | %{_mandir}/man1/kdb-list.1* | |
813 | %{_mandir}/man1/kdb-list-commands.1* | |
814 | %{_mandir}/man1/kdb-list-tools.1* | |
815 | %{_mandir}/man1/kdb-ls.1* | |
816 | %{_mandir}/man1/kdb-lsmeta.1* | |
817 | %{_mandir}/man1/kdb-merge.1* | |
818 | %{_mandir}/man1/kdb-mount.1* | |
819 | %{_mandir}/man1/kdb-mount-list-all-files.1* | |
820 | %{_mandir}/man1/kdb-mountpoint-info.* | |
821 | %{_mandir}/man1/kdb-mv.1* | |
822 | %{_mandir}/man1/kdb-remount.1* | |
823 | %{_mandir}/man1/kdb-restore.1* | |
824 | %{_mandir}/man1/kdb-rm.1* | |
825 | %{_mandir}/man1/kdb-rmmeta.1* | |
826 | %{_mandir}/man1/kdb-set.1* | |
827 | %{_mandir}/man1/kdb-setmeta.1* | |
828 | %{_mandir}/man1/kdb-sget.1* | |
829 | %{_mandir}/man1/kdb-shell.1* | |
830 | %{_mandir}/man1/kdb-spec-mount.1* | |
831 | %{_mandir}/man1/kdb-stash.1* | |
832 | %{_mandir}/man1/kdb-test.1* | |
833 | %{_mandir}/man1/kdb-umount.1* | |
834 | %{_mandir}/man1/kdb-vset.1* | |
835 | %{_mandir}/man7/elektra-*.7* | |
836 | ||
837 | %if %{with gen} | |
838 | %files gen | |
839 | %defattr(644,root,root,755) | |
840 | %doc src/tools/gen/README.md | |
841 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/gen | |
842 | %{py_sitedir}/elektra_gen-%{version}-py*.egg-info | |
843 | # FIXME: should be in elektra_gen subdir | |
844 | %{py_sitedir}/support | |
845 | %dir %{_datadir}/elektra | |
846 | %{_datadir}/elektra/templates | |
847 | %{_mandir}/man1/kdb-gen.1* | |
848 | %endif | |
849 | ||
850 | %files gui | |
851 | %defattr(644,root,root,755) | |
852 | %doc src/tools/qt-gui/README.md | |
853 | %attr(755,root,root) %{_bindir}/elektra-qt-editor | |
854 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/qt-gui | |
855 | %{_datadir}/appdata/org.libelektra.elektra-qt-editor.appdata.xml | |
856 | %{_desktopdir}/org.libelektra.elektra-qt-editor.desktop | |
857 | %{_iconsdir}/hicolor/scalable/apps/elektra-symbolic.svg | |
858 | %{_iconsdir}/hicolor/scalable/apps/elektra.svg | |
859 | %{_mandir}/man1/kdb-qt-gui.1* | |
860 | ||
861 | %if %{with java} | |
862 | %files plugin-jni | |
863 | %defattr(644,root,root,755) | |
864 | # R: jre with jawt | |
865 | %attr(755,root,root) %{_libdir}/elektra/libelektra-jni.so | |
866 | %endif | |
867 | ||
868 | %if %{with lua} | |
869 | %files plugin-lua | |
870 | %defattr(644,root,root,755) | |
871 | # R: lua52-libs | |
872 | %attr(755,root,root) %{_libdir}/elektra/libelektra-lua.so | |
873 | %endif | |
874 | ||
875 | %if %{with python2} | |
876 | %files plugin-python2 | |
877 | %defattr(644,root,root,755) | |
878 | # R: python-libs | |
879 | %attr(755,root,root) %{_libdir}/elektra/libelektra-python2.so | |
880 | %endif | |
881 | ||
882 | %if %{with python3} | |
883 | %files plugin-python3 | |
884 | %defattr(644,root,root,755) | |
885 | # R: python3-libs | |
886 | %attr(755,root,root) %{_libdir}/elektra/libelektra-python.so | |
887 | %endif | |
888 | ||
889 | %if %{with ruby} | |
890 | %files plugin-ruby | |
891 | %defattr(644,root,root,755) | |
892 | # R: ruby | |
893 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ruby.so | |
894 | %endif | |
895 | ||
896 | %files -n bash-completion-elektra | |
897 | %defattr(644,root,root,755) | |
898 | %{bash_compdir}/kdb | |
899 | ||
900 | %files -n fish-completion-elektra | |
901 | %defattr(644,root,root,755) | |
902 | %{_datadir}/fish/vendor_completions.d/kdb.fish | |
903 | ||
904 | %files -n zsh-completion-elektra | |
905 | %defattr(644,root,root,755) | |
906 | %{_datadir}/zsh/site-functions/_kdb | |
907 | ||
908 | %files libs | |
909 | %defattr(644,root,root,755) | |
910 | %attr(755,root,root) %{_libdir}/libelektra.so.*.*.* | |
911 | %attr(755,root,root) %ghost %{_libdir}/libelektra.so.4 | |
912 | %attr(755,root,root) %{_libdir}/libelektra-core.so.*.*.* | |
913 | %attr(755,root,root) %ghost %{_libdir}/libelektra-core.so.4 | |
914 | %attr(755,root,root) %{_libdir}/libelektra-ease.so.*.*.* | |
915 | %attr(755,root,root) %ghost %{_libdir}/libelektra-ease.so.4 | |
916 | %attr(755,root,root) %{_libdir}/libelektra-globbing.so.*.*.* | |
917 | %attr(755,root,root) %ghost %{_libdir}/libelektra-globbing.so.4 | |
918 | %attr(755,root,root) %{_libdir}/libelektra-highlevel.so.*.*.* | |
919 | %attr(755,root,root) %ghost %{_libdir}/libelektra-highlevel.so.4 | |
920 | %attr(755,root,root) %{_libdir}/libelektra-invoke.so.*.*.* | |
921 | %attr(755,root,root) %ghost %{_libdir}/libelektra-invoke.so.4 | |
922 | %attr(755,root,root) %{_libdir}/libelektra-io.so.*.*.* | |
923 | %attr(755,root,root) %ghost %{_libdir}/libelektra-io.so.4 | |
924 | %attr(755,root,root) %{_libdir}/libelektra-kdb.so.*.*.* | |
925 | %attr(755,root,root) %ghost %{_libdir}/libelektra-kdb.so.4 | |
926 | %attr(755,root,root) %{_libdir}/libelektra-meta.so.*.*.* | |
927 | %attr(755,root,root) %ghost %{_libdir}/libelektra-meta.so.4 | |
928 | %attr(755,root,root) %{_libdir}/libelektra-notification.so.*.*.* | |
929 | %attr(755,root,root) %ghost %{_libdir}/libelektra-notification.so.4 | |
930 | %attr(755,root,root) %{_libdir}/libelektra-opts.so.*.*.* | |
931 | %attr(755,root,root) %ghost %{_libdir}/libelektra-opts.so.4 | |
932 | %attr(755,root,root) %{_libdir}/libelektra-plugin.so.*.*.* | |
933 | %attr(755,root,root) %ghost %{_libdir}/libelektra-plugin.so.4 | |
934 | %attr(755,root,root) %{_libdir}/libelektra-pluginprocess.so.*.*.* | |
935 | %attr(755,root,root) %ghost %{_libdir}/libelektra-pluginprocess.so.4 | |
936 | %attr(755,root,root) %{_libdir}/libelektra-proposal.so.*.*.* | |
937 | %attr(755,root,root) %ghost %{_libdir}/libelektra-proposal.so.4 | |
938 | %attr(755,root,root) %{_libdir}/libelektra-utility.so.*.*.* | |
939 | %attr(755,root,root) %ghost %{_libdir}/libelektra-utility.so.4 | |
940 | %attr(755,root,root) %{_libdir}/libelektraintercept-env.so.*.*.* | |
941 | %attr(755,root,root) %ghost %{_libdir}/libelektraintercept-env.so.0 | |
942 | %attr(755,root,root) %{_libdir}/libelektraintercept-fs.so | |
943 | %attr(755,root,root) %{_libdir}/libelektratools.so.*.*.* | |
944 | %attr(755,root,root) %ghost %{_libdir}/libelektratools.so.2 | |
945 | %if %{with full} | |
946 | %attr(755,root,root) %{_libdir}/libelektra-full.so.*.*.* | |
947 | %attr(755,root,root) %ghost %{_libdir}/libelektra-full.so.4 | |
948 | %endif | |
949 | ||
950 | %files devel | |
951 | %defattr(644,root,root,755) | |
952 | %doc doc/API.md installed-doc/elektra-api/html | |
953 | %attr(755,root,root) %{_libdir}/libelektra.so | |
954 | %attr(755,root,root) %{_libdir}/libelektra-core.so | |
955 | %attr(755,root,root) %{_libdir}/libelektra-ease.so | |
956 | %attr(755,root,root) %{_libdir}/libelektra-globbing.so | |
957 | %attr(755,root,root) %{_libdir}/libelektra-highlevel.so | |
958 | %attr(755,root,root) %{_libdir}/libelektra-invoke.so | |
959 | %attr(755,root,root) %{_libdir}/libelektra-io.so | |
960 | %attr(755,root,root) %{_libdir}/libelektra-kdb.so | |
961 | %attr(755,root,root) %{_libdir}/libelektra-meta.so | |
962 | %attr(755,root,root) %{_libdir}/libelektra-notification.so | |
963 | %attr(755,root,root) %{_libdir}/libelektra-opts.so | |
964 | %attr(755,root,root) %{_libdir}/libelektra-plugin.so | |
965 | %attr(755,root,root) %{_libdir}/libelektra-pluginprocess.so | |
966 | %attr(755,root,root) %{_libdir}/libelektra-proposal.so | |
967 | %attr(755,root,root) %{_libdir}/libelektra-utility.so | |
968 | %attr(755,root,root) %{_libdir}/libelektragetenv.so | |
969 | %attr(755,root,root) %{_libdir}/libelektraintercept-env.so | |
970 | %attr(755,root,root) %{_libdir}/libelektraintercept.so | |
971 | %attr(755,root,root) %{_libdir}/libelektratools.so | |
972 | %if %{with full} | |
973 | %attr(755,root,root) %{_libdir}/libelektra-full.so | |
974 | %endif | |
975 | %dir %{_includedir}/elektra | |
976 | %{_includedir}/elektra/elektra.h | |
977 | %{_includedir}/elektra/elektra | |
978 | %{_includedir}/elektra/kdb.h | |
979 | %{_includedir}/elektra/kdbconfig.h | |
980 | %{_includedir}/elektra/kdbease.h | |
981 | %{_includedir}/elektra/kdbextension.h | |
982 | %{_includedir}/elektra/kdbgetenv.h | |
983 | %{_includedir}/elektra/kdbhelper.h | |
984 | %{_includedir}/elektra/kdbinvoke.h | |
985 | %{_includedir}/elektra/kdbio.h | |
986 | %dir %{_includedir}/elektra/kdbio | |
987 | %{_includedir}/elektra/kdbmeta.h | |
988 | %{_includedir}/elektra/kdbmodule.h | |
989 | %{_includedir}/elektra/kdbnotification.h | |
990 | %{_includedir}/elektra/kdbopts.h | |
991 | %{_includedir}/elektra/kdbos.h | |
992 | %{_includedir}/elektra/kdbplugin.h | |
993 | %{_includedir}/elektra/kdbpluginprocess.h | |
994 | %{_includedir}/elektra/kdbprivate.h | |
995 | %{_includedir}/elektra/kdbproposal.h | |
996 | %{_includedir}/elektra/kdbtypes.h | |
997 | %{_includedir}/elektra/kdbutility.h | |
998 | %{_includedir}/elektra/kdbversion.h | |
999 | %{_pkgconfigdir}/elektra.pc | |
1000 | %{_pkgconfigdir}/elektra-highlevel.pc | |
1001 | %{_pkgconfigdir}/elektra-io.pc | |
1002 | %{_pkgconfigdir}/elektra-notification.pc | |
1003 | %{_datadir}/cmake/Modules/ElektraConfig*.cmake | |
1004 | %{_datadir}/cmake/Modules/ElektraTargetsLibelektra*.cmake | |
1005 | # FIXME: x86_64 doxygen uses lower case, while the other use upper, needs investigation | |
1006 | %{_mandir}/man3/[Ii]nvoke.3elektra* | |
1007 | %{_mandir}/man3/Opmphm*.3elektra* | |
1008 | %{_mandir}/man3/api.3elektra* | |
1009 | %{_mandir}/man3/conversion.h.3elektra* | |
1010 | %{_mandir}/man3/dbus.c.3elektra* | |
1011 | %{_mandir}/man3/dbus.h.3elektra* | |
1012 | %{_mandir}/man3/deprecated.3elektra* | |
1013 | %{_mandir}/man3/elektra.c.3elektra* | |
1014 | %{_mandir}/man3/elektra.h.3elektra* | |
1015 | %{_mandir}/man3/elektra_array_value.c.3elektra* | |
1016 | %{_mandir}/man3/elektra_conversion.c.3elektra* | |
1017 | %{_mandir}/man3/elektra_error.c.3elektra* | |
1018 | %{_mandir}/man3/elektra_value.c.3elektra* | |
1019 | %{_mandir}/man3/error.h.3elektra* | |
1020 | %{_mandir}/man3/ev.h.3elektra* | |
1021 | %{_mandir}/man3/global.c.3elektra* | |
1022 | %{_mandir}/man3/globbing.c.3elektra* | |
1023 | %{_mandir}/man3/highlevel.3elektra* | |
1024 | %{_mandir}/man3/invoke.c.3elektra* | |
1025 | %{_mandir}/man3/io.c.3elektra* | |
1026 | %{_mandir}/man3/io_doc.c.3elektra* | |
1027 | %{_mandir}/man3/kdb.3elektra* | |
1028 | %{_mandir}/man3/kdb.c.3elektra* | |
1029 | %{_mandir}/man3/kdb_*.3elektra* | |
1030 | %{_mandir}/man3/kdb*.h.3elektra* | |
1031 | %{_mandir}/man3/kdbio.3elektra* | |
1032 | %{_mandir}/man3/kdbnotification.3elektra* | |
1033 | %{_mandir}/man3/key.3elektra* | |
1034 | %{_mandir}/man3/keymeta.3elektra* | |
1035 | %{_mandir}/man3/keyname.3elektra* | |
1036 | %{_mandir}/man3/keyset.3elektra* | |
1037 | %{_mandir}/man3/keytest.3elektra* | |
1038 | %{_mandir}/man3/keyvalue.3elektra* | |
1039 | %{_mandir}/man3/key.c.3elektra* | |
1040 | %{_mandir}/man3/keyhelpers.c.3elektra* | |
1041 | %{_mandir}/man3/keymeta.c.3elektra* | |
1042 | %{_mandir}/man3/keyset.c.3elektra* | |
1043 | %{_mandir}/man3/keytest.c.3elektra* | |
1044 | %{_mandir}/man3/keyvalue.c.3elektra* | |
1045 | %{_mandir}/man3/meta.3elektra* | |
1046 | %{_mandir}/man3/modules.3elektra* | |
1047 | %{_mandir}/man3/notification.c.3elektra* | |
1048 | %{_mandir}/man3/opmphm.c.3elektra* | |
1049 | %{_mandir}/man3/opmphmpredictor.c.3elektra* | |
1050 | %{_mandir}/man3/opts.c.3elektra* | |
1051 | %{_mandir}/man3/plugin.3elektra* | |
1052 | %{_mandir}/man3/pluginprocess.c.3elektra* | |
1053 | %{_mandir}/man3/proposal.3elektra* | |
1054 | %{_mandir}/man3/rand.c.3elektra* | |
1055 | %{_mandir}/man3/zeromq.c.3elektra* | |
1056 | %{_mandir}/man3/zeromq.h.3elektra* | |
1057 | ||
1058 | %files static | |
1059 | %defattr(644,root,root,755) | |
1060 | %{_libdir}/libelektra-static.a | |
1061 | %{_libdir}/libelektratools-static.a | |
1062 | ||
1063 | %files cpp-devel | |
1064 | %defattr(644,root,root,755) | |
1065 | %doc src/bindings/cpp/README.md | |
1066 | %{_includedir}/elektra/*.hpp | |
1067 | %{_includedir}/elektra/helper | |
1068 | %{_includedir}/elektra/merging | |
1069 | # libelektratools API man pages | |
1070 | %{_mandir}/man3/automergeconfiguration.cpp.3elektra* | |
1071 | %{_mandir}/man3/automergeconfiguration.hpp.3elektra* | |
1072 | %{_mandir}/man3/automergestrategy.cpp.3elektra* | |
1073 | %{_mandir}/man3/automergestrategy.hpp.3elektra* | |
1074 | %{_mandir}/man3/backend.hpp.3elektra* | |
1075 | %{_mandir}/man3/backendbuilder.cpp.3elektra* | |
1076 | %{_mandir}/man3/backendbuilder.hpp.3elektra* | |
1077 | %{_mandir}/man3/backendparser.cpp.3elektra* | |
1078 | %{_mandir}/man3/backendparser.hpp.3elektra* | |
1079 | %{_mandir}/man3/backends.cpp.3elektra* | |
1080 | %{_mandir}/man3/backends.hpp.3elektra* | |
1081 | %{_mandir}/man3/comparison.cpp.3elektra* | |
1082 | %{_mandir}/man3/comparison.hpp.3elektra* | |
1083 | %{_mandir}/man3/importmergeconfiguration.cpp.3elektra* | |
1084 | %{_mandir}/man3/importmergeconfiguration.hpp.3elektra* | |
1085 | %{_mandir}/man3/interactivemergestrategy.cpp.3elektra* | |
1086 | %{_mandir}/man3/interactivemergestrategy.hpp.3elektra* | |
1087 | %{_mandir}/man3/kdb*.hpp.3elektra* | |
1088 | %{_mandir}/man3/key*.hpp.3elektra* | |
1089 | %{_mandir}/man3/keyhelper.cpp.3elektra* | |
1090 | %{_mandir}/man3/mergeconfiguration.hpp.3elektra* | |
1091 | %{_mandir}/man3/mergeconflict.hpp.3elektra* | |
1092 | %{_mandir}/man3/mergeconflictstrategy.cpp.3elektra* | |
1093 | %{_mandir}/man3/mergeconflictstrategy.hpp.3elektra* | |
1094 | %{_mandir}/man3/mergeresult.cpp.3elektra* | |
1095 | %{_mandir}/man3/mergeresult.hpp.3elektra* | |
1096 | %{_mandir}/man3/mergetask.hpp.3elektra* | |
1097 | %{_mandir}/man3/mergetestutils.cpp.3elektra* | |
1098 | %{_mandir}/man3/merging.cpp.3elektra* | |
1099 | %{_mandir}/man3/mergingkdb.cpp.3elektra* | |
1100 | %{_mandir}/man3/mergingkdb.hpp.3elektra* | |
1101 | %{_mandir}/man3/metamergestrategy.cpp.3elektra* | |
1102 | %{_mandir}/man3/metamergestrategy.hpp.3elektra* | |
1103 | %{_mandir}/man3/newkeystrategy.cpp.3elektra* | |
1104 | %{_mandir}/man3/newkeystrategy.hpp.3elektra* | |
1105 | %{_mandir}/man3/onesidemergeconfiguration.cpp.3elektra* | |
1106 | %{_mandir}/man3/onesidemergeconfiguration.hpp.3elektra* | |
1107 | %{_mandir}/man3/onesidestrategy.cpp.3elektra* | |
1108 | %{_mandir}/man3/onesidestrategy.hpp.3elektra* | |
1109 | %{_mandir}/man3/onesidevaluestrategy.cpp.3elektra* | |
1110 | %{_mandir}/man3/onesidevaluestrategy.hpp.3elektra* | |
1111 | %{_mandir}/man3/overwritemergeconfiguration.cpp.3elektra* | |
1112 | %{_mandir}/man3/overwritemergeconfiguration.hpp.3elektra* | |
1113 | %{_mandir}/man3/modules.cpp.3elektra* | |
1114 | %{_mandir}/man3/modules.hpp.3elektra* | |
1115 | %{_mandir}/man3/plugin.cpp.3elektra* | |
1116 | %{_mandir}/man3/plugin.hpp.3elektra* | |
1117 | %{_mandir}/man3/plugindatabase.cpp.3elektra* | |
1118 | %{_mandir}/man3/plugindatabase.hpp.3elektra* | |
1119 | %{_mandir}/man3/plugins.cpp.3elektra* | |
1120 | %{_mandir}/man3/plugins.hpp.3elektra* | |
1121 | %{_mandir}/man3/pluginspec.cpp.3elektra* | |
1122 | %{_mandir}/man3/pluginspec.hpp.3elektra* | |
1123 | %{_mandir}/man3/specreader.hpp.3elektra* | |
1124 | %{_mandir}/man3/src_backend.cpp.3elektra* | |
1125 | %{_mandir}/man3/testtool_*.cpp.3elektra* | |
1126 | %{_mandir}/man3/threewaymerge.cpp.3elektra* | |
1127 | %{_mandir}/man3/threewaymerge.hpp.3elektra* | |
1128 | %{_mandir}/man3/toolexcept.hpp.3elektra* | |
1129 | ||
1130 | %if %{with glib} | |
1131 | %files glib | |
1132 | %defattr(644,root,root,755) | |
1133 | %doc src/bindings/glib/README.md | |
1134 | %attr(755,root,root) %{_libdir}/libgelektra-4.0.so | |
1135 | %if %{with gsettings} | |
1136 | %attr(755,root,root) %{_libdir}/gio/modules/libelektrasettings.so | |
1137 | %endif | |
1138 | %{_libdir}/girepository-1.0/GElektra-4.0.typelib | |
1139 | ||
1140 | %files glib-devel | |
1141 | %defattr(644,root,root,755) | |
1142 | %{_datadir}/gir-1.0/GElektra-4.0.gir | |
1143 | %{_includedir}/elektra/gelektra-*.h | |
1144 | %{_pkgconfigdir}/gelektra-4.0.pc | |
1145 | %endif | |
1146 | ||
1147 | %files io-glib | |
1148 | %defattr(644,root,root,755) | |
1149 | %doc src/bindings/io/glib/README.md | |
1150 | %attr(755,root,root) %{_libdir}/libelektra-io-glib.so | |
1151 | ||
1152 | %files io-glib-devel | |
1153 | %defattr(644,root,root,755) | |
1154 | %{_includedir}/elektra/kdbio/glib.h | |
1155 | %{_pkgconfigdir}/elektra-io-glib.pc | |
1156 | %{_mandir}/man3/glib.h.3elektra* | |
1157 | ||
1158 | %files io-uv | |
1159 | %defattr(644,root,root,755) | |
1160 | %doc src/bindings/io/uv/README.md | |
1161 | %attr(755,root,root) %{_libdir}/libelektra-io-uv.so | |
1162 | ||
1163 | %files io-uv-devel | |
1164 | %defattr(644,root,root,755) | |
1165 | %{_includedir}/elektra/kdbio/uv.h | |
1166 | %{_pkgconfigdir}/elektra-io-uv.pc | |
1167 | %{_mandir}/man3/uv.h.3elektra* | |
1168 | ||
1169 | %if %{with java_mvn} | |
1170 | %files -n java-elektra | |
1171 | %defattr(644,root,root,755) | |
1172 | %doc src/bindings/jna/README.md | |
1173 | %{_javadir}/libelektra-1.jar | |
1174 | %{_javadir}/libelektra.jar | |
1175 | %{_mandir}/man3/org_libelektra_*.3elektra* | |
1176 | %endif | |
1177 | ||
1178 | %if %{with lua} | |
1179 | %files -n lua-elektra | |
1180 | %defattr(644,root,root,755) | |
1181 | %doc src/bindings/swig/lua/README.md | |
1182 | %attr(755,root,root) %{_libdir}/lua/5.2/kdb.so | |
1183 | ||
1184 | %if %{with glib} | |
1185 | %files -n lua-elektra-glib | |
1186 | %defattr(644,root,root,755) | |
1187 | %doc src/bindings/gi/lua/README.md | |
1188 | %dir %{_datadir}/lua/5.2/lgi | |
1189 | %dir %{_datadir}/lua/5.2/lgi/override | |
1190 | %{_datadir}/lua/5.2/lgi/override/GElektra.lua | |
1191 | %endif | |
1192 | %endif | |
1193 | ||
1194 | %if %{with python2} | |
1195 | %files -n python-elektra | |
1196 | %defattr(644,root,root,755) | |
1197 | %doc src/bindings/swig/python2/README.md | |
1198 | %attr(755,root,root) %{py_sitedir}/_kdb.so | |
1199 | %{py_sitedir}/kdb.py[co] | |
1200 | %endif | |
1201 | ||
1202 | %if %{with python3} | |
1203 | %files -n python3-elektra | |
1204 | %defattr(644,root,root,755) | |
1205 | %doc src/bindings/swig/python/README.md | |
1206 | %attr(755,root,root) %{py3_sitedir}/_kdb.so | |
1207 | %{py3_sitedir}/kdb.py | |
1208 | %{py3_sitedir}/__pycache__/kdb.cpython-*.py[co] | |
1209 | ||
1210 | %if %{with glib} | |
1211 | %files -n python3-elektra-glib | |
1212 | %defattr(644,root,root,755) | |
1213 | %doc src/bindings/gi/python/README.md | |
1214 | %{py3_sitedir}/gi/overrides/GElektra.py | |
1215 | %{py3_sitedir}/gi/overrides/__pycache__/GElektra.cpython-*.py[co] | |
1216 | %endif | |
1217 | %endif | |
1218 | ||
1219 | %if %{with ruby} | |
1220 | %files -n ruby-elektra | |
1221 | %defattr(644,root,root,755) | |
1222 | %doc src/bindings/swig/ruby/README.md | |
1223 | %attr(755,root,root) %{ruby_vendorarchdir}/_kdb.so | |
1224 | %attr(755,root,root) %{ruby_vendorarchdir}/_kdbtools.so | |
1225 | %{ruby_vendorlibdir}/kdb.rb | |
1226 | %{ruby_vendorlibdir}/kdbtools.rb | |
1227 | %endif |