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