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