]>
Commit | Line | Data |
---|---|---|
1 | # TODO: use system nickel (in src/plugins/ni), inih (src/plugins/ini) | |
2 | # | |
3 | # Conditonal build: | |
4 | %bcond_with full # "full" variant (libelektra-full with all plugins linked in) | |
5 | %bcond_without java # Java support: JNA binding and JNI plugin (needs Java 8) | |
6 | %bcond_without glib # GLib/GObject binding | |
7 | %bcond_without lua # Lua (5.2) support: binding and plugin | |
8 | %bcond_without python2 # Python 2 support: binding and plugin | |
9 | %bcond_without python3 # Python 3 support: binding and plugin | |
10 | %bcond_without qt # Qt GUI | |
11 | ||
12 | Summary: A key/value pair database to store software configurations | |
13 | Summary(pl.UTF-8): Baza kluczy/wartości do przechowywania konfiguracji oprogramowania | |
14 | Name: elektra | |
15 | Version: 0.8.19 | |
16 | Release: 3 | |
17 | License: BSD | |
18 | Group: Applications/System | |
19 | Source0: http://www.libelektra.org/ftp/elektra/releases/%{name}-%{version}.tar.gz | |
20 | # Source0-md5: 6669e765c834e259fb7570f126b85d7e | |
21 | Patch0: %{name}-zsh.patch | |
22 | Patch1: %{name}-no-markdown.patch | |
23 | Patch2: %{name}-no-deb.patch | |
24 | URL: http://www.libelektra.org/ | |
25 | %if %{with qt} | |
26 | BuildRequires: Qt5Core-devel >= 5 | |
27 | BuildRequires: Qt5Gui-devel >= 5 | |
28 | BuildRequires: Qt5Qml-devel >= 5 | |
29 | BuildRequires: Qt5Quick-devel >= 5 | |
30 | BuildRequires: Qt5Test-devel >= 5 | |
31 | BuildRequires: Qt5Widgets-devel >= 5 | |
32 | %endif | |
33 | BuildRequires: augeas-devel >= 1.0 | |
34 | BuildRequires: boost-devel | |
35 | BuildRequires: cmake >= 2.8.8 | |
36 | BuildRequires: dbus-devel | |
37 | BuildRequires: doxygen | |
38 | BuildRequires: gettext-tools | |
39 | %{?with_glib:BuildRequires: glib2-devel >= 1:2.36} | |
40 | %{?with_glib:BuildRequires: gobject-introspection-devel >= 1.38} | |
41 | # for binding | |
42 | %{?with_java:BuildRequires: java-jna} | |
43 | %{?with_java:BuildRequires: jdk >= 1.8} | |
44 | # jawt for plugin | |
45 | %{?with_java:BuildRequires: jre-X11 >= 1.8} | |
46 | BuildRequires: libgcrypt-devel | |
47 | %{?with_qt:BuildRequires: libmarkdown-devel} | |
48 | BuildRequires: libstdc++-devel | |
49 | BuildRequires: libxml2-devel >= 2.0 | |
50 | BuildRequires: libxslt-progs | |
51 | %{?with_lua:BuildRequires: lua52-devel >= 5.2} | |
52 | BuildRequires: pkgconfig | |
53 | %{?with_python2:BuildRequires: python-devel >= 1:2.7} | |
54 | %{?with_python3:BuildRequires: python3-devel >= 1:3.2} | |
55 | BuildRequires: ronn | |
56 | BuildRequires: rpm-pythonprov | |
57 | BuildRequires: rpmbuild(macros) >= 1.612 | |
58 | BuildRequires: swig >= 2 | |
59 | %if %{with python2} || %{with python3} | |
60 | BuildRequires: swig-python >= 2 | |
61 | %endif | |
62 | BuildRequires: systemd-devel | |
63 | BuildRequires: tcl-devel | |
64 | BuildRequires: yajl-devel | |
65 | Requires: %{name}-libs = %{version}-%{release} | |
66 | Requires: mktemp | |
67 | Obsoletes: registry | |
68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
69 | ||
70 | %description | |
71 | The Elektra Project provides a framework to store generic | |
72 | configuration data in an hierarchical key-value pair database, instead | |
73 | of a human-readable only text file. | |
74 | ||
75 | This way any software can read/save his configuration using a | |
76 | consistent API. Also, applications can be aware of other applications | |
77 | configurations, leveraging easy application integration. | |
78 | ||
79 | %description -l pl.UTF-8 | |
80 | Projekt Elektra dostarcza szkielet do przechowywania typowych danych | |
81 | konfiguracyjnych w postaci klucz-wartość w hierarchicznej bazie | |
82 | danych, zamiast w pliku tekstowym czytelnym tylko dla człowieka. | |
83 | ||
84 | W ten sposób oprogramowanie może odczytywać/zapisywać konfigurację za | |
85 | pomocą spójnego API. Dodatkowo aplikacje mogą być zorientowane w | |
86 | konfiguracji innych aplikacji, ułatwiając ich integrację. | |
87 | ||
88 | %package gui | |
89 | Summary: Qt based GUI for Elektra | |
90 | Summary(pl.UTF-8): Oparty na Qt graficzny interfejs do Elektry | |
91 | Group: X11/Applications | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | ||
94 | %description gui | |
95 | Qt based GUI for Elektra. | |
96 | ||
97 | %description gui -l pl.UTF-8 | |
98 | Oparty na Qt graficzny interfejs do Elektry. | |
99 | ||
100 | %package plugin-jni | |
101 | Summary: Java JNI plugin for Elektra | |
102 | Summary(pl.UTF-8): Wtyczka Java JNI dla Elektry | |
103 | Group: Libraries | |
104 | Requires: %{name} = %{version}-%{release} | |
105 | # jawt | |
106 | Requires: jre-X11 >= 1.8 | |
107 | ||
108 | %description plugin-jni | |
109 | Java JNI plugin for Elektra. It allows to use plugins written in Java. | |
110 | ||
111 | %description plugin-jni -l pl.UTF-8 | |
112 | Wtyczka Java JNI dla Elektry. Pozwala na używanie wtyczek napisanych w | |
113 | Javie. | |
114 | ||
115 | %package plugin-lua | |
116 | Summary: Lua plugin for Elektra | |
117 | Summary(pl.UTF-8): Wtyczka Lua dla Elektry | |
118 | Group: Libraries | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | Requires: lua52-libs >= 5.2 | |
121 | ||
122 | %description plugin-lua | |
123 | Lua plugin for Elektra. It allows to use plugins written in Lua. | |
124 | ||
125 | %description plugin-lua -l pl.UTF-8 | |
126 | Wtyczka Lua dla Elektry. Pozwala na używanie wtyczek napisanych w Lua. | |
127 | ||
128 | %package plugin-python2 | |
129 | Summary: Python 2 plugin for Elektra | |
130 | Summary(pl.UTF-8): Wtyczka Python 2 dla Elektry | |
131 | Group: Libraries | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | Requires: python-libs >= 1:2.7 | |
134 | ||
135 | %description plugin-python2 | |
136 | Python 2 plugin for Elektra. It allows to use plugins written in | |
137 | Python 2. | |
138 | ||
139 | %description plugin-python2 -l pl.UTF-8 | |
140 | Wtyczka 2 Python dla Elektry. Pozwala na używanie wtyczek napisanych w | |
141 | Pythonie 2. | |
142 | ||
143 | %package plugin-python3 | |
144 | Summary: Python plugin for Elektra | |
145 | Summary(pl.UTF-8): Wtyczka Python dla Elektry | |
146 | Group: Libraries | |
147 | Requires: %{name} = %{version}-%{release} | |
148 | Requires: python3-libs >= 1:3.2 | |
149 | ||
150 | %description plugin-python3 | |
151 | Python 3 plugin for Elektra. It allows to use plugins written in | |
152 | Python 3. | |
153 | ||
154 | %description plugin-python3 -l pl.UTF-8 | |
155 | Wtyczka Python 3 dla Elektry. Pozwala na używanie wtyczek napisanych w | |
156 | Pythonie 3. | |
157 | ||
158 | %package -n bash-completion-elektra | |
159 | Summary: Bash completion for Elektra commands | |
160 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów dla poleceń z pakietu Elektra | |
161 | Group: Applications/Shells | |
162 | Requires: %{name} = %{version}-%{release} | |
163 | Requires: bash-completion | |
164 | %if "%{_rpmversion}" >= "5" | |
165 | BuildArch: noarch | |
166 | %endif | |
167 | ||
168 | %description -n bash-completion-elektra | |
169 | Bash completion for Elektra kdb command. | |
170 | ||
171 | %description -n bash-completion-elektra -l pl.UTF-8 | |
172 | Bashowe uzupełnianie parametrów dla polecenai kdb z pakietu Elektra. | |
173 | ||
174 | %package -n zsh-completion-elektra | |
175 | Summary: ZSH completion for Elektra commands | |
176 | Summary(pl.UTF-8): Uzupełnianie parametrów dla poleceń z pakietu Elektra w powłoce ZSH | |
177 | Group: Applications/Shells | |
178 | Requires: %{name} = %{version}-%{release} | |
179 | Requires: zsh | |
180 | %if "%{_rpmversion}" >= "5" | |
181 | BuildArch: noarch | |
182 | %endif | |
183 | ||
184 | %description -n zsh-completion-elektra | |
185 | ZSH completion for Elektra kdb command. | |
186 | ||
187 | %description -n zsh-completion-elektra -l pl.UTF-8 | |
188 | Uzupełnianie parametrów dla polecenai kdb z pakietu Elektra w powłoce | |
189 | ZSH. | |
190 | ||
191 | %package libs | |
192 | Summary: Elektra Project libraries | |
193 | Summary(pl.UTF-8): Biblioteki projektu Elektra | |
194 | Group: Libraries | |
195 | Obsoletes: elektra-cpp < 0.8 | |
196 | Conflicts: elektra < 0.7 | |
197 | ||
198 | %description libs | |
199 | The Elektra Project provides a framework to store generic | |
200 | configuration data in an hierarchical key-value pair database, instead | |
201 | of a human-readable only text file. | |
202 | ||
203 | This way any software can read/save his configuration using a | |
204 | consistent API. Also, applications can be aware of other applications | |
205 | configurations, leveraging easy application integration. | |
206 | ||
207 | This package contains Elektra shared libraries. | |
208 | ||
209 | %description libs -l pl.UTF-8 | |
210 | Projekt Elektra dostarcza szkielet do przechowywania typowych danych | |
211 | konfiguracyjnych w postaci klucz-wartość w hierarchicznej bazie | |
212 | danych, zamiast w pliku tekstowym czytelnym tylko dla człowieka. | |
213 | ||
214 | W ten sposób oprogramowanie może odczytywać/zapisywać konfigurację za | |
215 | pomocą spójnego API. Dodatkowo aplikacje mogą być zorientowane w | |
216 | konfiguracji innych aplikacji, ułatwiając ich integrację. | |
217 | ||
218 | Ten pakiet zawiera biblioteki współdzielone Elektry. | |
219 | ||
220 | %package devel | |
221 | Summary: Include files and API documentation for Elektra Project | |
222 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja API projektu Elektra | |
223 | Group: Development/Libraries | |
224 | Requires: %{name}-libs = %{version}-%{release} | |
225 | ||
226 | %description devel | |
227 | This package contains the include files and API manual pages to use | |
228 | the Elektra API in C. | |
229 | ||
230 | %description devel -l pl.UTF-8 | |
231 | Ten pakiet zawiera pliki nagłówkowe oraz strony podręcznika | |
232 | systemowego opisującego sposób użycia API Elektry w C. | |
233 | ||
234 | %package static | |
235 | Summary: Static libraries for Elektra Project | |
236 | Summary(pl.UTF-8): Statyczne biblioteki projektu Elektra | |
237 | Group: Development/Libraries | |
238 | Requires: %{name}-devel = %{version}-%{release} | |
239 | ||
240 | %description static | |
241 | This package contains static libraries for Elektra Project. | |
242 | ||
243 | %description static -l pl.UTF-8 | |
244 | Ten pakiet zawiera statyczne biblioteki projektu Elektra. | |
245 | ||
246 | %package cpp-devel | |
247 | Summary: Header files of C++ interface for Elektra library | |
248 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu C++ do biblioteki Elektra | |
249 | Group: Development/Libraries | |
250 | Requires: %{name}-devel = %{version}-%{release} | |
251 | Requires: libstdc++-devel | |
252 | Obsoletes: elektra-cpp-static < 0.8 | |
253 | ||
254 | %description cpp-devel | |
255 | Header files of C++ interface for Elektra library. | |
256 | ||
257 | %description cpp-devel -l pl.UTF-8 | |
258 | Pliki nagłówkowe interfejsu C++ do biblioteki Elektra. | |
259 | ||
260 | %package glib | |
261 | Summary: GLib/GObject binding for Elektra | |
262 | Summary(pl.UTF-8): Wiązanie GLib/GObject do Elektry | |
263 | Group: Libraries | |
264 | Requires: %{name}-libs = %{version}-%{release} | |
265 | Requires: glib2 >= 1:2.36 | |
266 | ||
267 | %description glib | |
268 | GLib/GObject binding for Elektra. | |
269 | ||
270 | %description glib -l pl.UTF-8 | |
271 | Wiązanie GLib/GObject do Elektry. | |
272 | ||
273 | %package glib-devel | |
274 | Summary: GLib/GObject binding for Elektra - development files | |
275 | Summary(pl.UTF-8): Wiązanie GLib/GObject do Elektry - pliki programistyczne | |
276 | Group: Libraries | |
277 | Requires: %{name}-devel = %{version}-%{release} | |
278 | Requires: glib2-devel >= 1:2.36 | |
279 | ||
280 | %description glib-devel | |
281 | GLib/GObject binding for Elektra - development files. | |
282 | ||
283 | %description glib-devel -l pl.UTF-8 | |
284 | Wiązanie GLib/GObject do Elektry - pliki programistyczne. | |
285 | ||
286 | %package -n java-elektra | |
287 | Summary: Java binding for Elektra | |
288 | Summary(pl.UTF-8): Wiązanie języka Java dla Elektry | |
289 | Group: Libraries | |
290 | Requires: %{name}-libs = %{version}-%{release} | |
291 | Requires: java-jna | |
292 | Requires: jre | |
293 | ||
294 | %description -n java-elektra | |
295 | Java binding for Elektra. | |
296 | ||
297 | %description -n java-elektra -l pl.UTF-8 | |
298 | Wiązanie języka Java dla Elektry. | |
299 | ||
300 | %package -n lua-elektra | |
301 | Summary: Lua binding for Elektra | |
302 | Summary(pl.UTF-8): Wiązanie języka Lua dla Elektry | |
303 | Group: Libraries | |
304 | Requires: %{name}-libs = %{version}-%{release} | |
305 | Requires: lua52-libs >= 5.2 | |
306 | ||
307 | %description -n lua-elektra | |
308 | Lua binding for Elektra. | |
309 | ||
310 | %description -n lua-elektra -l pl.UTF-8 | |
311 | Wiązanie języka Lua dla Elektry. | |
312 | ||
313 | %package -n lua-elektra-glib | |
314 | Summary: Lua/GI binding for Elektra | |
315 | Summary(pl.UTF-8): Wiązanie Lua/GI dla Elektry | |
316 | Group: Libraries | |
317 | Requires: %{name}-glib = %{version}-%{release} | |
318 | Requires: lua52-libs >= 5.2 | |
319 | #R: lua52-lgi ? | |
320 | ||
321 | %description -n lua-elektra-glib | |
322 | Lua/GI binding for Elektra. | |
323 | ||
324 | %description -n lua-elektra-glib -l pl.UTF-8 | |
325 | Wiązanie Lua/GI dla Elektry. | |
326 | ||
327 | %package -n python-elektra | |
328 | Summary: Python 2 binding for Elektra | |
329 | Summary(pl.UTF-8): Wiązanie Pythona 2 dla Elektry | |
330 | Group: Libraries | |
331 | Requires: %{name}-libs = %{version}-%{release} | |
332 | Requires: python-libs >= 1:2.7 | |
333 | ||
334 | %description -n python-elektra | |
335 | Python 2 binding for Elektra. | |
336 | ||
337 | %description -n python-elektra -l pl.UTF-8 | |
338 | Wiązanie Pythona 2 dla Elektry. | |
339 | ||
340 | %package -n python3-elektra | |
341 | Summary: Python 3 binding for Elektra | |
342 | Summary(pl.UTF-8): Wiązanie Pythona 3 dla Elektry | |
343 | Group: Libraries | |
344 | Requires: %{name}-libs = %{version}-%{release} | |
345 | Requires: python3-libs >= 1:3.2 | |
346 | ||
347 | %description -n python3-elektra | |
348 | Python 3 binding for Elektra. | |
349 | ||
350 | %description -n python3-elektra -l pl.UTF-8 | |
351 | Wiązanie Pythona 3 dla Elektry. | |
352 | ||
353 | %package -n python3-elektra-glib | |
354 | Summary: Python 3 GI binding for Elektra | |
355 | Summary(pl.UTF-8): Wiązanie Pythona 3 GI dla Elektry | |
356 | Group: Libraries | |
357 | Requires: %{name}-glib = %{version}-%{release} | |
358 | Requires: python3-pygobject3 >= 3 | |
359 | ||
360 | %description -n python3-elektra-glib | |
361 | Python 3 GI binding for Elektra. | |
362 | ||
363 | %description -n python3-elektra-glib -l pl.UTF-8 | |
364 | Wiązanie Pythona 3 GI dla Elektry. | |
365 | ||
366 | %prep | |
367 | %setup -q | |
368 | %patch0 -p1 | |
369 | %patch1 -p1 | |
370 | %patch2 -p1 | |
371 | ||
372 | %build | |
373 | install -d build | |
374 | cd build | |
375 | %cmake .. \ | |
376 | -DBINDINGS="cpp%{?with_glib:;glib%{?with_lua:;gi_lua}%{?with_python3:;gi_python}}%{?with_java:;jna}%{?with_lua:;swig_lua}%{?with_python2:;swig_python2}%{?with_python3:;swig_python}" \ | |
377 | %{!?with_full:-DBUILD_FULL=OFF} \ | |
378 | -DINSTALL_TESTING=FALSE \ | |
379 | -DPLUGINS=ALL \ | |
380 | -DTARGET_CMAKE_FOLDER=%{_datadir}/cmake/Modules \ | |
381 | -DTOOLS="kdb;race%{?with_gen:;gen}%{?with_qt:;qt-gui}" \ | |
382 | -DBUILD_STATIC=ON | |
383 | ||
384 | %{__make} -j1 | |
385 | ||
386 | %install | |
387 | rm -rf $RPM_BUILD_ROOT | |
388 | ||
389 | %{__make} -C build install \ | |
390 | DESTDIR=$RPM_BUILD_ROOT | |
391 | ||
392 | install -D src/plugins/xmltool/xmlschema/elektra.xsd $RPM_BUILD_ROOT%{_datadir}/sgml/elektra/elektra.xsd | |
393 | ||
394 | install -d $RPM_BUILD_ROOT/etc/bash_completion.d | |
395 | %{__mv} $RPM_BUILD_ROOT{%{bash_compdir}/kdb,/etc/bash_completion.d/kdb} | |
396 | ||
397 | %if %{with python2} | |
398 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
399 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
400 | %py_postclean | |
401 | %endif | |
402 | ||
403 | %if %{with python3} | |
404 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} | |
405 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
406 | %endif | |
407 | ||
408 | # "static" variant (with libelektra-static and thus all plugins linked in); | |
409 | # we don't need it | |
410 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/kdb-static | |
411 | ||
412 | # prepare docs | |
413 | %{__rm} -rf installed-doc | |
414 | install -d installed-doc | |
415 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-api installed-doc/elektra-api | |
416 | ||
417 | # these don't belong to man3 | |
418 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{README_md,doc_*_md,md_doc_*,md_src_*,md_scripts_README,src_libs_getenv_README_md}.3elektra | |
419 | # internal, not part of API | |
420 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/doc.h.3elektra | |
421 | %{__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,trie}.c.3elektra | |
422 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{benchmark_plugins,examples_backend}.cpp.3elektra | |
423 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{internaldatastructs,std_hash_*_,trie,vheap,vstack}.3elektra | |
424 | ||
425 | %clean | |
426 | rm -rf $RPM_BUILD_ROOT | |
427 | ||
428 | %post libs -p /sbin/ldconfig | |
429 | %postun libs -p /sbin/ldconfig | |
430 | ||
431 | %post glib -p /sbin/ldconfig | |
432 | %postun glib -p /sbin/ldconfig | |
433 | ||
434 | %files | |
435 | %defattr(644,root,root,755) | |
436 | %doc doc/{AUTHORS,DESIGN.md,GOALS.md,NEWS.md,SECURITY.md,todo} | |
437 | # doc/standards installed-doc/scripts | |
438 | %attr(755,root,root) %{_bindir}/kdb | |
439 | %if %{with full} | |
440 | %attr(755,root,root) %{_bindir}/kdb-full | |
441 | %endif | |
442 | %dir %{_libdir}/elektra | |
443 | # R: augeas-libs | |
444 | %attr(755,root,root) %{_libdir}/elektra/libelektra-augeas.so | |
445 | %attr(755,root,root) %{_libdir}/elektra/libelektra-base64.so | |
446 | %attr(755,root,root) %{_libdir}/elektra/libelektra-blockresolver.so | |
447 | %attr(755,root,root) %{_libdir}/elektra/libelektra-boolean.so | |
448 | %attr(755,root,root) %{_libdir}/elektra/libelektra-c.so | |
449 | %attr(755,root,root) %{_libdir}/elektra/libelektra-cachefilter.so | |
450 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ccode.so | |
451 | %attr(755,root,root) %{_libdir}/elektra/libelektra-conditionals.so | |
452 | %attr(755,root,root) %{_libdir}/elektra/libelektra-constants.so | |
453 | %attr(755,root,root) %{_libdir}/elektra/libelektra-counter.so | |
454 | # R: libgcrypt | |
455 | %attr(755,root,root) %{_libdir}/elektra/libelektra-crypto_gcrypt.so | |
456 | %attr(755,root,root) %{_libdir}/elektra/libelektra-crypto_openssl.so | |
457 | %attr(755,root,root) %{_libdir}/elektra/libelektra-csvstorage.so | |
458 | %attr(755,root,root) %{_libdir}/elektra/libelektra-curlget.so | |
459 | # R: dbus | |
460 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dbus.so | |
461 | %attr(755,root,root) %{_libdir}/elektra/libelektra-desktop.so | |
462 | %attr(755,root,root) %{_libdir}/elektra/libelektra-doc.so | |
463 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dpkg.so | |
464 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dump.so | |
465 | %attr(755,root,root) %{_libdir}/elektra/libelektra-enum.so | |
466 | %attr(755,root,root) %{_libdir}/elektra/libelektra-error.so | |
467 | %attr(755,root,root) %{_libdir}/elektra/libelektra-fcrypt.so | |
468 | %attr(755,root,root) %{_libdir}/elektra/libelektra-filecheck.so | |
469 | %attr(755,root,root) %{_libdir}/elektra/libelektra-fstab.so | |
470 | %attr(755,root,root) %{_libdir}/elektra/libelektra-gitresolver.so | |
471 | %attr(755,root,root) %{_libdir}/elektra/libelektra-glob.so | |
472 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hexcode.so | |
473 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hidden.so | |
474 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hosts.so | |
475 | %attr(755,root,root) %{_libdir}/elektra/libelektra-iconv.so | |
476 | # uses internal inih library | |
477 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ini.so | |
478 | %attr(755,root,root) %{_libdir}/elektra/libelektra-iterate.so | |
479 | # R: systemd-libs | |
480 | %attr(755,root,root) %{_libdir}/elektra/libelektra-journald.so | |
481 | %attr(755,root,root) %{_libdir}/elektra/libelektra-keytometa.so | |
482 | %attr(755,root,root) %{_libdir}/elektra/libelektra-line.so | |
483 | %attr(755,root,root) %{_libdir}/elektra/libelektra-lineendings.so | |
484 | %attr(755,root,root) %{_libdir}/elektra/libelektra-list.so | |
485 | %attr(755,root,root) %{_libdir}/elektra/libelektra-logchange.so | |
486 | %attr(755,root,root) %{_libdir}/elektra/libelektra-mathcheck.so | |
487 | %attr(755,root,root) %{_libdir}/elektra/libelektra-mozprefs.so | |
488 | %attr(755,root,root) %{_libdir}/elektra/libelektra-network.so | |
489 | %attr(755,root,root) %{_libdir}/elektra/libelektra-noresolver.so | |
490 | # uses internal nickel library | |
491 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ni.so | |
492 | %attr(755,root,root) %{_libdir}/elektra/libelektra-null.so | |
493 | %attr(755,root,root) %{_libdir}/elektra/libelektra-passwd.so | |
494 | %attr(755,root,root) %{_libdir}/elektra/libelektra-path.so | |
495 | %attr(755,root,root) %{_libdir}/elektra/libelektra-profile.so | |
496 | %attr(755,root,root) %{_libdir}/elektra/libelektra-regexstore.so | |
497 | %attr(755,root,root) %{_libdir}/elektra/libelektra-rename.so | |
498 | %attr(755,root,root) %{_libdir}/elektra/libelektra-resolver.so | |
499 | %attr(755,root,root) %{_libdir}/elektra/libelektra-resolver_fm_*.so | |
500 | %attr(755,root,root) %{_libdir}/elektra/libelektra-required.so | |
501 | %attr(755,root,root) %{_libdir}/elektra/libelektra-semlock.so | |
502 | %attr(755,root,root) %{_libdir}/elektra/libelektra-shell.so | |
503 | %attr(755,root,root) %{_libdir}/elektra/libelektra-simplespeclang.so | |
504 | %attr(755,root,root) %{_libdir}/elektra/libelektra-simpleini.so | |
505 | %attr(755,root,root) %{_libdir}/elektra/libelektra-spec.so | |
506 | %attr(755,root,root) %{_libdir}/elektra/libelektra-storage.so | |
507 | %attr(755,root,root) %{_libdir}/elektra/libelektra-struct.so | |
508 | %attr(755,root,root) %{_libdir}/elektra/libelektra-sync.so | |
509 | %attr(755,root,root) %{_libdir}/elektra/libelektra-syslog.so | |
510 | %attr(755,root,root) %{_libdir}/elektra/libelektra-tcl.so | |
511 | %attr(755,root,root) %{_libdir}/elektra/libelektra-template.so | |
512 | %attr(755,root,root) %{_libdir}/elektra/libelektra-timeofday.so | |
513 | %attr(755,root,root) %{_libdir}/elektra/libelektra-tracer.so | |
514 | %attr(755,root,root) %{_libdir}/elektra/libelektra-type.so | |
515 | %attr(755,root,root) %{_libdir}/elektra/libelektra-uname.so | |
516 | %attr(755,root,root) %{_libdir}/elektra/libelektra-validation.so | |
517 | %attr(755,root,root) %{_libdir}/elektra/libelektra-wresolver.so | |
518 | # R: libxml2 | |
519 | %attr(755,root,root) %{_libdir}/elektra/libelektra-xmltool.so | |
520 | # R: yajl | |
521 | %attr(755,root,root) %{_libdir}/elektra/libelektra-yajl.so | |
522 | %dir %{_libdir}/elektra/tool_exec | |
523 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/benchmark-createtree | |
524 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/configure-firefox | |
525 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-fstab | |
526 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-hosts | |
527 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-inittab | |
528 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/convert-users | |
529 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektra-merge | |
530 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektra-mount | |
531 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektra-umount | |
532 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektrify-open | |
533 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/elektrify-getenv | |
534 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/example-xorg | |
535 | %dir %{_libdir}/elektra/tool_exec/ffconfig | |
536 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/setupConfig | |
537 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/setupHomepage | |
538 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/setupProxy | |
539 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/ffconfig/writeConfigFiles | |
540 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/find-tools | |
541 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/install-sh-completion | |
542 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/list-tools | |
543 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-augeas | |
544 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-info | |
545 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-kde | |
546 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/mount-openicc | |
547 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/race | |
548 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/umount-all | |
549 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/upgrade-bootstrap | |
550 | %{_datadir}/sgml/elektra | |
551 | %{_mandir}/man1/kdb.1* | |
552 | %{_mandir}/man1/kdb-check.1* | |
553 | %{_mandir}/man1/kdb-convert.1* | |
554 | %{_mandir}/man1/kdb-cp.1* | |
555 | %{_mandir}/man1/kdb-editor.1* | |
556 | %{_mandir}/man1/kdb-export.1* | |
557 | %{_mandir}/man1/kdb-file.1* | |
558 | %{_mandir}/man1/kdb-find-tools.1* | |
559 | %{_mandir}/man1/kdb-fstab.1* | |
560 | %{_mandir}/man1/kdb-get.1* | |
561 | %{_mandir}/man1/kdb-getmeta.1* | |
562 | %{_mandir}/man1/kdb-global-mount.1* | |
563 | %{_mandir}/man1/kdb-help.1* | |
564 | %{_mandir}/man1/kdb-import.1* | |
565 | %{_mandir}/man1/kdb-info.1* | |
566 | %{_mandir}/man1/kdb-introduction.1* | |
567 | %{_mandir}/man1/kdb-list.1* | |
568 | %{_mandir}/man1/kdb-list-tools.1* | |
569 | %{_mandir}/man1/kdb-ls.1* | |
570 | %{_mandir}/man1/kdb-lsmeta.1* | |
571 | %{_mandir}/man1/kdb-merge.1* | |
572 | %{_mandir}/man1/kdb-mount.1* | |
573 | %{_mandir}/man1/kdb-mv.1* | |
574 | %{_mandir}/man1/kdb-remount.1* | |
575 | %{_mandir}/man1/kdb-rm.1* | |
576 | %{_mandir}/man1/kdb-set.1* | |
577 | %{_mandir}/man1/kdb-setmeta.1* | |
578 | %{_mandir}/man1/kdb-sget.1* | |
579 | %{_mandir}/man1/kdb-shell.1* | |
580 | %{_mandir}/man1/kdb-spec-mount.1* | |
581 | %{_mandir}/man1/kdb-test.1* | |
582 | %{_mandir}/man1/kdb-umount.1* | |
583 | %{_mandir}/man1/kdb-vset.1* | |
584 | %{_mandir}/man7/elektra-*.7* | |
585 | ||
586 | %if 0 | |
587 | %files gen ? | |
588 | %defattr(644,root,root,755) | |
589 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/gen | |
590 | %{py_sitescriptdir}/elektra_gen-%{version}-py*.egg-info | |
591 | # FIXME: should be in elektra_gen subdir | |
592 | %{py_sitescriptdir}/support | |
593 | %{_datadir}/elektra/templates | |
594 | %endif | |
595 | ||
596 | %files gui | |
597 | %defattr(644,root,root,755) | |
598 | %attr(755,root,root) %{_bindir}/elektra-qt-editor | |
599 | %attr(755,root,root) %{_libdir}/elektra/tool_exec/qt-gui | |
600 | %{_datadir}/appdata/org.libelektra.elektra-qt-editor.appdata.xml | |
601 | %{_desktopdir}/org.libelektra.elektra-qt-editor.desktop | |
602 | %{_iconsdir}/hicolor/scalable/apps/elektra-symbolic.svg | |
603 | %{_iconsdir}/hicolor/scalable/apps/elektra.svg | |
604 | %{_mandir}/man1/kdb-qt-gui.1* | |
605 | ||
606 | %if %{with java} | |
607 | %files plugin-jni | |
608 | %defattr(644,root,root,755) | |
609 | # R: jre with jawt | |
610 | %attr(755,root,root) %{_libdir}/elektra/libelektra-jni.so | |
611 | %endif | |
612 | ||
613 | %if %{with lua} | |
614 | %files plugin-lua | |
615 | %defattr(644,root,root,755) | |
616 | # R: lua52-libs | |
617 | %attr(755,root,root) %{_libdir}/elektra/libelektra-lua.so | |
618 | %endif | |
619 | ||
620 | %if %{with python2} | |
621 | %files plugin-python2 | |
622 | %defattr(644,root,root,755) | |
623 | # R: python-libs | |
624 | %attr(755,root,root) %{_libdir}/elektra/libelektra-python2.so | |
625 | %endif | |
626 | ||
627 | %if %{with python3} | |
628 | %files plugin-python3 | |
629 | %defattr(644,root,root,755) | |
630 | # R: python3-libs | |
631 | %attr(755,root,root) %{_libdir}/elektra/libelektra-python.so | |
632 | %endif | |
633 | ||
634 | %files -n bash-completion-elektra | |
635 | %defattr(644,root,root,755) | |
636 | /etc/bash_completion.d/kdb | |
637 | ||
638 | %files -n zsh-completion-elektra | |
639 | %defattr(644,root,root,755) | |
640 | %{_datadir}/zsh/site-functions/_kdb | |
641 | ||
642 | %files libs | |
643 | %defattr(644,root,root,755) | |
644 | %attr(755,root,root) %{_libdir}/libelektra.so.*.*.* | |
645 | %attr(755,root,root) %ghost %{_libdir}/libelektra.so.4 | |
646 | %attr(755,root,root) %{_libdir}/libelektra-core.so.*.*.* | |
647 | %attr(755,root,root) %ghost %{_libdir}/libelektra-core.so.4 | |
648 | %attr(755,root,root) %{_libdir}/libelektra-ease.so.*.*.* | |
649 | %attr(755,root,root) %ghost %{_libdir}/libelektra-ease.so.4 | |
650 | %attr(755,root,root) %{_libdir}/libelektra-kdb.so.*.*.* | |
651 | %attr(755,root,root) %ghost %{_libdir}/libelektra-kdb.so.4 | |
652 | %attr(755,root,root) %{_libdir}/libelektra-meta.so.*.*.* | |
653 | %attr(755,root,root) %ghost %{_libdir}/libelektra-meta.so.4 | |
654 | %attr(755,root,root) %{_libdir}/libelektra-plugin.so.*.*.* | |
655 | %attr(755,root,root) %ghost %{_libdir}/libelektra-plugin.so.4 | |
656 | %attr(755,root,root) %{_libdir}/libelektra-proposal.so.*.*.* | |
657 | %attr(755,root,root) %ghost %{_libdir}/libelektra-proposal.so.4 | |
658 | %attr(755,root,root) %{_libdir}/libelektratools.so.*.*.* | |
659 | %attr(755,root,root) %ghost %{_libdir}/libelektratools.so.2 | |
660 | %if %{with full} | |
661 | %attr(755,root,root) %{_libdir}/libelektra-full.so.*.*.* | |
662 | %attr(755,root,root) %ghost %{_libdir}/libelektra-full.so.4 | |
663 | %endif | |
664 | ||
665 | %files devel | |
666 | %defattr(644,root,root,755) | |
667 | %doc doc/API.md installed-doc/elektra-api/html | |
668 | %attr(755,root,root) %{_libdir}/libelektra.so | |
669 | %attr(755,root,root) %{_libdir}/libelektra-core.so | |
670 | %attr(755,root,root) %{_libdir}/libelektra-ease.so | |
671 | %attr(755,root,root) %{_libdir}/libelektra-kdb.so | |
672 | %attr(755,root,root) %{_libdir}/libelektra-meta.so | |
673 | %attr(755,root,root) %{_libdir}/libelektra-plugin.so | |
674 | %attr(755,root,root) %{_libdir}/libelektra-proposal.so | |
675 | %attr(755,root,root) %{_libdir}/libelektratools.so | |
676 | %if %{with full} | |
677 | %attr(755,root,root) %{_libdir}/libelektra-full.so | |
678 | %endif | |
679 | %dir %{_includedir}/elektra | |
680 | %{_includedir}/elektra/kdb*.h | |
681 | %{_pkgconfigdir}/elektra.pc | |
682 | %{_datadir}/cmake/Modules/ElektraConfig*.cmake | |
683 | %{_datadir}/cmake/Modules/ElektraTargetsLibelektra*.cmake | |
684 | %{_mandir}/man3/api.3elektra* | |
685 | %{_mandir}/man3/deprecated.3elektra* | |
686 | %{_mandir}/man3/kdb.3elektra* | |
687 | %{_mandir}/man3/kdb.c.3elektra* | |
688 | %{_mandir}/man3/kdb_*.3elektra* | |
689 | %{_mandir}/man3/kdb*.h.3elektra* | |
690 | %{_mandir}/man3/key.3elektra* | |
691 | %{_mandir}/man3/keymeta.3elektra* | |
692 | %{_mandir}/man3/keyname.3elektra* | |
693 | %{_mandir}/man3/keyset.3elektra* | |
694 | %{_mandir}/man3/keytest.3elektra* | |
695 | %{_mandir}/man3/keyvalue.3elektra* | |
696 | %{_mandir}/man3/key.c.3elektra* | |
697 | %{_mandir}/man3/keyhelpers.c.3elektra* | |
698 | %{_mandir}/man3/keymeta.c.3elektra* | |
699 | %{_mandir}/man3/keyset.c.3elektra* | |
700 | %{_mandir}/man3/keytest.c.3elektra* | |
701 | %{_mandir}/man3/keyvalue.c.3elektra* | |
702 | %{_mandir}/man3/meta.3elektra* | |
703 | %{_mandir}/man3/plugin.3elektra* | |
704 | %{_mandir}/man3/proposal.3elektra* | |
705 | ||
706 | %files static | |
707 | %defattr(644,root,root,755) | |
708 | %{_libdir}/libelektra-static.a | |
709 | %{_libdir}/libelektratools-static.a | |
710 | ||
711 | %files cpp-devel | |
712 | %defattr(644,root,root,755) | |
713 | %{_includedir}/elektra/*.hpp | |
714 | %{_includedir}/elektra/helper | |
715 | %{_includedir}/elektra/merging | |
716 | # libelektratools API man pages | |
717 | %{_mandir}/man3/automergeconfiguration.cpp.3elektra* | |
718 | %{_mandir}/man3/automergeconfiguration.hpp.3elektra* | |
719 | %{_mandir}/man3/automergestrategy.cpp.3elektra* | |
720 | %{_mandir}/man3/automergestrategy.hpp.3elektra* | |
721 | %{_mandir}/man3/backend.hpp.3elektra* | |
722 | %{_mandir}/man3/backendbuilder.cpp.3elektra* | |
723 | %{_mandir}/man3/backendbuilder.hpp.3elektra* | |
724 | %{_mandir}/man3/backendparser.cpp.3elektra* | |
725 | %{_mandir}/man3/backendparser.hpp.3elektra* | |
726 | %{_mandir}/man3/backends.cpp.3elektra* | |
727 | %{_mandir}/man3/backends.hpp.3elektra* | |
728 | %{_mandir}/man3/comparison.cpp.3elektra* | |
729 | %{_mandir}/man3/comparison.hpp.3elektra* | |
730 | %{_mandir}/man3/importmergeconfiguration.cpp.3elektra* | |
731 | %{_mandir}/man3/importmergeconfiguration.hpp.3elektra* | |
732 | %{_mandir}/man3/interactivemergestrategy.cpp.3elektra* | |
733 | %{_mandir}/man3/interactivemergestrategy.hpp.3elektra* | |
734 | %{_mandir}/man3/kdb*.hpp.3elektra* | |
735 | %{_mandir}/man3/key*.hpp.3elektra* | |
736 | %{_mandir}/man3/keyhelper.cpp.3elektra* | |
737 | %{_mandir}/man3/mergeconfiguration.hpp.3elektra* | |
738 | %{_mandir}/man3/mergeconflict.hpp.3elektra* | |
739 | %{_mandir}/man3/mergeconflictstrategy.cpp.3elektra* | |
740 | %{_mandir}/man3/mergeconflictstrategy.hpp.3elektra* | |
741 | %{_mandir}/man3/mergeresult.cpp.3elektra* | |
742 | %{_mandir}/man3/mergeresult.hpp.3elektra* | |
743 | %{_mandir}/man3/mergetask.hpp.3elektra* | |
744 | %{_mandir}/man3/mergetestutils.cpp.3elektra* | |
745 | %{_mandir}/man3/merging.cpp.3elektra* | |
746 | %{_mandir}/man3/mergingkdb.cpp.3elektra* | |
747 | %{_mandir}/man3/mergingkdb.hpp.3elektra* | |
748 | %{_mandir}/man3/metamergestrategy.cpp.3elektra* | |
749 | %{_mandir}/man3/metamergestrategy.hpp.3elektra* | |
750 | %{_mandir}/man3/newkeystrategy.cpp.3elektra* | |
751 | %{_mandir}/man3/newkeystrategy.hpp.3elektra* | |
752 | %{_mandir}/man3/onesidemergeconfiguration.cpp.3elektra* | |
753 | %{_mandir}/man3/onesidemergeconfiguration.hpp.3elektra* | |
754 | %{_mandir}/man3/onesidestrategy.cpp.3elektra* | |
755 | %{_mandir}/man3/onesidestrategy.hpp.3elektra* | |
756 | %{_mandir}/man3/onesidevaluestrategy.cpp.3elektra* | |
757 | %{_mandir}/man3/onesidevaluestrategy.hpp.3elektra* | |
758 | %{_mandir}/man3/overwritemergeconfiguration.cpp.3elektra* | |
759 | %{_mandir}/man3/overwritemergeconfiguration.hpp.3elektra* | |
760 | %{_mandir}/man3/modules.cpp.3elektra* | |
761 | %{_mandir}/man3/modules.hpp.3elektra* | |
762 | %{_mandir}/man3/plugin.cpp.3elektra* | |
763 | %{_mandir}/man3/plugin.hpp.3elektra* | |
764 | %{_mandir}/man3/plugindatabase.cpp.3elektra* | |
765 | %{_mandir}/man3/plugindatabase.hpp.3elektra* | |
766 | %{_mandir}/man3/plugins.cpp.3elektra* | |
767 | %{_mandir}/man3/plugins.hpp.3elektra* | |
768 | %{_mandir}/man3/pluginspec.cpp.3elektra* | |
769 | %{_mandir}/man3/pluginspec.hpp.3elektra* | |
770 | %{_mandir}/man3/specreader.hpp.3elektra* | |
771 | %{_mandir}/man3/src_backend.cpp.3elektra* | |
772 | %{_mandir}/man3/testtool_*.cpp.3elektra* | |
773 | %{_mandir}/man3/threewaymerge.cpp.3elektra* | |
774 | %{_mandir}/man3/threewaymerge.hpp.3elektra* | |
775 | %{_mandir}/man3/toolexcept.hpp.3elektra* | |
776 | ||
777 | %if %{with glib} | |
778 | %files glib | |
779 | %defattr(644,root,root,755) | |
780 | %attr(755,root,root) %{_libdir}/libgelektra-4.0.so | |
781 | %{_libdir}/girepository-1.0/GElektra-4.0.typelib | |
782 | ||
783 | %files glib-devel | |
784 | %defattr(644,root,root,755) | |
785 | %{_datadir}/gir-1.0/GElektra-4.0.gir | |
786 | %{_includedir}/elektra/gelektra-*.h | |
787 | %{_pkgconfigdir}/gelektra-4.0.pc | |
788 | %endif | |
789 | ||
790 | %if %{with java} | |
791 | %files -n java-elektra | |
792 | %defattr(644,root,root,755) | |
793 | %{_javadir}/libelektra-1.jar | |
794 | %{_javadir}/libelektra.jar | |
795 | %endif | |
796 | ||
797 | %if %{with lua} | |
798 | %files -n lua-elektra | |
799 | %defattr(644,root,root,755) | |
800 | %attr(755,root,root) %{_libdir}/lua/5.2/kdb.so | |
801 | ||
802 | %if %{with glib} | |
803 | %files -n lua-elektra-glib | |
804 | %defattr(644,root,root,755) | |
805 | %dir %{_datadir}/lua/5.2/lgi | |
806 | %dir %{_datadir}/lua/5.2/lgi/override | |
807 | %{_datadir}/lua/5.2/lgi/override/GElektra.lua | |
808 | %endif | |
809 | %endif | |
810 | ||
811 | %if %{with python2} | |
812 | %files -n python-elektra | |
813 | %defattr(644,root,root,755) | |
814 | %attr(755,root,root) %{py_sitedir}/_kdb.so | |
815 | %{py_sitedir}/kdb.py[co] | |
816 | %endif | |
817 | ||
818 | %if %{with python3} | |
819 | %files -n python3-elektra | |
820 | %defattr(644,root,root,755) | |
821 | %attr(755,root,root) %{py3_sitedir}/_kdb.so | |
822 | %{py3_sitedir}/kdb.py | |
823 | %{py3_sitedir}/__pycache__/kdb.cpython-*.py[co] | |
824 | ||
825 | %if %{with glib} | |
826 | %files -n python3-elektra-glib | |
827 | %defattr(644,root,root,755) | |
828 | %{py3_sitedir}/gi/overrides/GElektra.py | |
829 | %{py3_sitedir}/gi/overrides/__pycache__/GElektra.cpython-*.py[co] | |
830 | %endif | |
831 | %endif |