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