]>
Commit | Line | Data |
---|---|---|
e540dfd7 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | ||
6b792036 | 5 | %define basicobjects_version 0.1.1 |
e107fc90 | 6 | %define collection_version 0.6.2 |
e540dfd7 | 7 | %define dhash_version 0.4.3 |
6b792036 | 8 | %define ini_config_version 1.1.0 |
e540dfd7 | 9 | %define path_utils_version 0.2.1 |
6b792036 | 10 | %define ref_array_version 0.1.4 |
301bff7b | 11 | Summary: "Ding is not GLib" assorted utility libraries |
e107fc90 | 12 | Summary(pl.UTF-8): "Ding is not GLib" - niepowiązane ze sobą biblioteki narzędzi |
301bff7b | 13 | Name: ding-libs |
6b792036 | 14 | Version: 0.4.0 |
e540dfd7 | 15 | # NOTE: do not decrease Release on Version change, unless ALL subpackage versions have been increased too |
6b792036 | 16 | Release: 3 |
e107fc90 JB |
17 | License: GPL v3+ (basicobjects), LGPL v3+ (collection, dhash, ini, path_utils, ref_array) |
18 | Group: Libraries | |
19 | Source0: https://fedorahosted.org/releases/d/i/ding-libs/%{name}-%{version}.tar.gz | |
6b792036 | 20 | # Source0-md5: 8da087a535b66968797f337ce2c44a4e |
e107fc90 JB |
21 | URL: https://fedorahosted.org/sssd/ |
22 | BuildRequires: autoconf >= 2.50 | |
301bff7b | 23 | BuildRequires: automake |
e107fc90 | 24 | BuildRequires: check-devel >= 0.9.5 |
301bff7b | 25 | BuildRequires: doxygen |
26 | BuildRequires: libtool | |
27 | BuildRequires: m4 | |
e107fc90 | 28 | BuildRequires: pkgconfig |
e540dfd7 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
301bff7b | 30 | |
31 | %description | |
32 | A set of helpful libraries used by projects such as SSSD. | |
33 | ||
e107fc90 JB |
34 | %description -l pl.UTF-8 |
35 | Zbiór przydatnych bibliotek, używanych przez projekty takie jak SSSD. | |
36 | ||
37 | %package -n libbasicobjects | |
38 | Summary: Basic object types for C | |
39 | Summary(pl.UTF-8): Podstawowe typy obiektów dla C | |
40 | Version: %{basicobjects_version} | |
41 | License: GPL v3+ | |
42 | Group: Libraries | |
43 | ||
44 | %description -n libbasicobjects | |
45 | Basic object types for C. | |
46 | ||
47 | %description -n libbasicobjects -l pl.UTF-8 | |
48 | Podstawowe typy obiektów dla C. | |
49 | ||
50 | %package -n libbasicobjects-devel | |
51 | Summary: Development files for libbasicobjects | |
52 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libbasicobjects | |
53 | Version: %{basicobjects_version} | |
54 | License: GPL v3+ | |
55 | Group: Development/Libraries | |
56 | Requires: libbasicobjects = %{basicobjects_version}-%{release} | |
57 | ||
58 | %description -n libbasicobjects-devel | |
59 | Development files for libbasicobjects. | |
60 | ||
61 | %description -n libbasicobjects-devel -l pl.UTF-8 | |
62 | Pliki programistyczne biblioteki libbasicobjects. | |
63 | ||
64 | %package -n libbasicobjects-static | |
65 | Summary: Static libbasicobjects library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka libbasicobjects | |
67 | Version: %{basicobjects_version} | |
68 | License: GPL v3+ | |
69 | Group: Development/Libraries | |
70 | Requires: libbasicobjects-devel = %{basicobjects_version}-%{release} | |
71 | ||
72 | %description -n libbasicobjects-static | |
73 | Static libbasicobjects library. | |
74 | ||
75 | %description -n libbasicobjects-static -l pl.UTF-8 | |
76 | Statyczna biblioteka libbasicobjects. | |
77 | ||
e540dfd7 ER |
78 | %package -n libcollection |
79 | Summary: Collection data-type for C | |
e107fc90 | 80 | Summary(pl.UTF-8): Typ danych kolekcji dla C |
e540dfd7 ER |
81 | Version: %{collection_version} |
82 | License: LGPL v3+ | |
e107fc90 | 83 | Group: Libraries |
301bff7b | 84 | |
e540dfd7 ER |
85 | %description -n libcollection |
86 | A data-type to collect data in a hierarchical structure for easy | |
bd36927a | 87 | iteration and serialization. |
301bff7b | 88 | |
e107fc90 JB |
89 | %description -n libcollection -l pl.UTF-8 |
90 | Typ danych do gromadzenia danych w strukturze hierarchicznej w celu | |
91 | łatwego iterowania i serializowania. | |
92 | ||
e540dfd7 ER |
93 | %package -n libcollection-devel |
94 | Summary: Development files for libcollection | |
e107fc90 | 95 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libcollection |
e540dfd7 ER |
96 | Version: %{collection_version} |
97 | License: LGPL v3+ | |
301bff7b | 98 | Group: Development/Libraries |
e540dfd7 | 99 | Requires: libcollection = %{collection_version}-%{release} |
301bff7b | 100 | |
e540dfd7 | 101 | %description -n libcollection-devel |
e107fc90 JB |
102 | Development files for libcollection. |
103 | ||
104 | %description -n libcollection-devel -l pl.UTF-8 | |
105 | Pliki programistyczne biblioteki libcollection. | |
106 | ||
107 | %package -n libcollection-static | |
108 | Summary: Static libcollection library | |
109 | Summary(pl.UTF-8): Statyczna biblioteka libcollection | |
110 | Version: %{collection_version} | |
111 | License: LGPL v3+ | |
112 | Group: Development/Libraries | |
113 | Requires: libcollection-devel = %{collection_version}-%{release} | |
114 | ||
115 | %description -n libcollection-static | |
116 | Static libcollection library. | |
117 | ||
118 | %description -n libcollection-static -l pl.UTF-8 | |
119 | Statyczna biblioteka libcollection. | |
301bff7b | 120 | |
121 | %package -n libdhash | |
122 | Summary: Dynamic hash table | |
e107fc90 | 123 | Summary(pl.UTF-8): Dynamiczna tablica haszująca |
301bff7b | 124 | Version: %{dhash_version} |
e540dfd7 | 125 | License: LGPL v3+ |
e107fc90 | 126 | Group: Libraries |
301bff7b | 127 | |
128 | %description -n libdhash | |
129 | A hash table which will dynamically resize to achieve optimal storage | |
bd36927a | 130 | & access time properties. |
301bff7b | 131 | |
e107fc90 JB |
132 | %description -n libdhash -l pl.UTF-8 |
133 | Tablica haszująca dynamicznie zmieniająca rozmiar, aby osiągnąć | |
134 | optymalne właściwości zajętości pamięci i czasu dostępu. | |
135 | ||
301bff7b | 136 | %package -n libdhash-devel |
137 | Summary: Development files for libdhash | |
e107fc90 | 138 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libdhash |
301bff7b | 139 | Version: %{dhash_version} |
e540dfd7 | 140 | License: LGPL v3+ |
301bff7b | 141 | Group: Development/Libraries |
142 | Requires: libdhash = %{dhash_version}-%{release} | |
143 | ||
144 | %description -n libdhash-devel | |
e107fc90 JB |
145 | Development files for libdhash. |
146 | ||
147 | %description -n libdhash-devel -l pl.UTF-8 | |
148 | Pliki programistyczne biblioteki libdhash. | |
149 | ||
150 | %package -n libdhash-static | |
151 | Summary: Static libdhash library | |
152 | Summary(pl.UTF-8): Statyczna biblioteka libdhash | |
153 | Version: %{dhash_version} | |
154 | License: LGPL v3+ | |
155 | Group: Development/Libraries | |
156 | Requires: libdhash-devel = %{dhash_version}-%{release} | |
157 | ||
158 | %description -n libdhash-static | |
159 | Static libdhash library. | |
160 | ||
161 | %description -n libdhash-static -l pl.UTF-8 | |
162 | Statyczna biblioteka libdhash. | |
301bff7b | 163 | |
e540dfd7 ER |
164 | %package -n libini_config |
165 | Summary: INI file parser for C | |
e107fc90 | 166 | Summary(pl.UTF-8): Analizator plików INI dla C |
e540dfd7 ER |
167 | Version: %{ini_config_version} |
168 | License: LGPL v3+ | |
e107fc90 JB |
169 | Group: Libraries |
170 | Requires: libbasicobjects = %{basicobjects_version}-%{release} | |
171 | Requires: libcollection = %{collection_version}-%{release} | |
172 | Requires: libpath_utils = %{path_utils_version}-%{release} | |
173 | Requires: libref_array = %{ref_array_version}-%{release} | |
301bff7b | 174 | |
e540dfd7 ER |
175 | %description -n libini_config |
176 | Library to process config files in INI format into a libcollection | |
bd36927a | 177 | data structure. |
301bff7b | 178 | |
e107fc90 JB |
179 | %description -n libini_config -l pl.UTF-8 |
180 | Biblioteka do przetwarzania plików konfiguracyjnych w formacie INI do | |
181 | struktury danych libcollection. | |
182 | ||
e540dfd7 ER |
183 | %package -n libini_config-devel |
184 | Summary: Development files for libini_config | |
e107fc90 | 185 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libini_config |
e540dfd7 ER |
186 | Version: %{ini_config_version} |
187 | License: LGPL v3+ | |
301bff7b | 188 | Group: Development/Libraries |
e107fc90 JB |
189 | Requires: libbasicobjects-devel = %{basicobjects_version}-%{release} |
190 | Requires: libcollection-devel = %{collection_version}-%{release} | |
e540dfd7 | 191 | Requires: libini_config = %{ini_config_version}-%{release} |
e107fc90 JB |
192 | Requires: libpath_utils-devel = %{path_utils_version}-%{release} |
193 | Requires: libref_array-devel = %{ref_array_version}-%{release} | |
301bff7b | 194 | |
e540dfd7 | 195 | %description -n libini_config-devel |
e107fc90 JB |
196 | Development files for libini_config. |
197 | ||
198 | %description -n libini_config-devel -l pl.UTF-8 | |
199 | Pliki programistyczne biblioteki libini_config. | |
200 | ||
201 | %package -n libini_config-static | |
202 | Summary: Static libini_config library | |
203 | Summary(pl.UTF-8): Statyczna biblioteka libini_config | |
204 | Version: %{ini_config_version} | |
205 | License: LGPL v3+ | |
206 | Group: Development/Libraries | |
207 | Requires: libini_config-devel = %{ini_config_version}-%{release} | |
208 | ||
209 | %description -n libini_config-static | |
210 | Static libini_config library. | |
211 | ||
212 | %description -n libini_config-static -l pl.UTF-8 | |
213 | Statyczna biblioteka libini_config. | |
301bff7b | 214 | |
e540dfd7 ER |
215 | %package -n libpath_utils |
216 | Summary: Filesystem Path Utilities | |
e107fc90 | 217 | Summary(pl.UTF-8): Narzędzia do operowania na ścieżkach w systemie plików |
e540dfd7 ER |
218 | Version: %{path_utils_version} |
219 | License: LGPL v3+ | |
e107fc90 | 220 | Group: Libraries |
301bff7b | 221 | |
e540dfd7 | 222 | %description -n libpath_utils |
bd36927a | 223 | Utility functions to manipulate filesystem pathnames. |
301bff7b | 224 | |
e107fc90 JB |
225 | %description -n libpath_utils -l pl.UTF-8 |
226 | Funkcje narzędziowe do operowania na ścieżkach w systemie plików. | |
227 | ||
e540dfd7 ER |
228 | %package -n libpath_utils-devel |
229 | Summary: Development files for libpath_utils | |
e107fc90 | 230 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libpath_utils |
e540dfd7 ER |
231 | Version: %{path_utils_version} |
232 | License: LGPL v3+ | |
233 | Group: Development/Libraries | |
234 | Requires: libpath_utils = %{path_utils_version}-%{release} | |
301bff7b | 235 | |
e540dfd7 | 236 | %description -n libpath_utils-devel |
e107fc90 JB |
237 | Development files for libpath_utils. |
238 | ||
239 | %description -n libpath_utils-devel -l pl.UTF-8 | |
240 | Pliki programistyczne biblioteki libpath_utils. | |
241 | ||
242 | %package -n libpath_utils-static | |
243 | Summary: Static libpath_utils library | |
244 | Summary(pl.UTF-8): Statyczna biblioteka libpath_utils | |
245 | Version: %{path_utils_version} | |
246 | License: LGPL v3+ | |
247 | Group: Development/Libraries | |
248 | Requires: libpath_utils-devel = %{path_utils_version}-%{release} | |
249 | ||
250 | %description -n libpath_utils-static | |
251 | Static libpath_utils library. | |
252 | ||
253 | %description -n libpath_utils-static -l pl.UTF-8 | |
254 | Statyczna biblioteka libpath_utils. | |
301bff7b | 255 | |
256 | %package -n libref_array | |
257 | Summary: A refcounted array for C | |
e107fc90 | 258 | Summary(pl.UTF-8): Tablica z licznikiem odwołań dla C |
301bff7b | 259 | Version: %{ref_array_version} |
e540dfd7 | 260 | License: LGPL v3+ |
e107fc90 | 261 | Group: Libraries |
301bff7b | 262 | |
263 | %description -n libref_array | |
bd36927a | 264 | A dynamically-growing, reference-counted array. |
301bff7b | 265 | |
e107fc90 JB |
266 | %description -n libref_array -l pl.UTF-8 |
267 | Dynamicznie rosnąca tablica z licznikiem odwołań. | |
268 | ||
301bff7b | 269 | %package -n libref_array-devel |
270 | Summary: Development files for libref_array | |
e107fc90 | 271 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libref_array |
301bff7b | 272 | Version: %{ref_array_version} |
e540dfd7 | 273 | License: LGPL v3+ |
301bff7b | 274 | Group: Development/Libraries |
275 | Requires: libref_array = %{ref_array_version}-%{release} | |
276 | ||
277 | %description -n libref_array-devel | |
e107fc90 JB |
278 | Development files for libref_array. |
279 | ||
280 | %description -n libref_array-devel -l pl.UTF-8 | |
281 | Pliki programistyczne biblioteki libref_array. | |
282 | ||
283 | %package -n libref_array-static | |
284 | Summary: Static libref_array library | |
285 | Summary(pl.UTF-8): Statyczna biblioteka libref_array | |
286 | Version: %{ref_array_version} | |
287 | License: LGPL v3+ | |
288 | Group: Development/Libraries | |
289 | Requires: libref_array-devel = %{ref_array_version}-%{release} | |
290 | ||
291 | %description -n libref_array-static | |
292 | Static libref_array library. | |
293 | ||
294 | %description -n libref_array-static -l pl.UTF-8 | |
295 | Statyczna biblioteka libref_array. | |
301bff7b | 296 | |
301bff7b | 297 | %prep |
298 | %setup -q | |
299 | ||
300 | %build | |
301 | %configure \ | |
e107fc90 | 302 | --disable-silent-rules |
301bff7b | 303 | |
e540dfd7 | 304 | %{__make} all docs |
301bff7b | 305 | |
e540dfd7 ER |
306 | %if %{with tests} |
307 | %{__make} check | |
308 | %endif | |
301bff7b | 309 | |
310 | %install | |
311 | rm -rf $RPM_BUILD_ROOT | |
e540dfd7 ER |
312 | %{__make} install \ |
313 | DESTDIR=$RPM_BUILD_ROOT | |
301bff7b | 314 | |
315 | # Remove .la files created by libtool | |
e540dfd7 | 316 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
301bff7b | 317 | |
318 | # Remove the example files from the output directory | |
319 | # We will copy them directly from the source directory | |
320 | # for packaging | |
e540dfd7 | 321 | %{__rm} \ |
301bff7b | 322 | $RPM_BUILD_ROOT%{_docdir}/ding-libs/README.* \ |
323 | $RPM_BUILD_ROOT%{_docdir}/ding-libs/examples/dhash_example.c \ | |
324 | $RPM_BUILD_ROOT%{_docdir}/ding-libs/examples/dhash_test.c | |
325 | ||
326 | # Remove document install script. RPM is handling this | |
e540dfd7 | 327 | %{__rm} -f */doc/html/installdox |
301bff7b | 328 | |
329 | %clean | |
330 | rm -rf $RPM_BUILD_ROOT | |
e540dfd7 | 331 | |
e107fc90 JB |
332 | %post -n libbasicobjects -p /sbin/ldconfig |
333 | %postun -n libbasicobjects -p /sbin/ldconfig | |
334 | ||
e540dfd7 ER |
335 | %post -n libcollection -p /sbin/ldconfig |
336 | %postun -n libcollection -p /sbin/ldconfig | |
337 | ||
338 | %post -n libdhash -p /sbin/ldconfig | |
339 | %postun -n libdhash -p /sbin/ldconfig | |
340 | ||
341 | %post -n libini_config -p /sbin/ldconfig | |
342 | %postun -n libini_config -p /sbin/ldconfig | |
343 | ||
344 | %post -n libpath_utils -p /sbin/ldconfig | |
345 | %postun -n libpath_utils -p /sbin/ldconfig | |
346 | ||
347 | %post -n libref_array -p /sbin/ldconfig | |
348 | %postun -n libref_array -p /sbin/ldconfig | |
349 | ||
e107fc90 JB |
350 | %files -n libbasicobjects |
351 | %defattr(644,root,root,755) | |
6b792036 | 352 | %attr(755,root,root) %{_libdir}/libbasicobjects.so.*.*.* |
e107fc90 JB |
353 | %attr(755,root,root) %ghost %{_libdir}/libbasicobjects.so.0 |
354 | ||
355 | %files -n libbasicobjects-devel | |
356 | %defattr(644,root,root,755) | |
357 | %attr(755,root,root) %{_libdir}/libbasicobjects.so | |
358 | %{_includedir}/simplebuffer.h | |
359 | %{_pkgconfigdir}/basicobjects.pc | |
360 | ||
361 | %files -n libbasicobjects-static | |
362 | %defattr(644,root,root,755) | |
363 | %{_libdir}/libbasicobjects.a | |
364 | ||
e540dfd7 ER |
365 | %files -n libcollection |
366 | %defattr(644,root,root,755) | |
367 | %attr(755,root,root) %{_libdir}/libcollection.so.*.*.* | |
6b792036 | 368 | %attr(755,root,root) %ghost %{_libdir}/libcollection.so.4 |
e540dfd7 ER |
369 | |
370 | %files -n libcollection-devel | |
371 | %defattr(644,root,root,755) | |
372 | %doc collection/doc/html | |
e107fc90 | 373 | %attr(755,root,root) %{_libdir}/libcollection.so |
e540dfd7 ER |
374 | %{_includedir}/collection.h |
375 | %{_includedir}/collection_tools.h | |
376 | %{_includedir}/collection_queue.h | |
377 | %{_includedir}/collection_stack.h | |
e540dfd7 ER |
378 | %{_pkgconfigdir}/collection.pc |
379 | ||
e107fc90 JB |
380 | %files -n libcollection-static |
381 | %defattr(644,root,root,755) | |
382 | %{_libdir}/libcollection.a | |
383 | ||
e540dfd7 ER |
384 | %files -n libdhash |
385 | %defattr(644,root,root,755) | |
386 | %attr(755,root,root) %{_libdir}/libdhash.so.*.*.* | |
e107fc90 | 387 | %attr(755,root,root) %{_libdir}/libdhash.so.1 |
e540dfd7 ER |
388 | |
389 | %files -n libdhash-devel | |
390 | %defattr(644,root,root,755) | |
e107fc90 JB |
391 | %doc dhash/README.dhash dhash/examples |
392 | %attr(755,root,root) %{_libdir}/libdhash.so | |
e540dfd7 | 393 | %{_includedir}/dhash.h |
e540dfd7 ER |
394 | %{_pkgconfigdir}/dhash.pc |
395 | ||
e107fc90 JB |
396 | %files -n libdhash-static |
397 | %defattr(644,root,root,755) | |
398 | %{_libdir}/libdhash.a | |
399 | ||
e540dfd7 ER |
400 | %files -n libini_config |
401 | %defattr(644,root,root,755) | |
402 | %attr(755,root,root) %{_libdir}/libini_config.so.*.*.* | |
6b792036 | 403 | %attr(755,root,root) %ghost %{_libdir}/libini_config.so.5 |
e540dfd7 ER |
404 | |
405 | %files -n libini_config-devel | |
406 | %defattr(644,root,root,755) | |
e107fc90 JB |
407 | %doc ini/doc/html |
408 | %attr(755,root,root) %{_libdir}/libini_config.so | |
409 | %{_includedir}/ini_comment.h | |
e540dfd7 | 410 | %{_includedir}/ini_config.h |
e107fc90 JB |
411 | %{_includedir}/ini_configobj.h |
412 | %{_includedir}/ini_valueobj.h | |
e540dfd7 ER |
413 | %{_pkgconfigdir}/ini_config.pc |
414 | ||
e107fc90 JB |
415 | %files -n libini_config-static |
416 | %defattr(644,root,root,755) | |
417 | %{_libdir}/libini_config.a | |
418 | ||
e540dfd7 ER |
419 | %files -n libpath_utils |
420 | %defattr(644,root,root,755) | |
421 | %attr(755,root,root) %{_libdir}/libpath_utils.so.*.*.* | |
e107fc90 | 422 | %attr(755,root,root) %ghost %{_libdir}/libpath_utils.so.1 |
e540dfd7 ER |
423 | |
424 | %files -n libpath_utils-devel | |
425 | %defattr(644,root,root,755) | |
e107fc90 JB |
426 | %doc path_utils/README.path_utils path_utils/doc/html |
427 | %attr(755,root,root) %{_libdir}/libpath_utils.so | |
e540dfd7 | 428 | %{_includedir}/path_utils.h |
e540dfd7 ER |
429 | %{_pkgconfigdir}/path_utils.pc |
430 | ||
e107fc90 JB |
431 | %files -n libpath_utils-static |
432 | %defattr(644,root,root,755) | |
433 | %{_libdir}/libpath_utils.a | |
434 | ||
e540dfd7 ER |
435 | %files -n libref_array |
436 | %defattr(644,root,root,755) | |
437 | %attr(755,root,root) %{_libdir}/libref_array.so.*.*.* | |
e107fc90 | 438 | %attr(755,root,root) %ghost %{_libdir}/libref_array.so.1 |
e540dfd7 ER |
439 | |
440 | %files -n libref_array-devel | |
441 | %defattr(644,root,root,755) | |
e107fc90 JB |
442 | %doc refarray/README.ref_array refarray/doc/html |
443 | %attr(755,root,root) %{_libdir}/libref_array.so | |
e540dfd7 | 444 | %{_includedir}/ref_array.h |
e540dfd7 | 445 | %{_pkgconfigdir}/ref_array.pc |
e107fc90 JB |
446 | |
447 | %files -n libref_array-static | |
448 | %defattr(644,root,root,755) | |
449 | %{_libdir}/libref_array.a |