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