]>
Commit | Line | Data |
---|---|---|
f33e068e | 1 | # TODO: use system nickel (in src/plugins/ni) |
de7f9f03 JB |
2 | # |
3 | # Conditonal build: | |
f33e068e | 4 | %bcond_with full # "full" variant (libelektra-full with all plugins linked in) |
de7f9f03 | 5 | # |
b511c548 | 6 | Summary: A key/value pair database to store software configurations |
3afb30a1 | 7 | Summary(pl.UTF-8): Baza kluczy/wartości do przechowywania konfiguracji oprogramowania |
08a1423c | 8 | Name: elektra |
f33e068e JB |
9 | Version: 0.8.5 |
10 | Release: 1 | |
08a1423c | 11 | License: BSD |
b511c548 | 12 | Group: Applications/System |
de7f9f03 | 13 | Source0: http://www.libelektra.org/ftp/elektra/releases/%{name}-%{version}.tar.gz |
f33e068e | 14 | # Source0-md5: 6fe4a48d70cefc04c04639e5d85a0ddc |
de7f9f03 | 15 | Patch0: %{name}-elektraenv.patch |
de7f9f03 | 16 | URL: http://www.libelektra.org/ |
f33e068e JB |
17 | BuildRequires: cmake >= 2.6 |
18 | BuildRequires: dbus-devel | |
de7f9f03 JB |
19 | BuildRequires: doxygen |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: libstdc++-devel | |
731cdbee | 22 | BuildRequires: libxml2-devel |
b0fec8fa | 23 | BuildRequires: libxslt-progs |
de7f9f03 JB |
24 | BuildRequires: pkgconfig |
25 | %{?with_python:BuildRequires: python-devel} | |
f33e068e | 26 | BuildRequires: yajl-devel |
de7f9f03 | 27 | Requires: %{name}-libs = %{version}-%{release} |
731cdbee | 28 | Requires: mktemp |
08a1423c | 29 | Obsoletes: registry |
a1ae6c6c | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
b511c548 | 33 | The Elektra Project provides a framework to store generic |
34 | configuration data in an hierarchical key-value pair database, instead | |
35 | of a human-readable only text file. | |
a1ae6c6c | 36 | |
37 | This way any software can read/save his configuration using a | |
38 | consistent API. Also, applications can be aware of other applications | |
39 | configurations, leveraging easy application integration. | |
40 | ||
9b93ecfb | 41 | %description -l pl.UTF-8 |
ff4dd69b | 42 | Projekt Elektra dostarcza szkielet do przechowywania typowych danych |
9b93ecfb JR |
43 | konfiguracyjnych w postaci klucz-wartość w hierarchicznej bazie |
44 | danych, zamiast w pliku tekstowym czytelnym tylko dla człowieka. | |
85fe0e6b | 45 | |
9b93ecfb JR |
46 | W ten sposób oprogramowanie może odczytywać/zapisywać konfigurację za |
47 | pomocą spójnego API. Dodatkowo aplikacje mogą być zorientowane w | |
48 | konfiguracji innych aplikacji, ułatwiając ich integrację. | |
a1ae6c6c | 49 | |
de7f9f03 JB |
50 | %package libs |
51 | Summary: Elektra Project libraries | |
52 | Summary(pl.UTF-8): Biblioteki projektu Elektra | |
53 | Group: Libraries | |
f33e068e | 54 | Obsoletes: elektra-cpp < 0.8 |
de7f9f03 | 55 | Conflicts: elektra < 0.7 |
a1ae6c6c | 56 | |
de7f9f03 | 57 | %description libs |
b511c548 | 58 | The Elektra Project provides a framework to store generic |
59 | configuration data in an hierarchical key-value pair database, instead | |
60 | of a human-readable only text file. | |
a1ae6c6c | 61 | |
62 | This way any software can read/save his configuration using a | |
63 | consistent API. Also, applications can be aware of other applications | |
64 | configurations, leveraging easy application integration. | |
65 | ||
de7f9f03 | 66 | This package contains Elektra shared libraries. |
a1ae6c6c | 67 | |
de7f9f03 | 68 | %description libs -l pl.UTF-8 |
ff4dd69b | 69 | Projekt Elektra dostarcza szkielet do przechowywania typowych danych |
9b93ecfb JR |
70 | konfiguracyjnych w postaci klucz-wartość w hierarchicznej bazie |
71 | danych, zamiast w pliku tekstowym czytelnym tylko dla człowieka. | |
85fe0e6b | 72 | |
9b93ecfb JR |
73 | W ten sposób oprogramowanie może odczytywać/zapisywać konfigurację za |
74 | pomocą spójnego API. Dodatkowo aplikacje mogą być zorientowane w | |
75 | konfiguracji innych aplikacji, ułatwiając ich integrację. | |
85fe0e6b | 76 | |
de7f9f03 JB |
77 | Ten pakiet zawiera biblioteki współdzielone Elektry. |
78 | ||
79 | %package devel | |
80 | Summary: Include files and API documentation for Elektra Project | |
81 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja API projektu Elektra | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-libs = %{version}-%{release} | |
84 | ||
85 | %description devel | |
86 | This package contains the include files and API manual pages to use | |
87 | the Elektra API in C. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
9b93ecfb JR |
90 | Ten pakiet zawiera pliki nagłówkowe oraz strony podręcznika |
91 | systemowego opisującego sposób użycia API Elektry w C. | |
a1ae6c6c | 92 | |
b511c548 | 93 | %package static |
de7f9f03 JB |
94 | Summary: Static libraries for Elektra Project |
95 | Summary(pl.UTF-8): Statyczne biblioteki projektu Elektra | |
85fe0e6b | 96 | Group: Development/Libraries |
de7f9f03 | 97 | Requires: %{name}-devel = %{version}-%{release} |
a1ae6c6c | 98 | |
b511c548 | 99 | %description static |
de7f9f03 | 100 | This package contains static libraries for Elektra Project. |
a1ae6c6c | 101 | |
de7f9f03 JB |
102 | %description static -l pl.UTF-8 |
103 | Ten pakiet zawiera statyczne biblioteki projektu Elektra. | |
a1ae6c6c | 104 | |
de7f9f03 JB |
105 | %package cpp-devel |
106 | Summary: Header files of C++ interface for Elektra library | |
107 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu C++ do biblioteki Elektra | |
108 | Group: Development/Libraries | |
f33e068e | 109 | Requires: %{name}-devel = %{version}-%{release} |
de7f9f03 | 110 | Requires: libstdc++-devel |
f33e068e | 111 | Obsoletes: elektra-cpp-static < 0.8 |
de7f9f03 JB |
112 | |
113 | %description cpp-devel | |
114 | Header files of C++ interface for Elektra library. | |
115 | ||
116 | %description cpp-devel -l pl.UTF-8 | |
117 | Pliki nagłówkowe interfejsu C++ do biblioteki Elektra. | |
118 | ||
a1ae6c6c | 119 | %prep |
de7f9f03 | 120 | %setup -q |
b511c548 | 121 | %patch0 -p1 |
a1ae6c6c | 122 | |
123 | %build | |
f33e068e JB |
124 | install -d build |
125 | cd build | |
126 | %cmake .. \ | |
127 | %{!?with_full:-DBUILD_FULL=OFF} \ | |
128 | -DPLUGINS=ALL \ | |
129 | -DTARGET_CMAKE_FOLDER=%{_datadir}/cmake/Modules | |
130 | ||
de7f9f03 | 131 | %{__make} |
a1ae6c6c | 132 | |
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
eeac539a | 135 | install -d $RPM_BUILD_ROOT/etc/sysconfig |
ff4dd69b | 136 | |
f33e068e JB |
137 | %{__make} -C build install \ |
138 | DESTDIR=$RPM_BUILD_ROOT | |
de7f9f03 | 139 | |
f33e068e JB |
140 | echo 'RUN="no"' > $RPM_BUILD_ROOT/etc/sysconfig/elektra |
141 | install -D scripts/elektraenv.sh $RPM_BUILD_ROOT/etc/profile.d/elektraenv.sh | |
142 | install -D src/plugins/xmltool/xmlschema/elektra.xsd $RPM_BUILD_ROOT%{_datadir}/sgml/elektra/elektra.xsd | |
143 | ||
144 | # just tests | |
a8407689 | 145 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/lib/elektra/tool_exec \ |
f33e068e | 146 | $RPM_BUILD_ROOT%{_datadir}/elektra/test_data |
a1ae6c6c | 147 | |
de7f9f03 | 148 | # prepare docs |
f33e068e | 149 | %{__rm} -rf installed-doc |
de7f9f03 | 150 | install -d installed-doc |
f33e068e | 151 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-api installed-doc/elektra-api |
de7f9f03 | 152 | |
f33e068e JB |
153 | # "static" variant (with libelektra-static and thus all plugins linked in); |
154 | # we don't need it | |
155 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/kdb-static | |
de7f9f03 | 156 | |
a1ae6c6c | 157 | %clean |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
de7f9f03 JB |
160 | %post libs -p /sbin/ldconfig |
161 | %postun libs -p /sbin/ldconfig | |
162 | ||
a1ae6c6c | 163 | %files |
164 | %defattr(644,root,root,755) | |
f33e068e JB |
165 | %doc doc/{AUTHORS,CHANGES,COPYING,DESIGN,GOALS,NEWS,README,SECURITY,SPECIFICATION,todo} |
166 | # doc/standards installed-doc/scripts | |
167 | %attr(755,root,root) %{_bindir}/kdb | |
168 | %if %{with full} | |
169 | %attr(755,root,root) %{_bindir}/kdb-full | |
de7f9f03 | 170 | %endif |
f33e068e JB |
171 | %dir %{_libdir}/elektra |
172 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ccode.so | |
173 | # R: dbus | |
174 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dbus.so | |
175 | %attr(755,root,root) %{_libdir}/elektra/libelektra-doc.so | |
176 | %attr(755,root,root) %{_libdir}/elektra/libelektra-dump.so | |
177 | %attr(755,root,root) %{_libdir}/elektra/libelektra-error.so | |
178 | %attr(755,root,root) %{_libdir}/elektra/libelektra-fstab.so | |
179 | %attr(755,root,root) %{_libdir}/elektra/libelektra-glob.so | |
180 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hexcode.so | |
181 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hidden.so | |
182 | %attr(755,root,root) %{_libdir}/elektra/libelektra-hosts.so | |
183 | %attr(755,root,root) %{_libdir}/elektra/libelektra-iconv.so | |
184 | %attr(755,root,root) %{_libdir}/elektra/libelektra-network.so | |
185 | %attr(755,root,root) %{_libdir}/elektra/libelektra-ni.so | |
186 | %attr(755,root,root) %{_libdir}/elektra/libelektra-null.so | |
187 | %attr(755,root,root) %{_libdir}/elektra/libelektra-path.so | |
188 | %attr(755,root,root) %{_libdir}/elektra/libelektra-resolver.so | |
189 | %attr(755,root,root) %{_libdir}/elektra/libelektra-simpleini.so | |
190 | %attr(755,root,root) %{_libdir}/elektra/libelektra-struct.so | |
191 | %attr(755,root,root) %{_libdir}/elektra/libelektra-success.so | |
192 | %attr(755,root,root) %{_libdir}/elektra/libelektra-syslog.so | |
193 | %attr(755,root,root) %{_libdir}/elektra/libelektra-tcl.so | |
194 | %attr(755,root,root) %{_libdir}/elektra/libelektra-template.so | |
195 | %attr(755,root,root) %{_libdir}/elektra/libelektra-timeofday.so | |
196 | %attr(755,root,root) %{_libdir}/elektra/libelektra-tracer.so | |
197 | %attr(755,root,root) %{_libdir}/elektra/libelektra-type.so | |
198 | %attr(755,root,root) %{_libdir}/elektra/libelektra-uname.so | |
199 | %attr(755,root,root) %{_libdir}/elektra/libelektra-validation.so | |
200 | # R: libxml2 | |
201 | %attr(755,root,root) %{_libdir}/elektra/libelektra-xmltool.so | |
202 | # R: yajl | |
203 | %attr(755,root,root) %{_libdir}/elektra/libelektra-yajl.so | |
de7f9f03 JB |
204 | %attr(755,root,root) /etc/profile.d/elektraenv.sh |
205 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/elektra | |
f33e068e | 206 | %{_datadir}/sgml/elektra |
de7f9f03 JB |
207 | |
208 | %files libs | |
209 | %defattr(644,root,root,755) | |
f33e068e JB |
210 | %attr(755,root,root) %{_libdir}/libelektra.so.*.*.* |
211 | %attr(755,root,root) %ghost %{_libdir}/libelektra.so.4 | |
212 | %if %{with full} | |
213 | %attr(755,root,root) %{_libdir}/libelektra-full.so.*.*.* | |
214 | %attr(755,root,root) %ghost %{_libdir}/libelektra-full.so.4 | |
215 | %endif | |
a1ae6c6c | 216 | |
217 | %files devel | |
218 | %defattr(644,root,root,755) | |
de7f9f03 JB |
219 | %doc installed-doc/elektra-api/* |
220 | %attr(755,root,root) %{_libdir}/libelektra.so | |
f33e068e JB |
221 | %if %{with full} |
222 | %attr(755,root,root) %{_libdir}/libelektra-full.so | |
223 | %endif | |
224 | %dir %{_includedir}/elektra | |
225 | %{_includedir}/elektra/*.h | |
de7f9f03 | 226 | %{_pkgconfigdir}/elektra.pc |
f33e068e JB |
227 | %{_datadir}/cmake/Modules/FindElektra.cmake |
228 | %{_mandir}/man3/deprecated.3elektra* | |
229 | %{_mandir}/man3/kdb*.3elektra* | |
230 | %{_mandir}/man3/key*.3elektra* | |
231 | %{_mandir}/man3/plugin.3elektra* | |
a1ae6c6c | 232 | |
b511c548 | 233 | %files static |
85fe0e6b | 234 | %defattr(644,root,root,755) |
f33e068e | 235 | %{_libdir}/libelektra-static.a |
de7f9f03 JB |
236 | |
237 | %files cpp-devel | |
238 | %defattr(644,root,root,755) | |
f33e068e | 239 | %{_includedir}/elektra/*.hpp |