]>
Commit | Line | Data |
---|---|---|
086ae675 JB |
1 | Summary: J.Engelh's general-purpose library |
2 | Summary(pl.UTF-8): Biblioteka ogólnego przeznaczenia J. Engelha | |
79b59575 | 3 | Name: libHX |
5da282e6 | 4 | Version: 2.2 |
79b59575 | 5 | Release: 1 |
086ae675 | 6 | License: LGPL v2 or LGPL v3 |
79b59575 | 7 | Group: Libraries |
a03bb58a | 8 | Source0: http://jengelh.medozas.de/files/libHX/%{name}-%{version}.tar.bz2 |
5da282e6 | 9 | # Source0-md5: c5f62e024d01c96955775f24810e2aef |
a03bb58a | 10 | URL: http://jengelh.medozas.de/projects/libHX/ |
79b59575 | 11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12 | ||
13 | %description | |
086ae675 | 14 | J.Engelh's general-purpose library for: |
79b59575 | 15 | - A+R/B trees to use for lists or maps (associative arrays) |
16 | - Deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs)) | |
17 | - platform independent opendir-style directory access | |
18 | - platform independent dlopen-style shared library access | |
19 | - auto-storage strings with direct access | |
20 | - command line option (argv) parser | |
21 | - shell-style config file parser | |
22 | - platform independent random number generator with transparent | |
23 | /dev/urandom support | |
24 | - various string, memory and zvec ops | |
25 | ||
086ae675 JB |
26 | %description -l pl.UTF-8 |
27 | Biblioteka J. Engelha ogólnego przeznaczenia, obejmująca: | |
28 | - drzewa czerwono-czarne do list i tablic asocjacyjnych | |
29 | - kolejki o dwóch końcach (stosy LIFO/kolejki FIFO) | |
30 | - niezależny od platformy dostęp do katalogów w stylu opendir | |
31 | - niezależny od platformy dostęp do bibliotek współdzielonych w stylu | |
32 | dlopen | |
33 | - łańcuchy znaków z automatycznym zarządzaniem pamięcią i bezpośrednim | |
34 | dostępem | |
35 | - analizator opcji linii poleceń (argv) | |
36 | - analizator plików konfiguracyjnych w stylu powłoki sh | |
37 | - niezależny od platformy generator liczb losowych z przezroczystą | |
38 | obsługą /dev/urandom | |
39 | - różne operacje na łańcuchach znaków, pamięci i strukturach zvec | |
40 | ||
79b59575 | 41 | %package devel |
42 | Summary: libHX header files | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe libHX | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | ||
47 | %description devel | |
48 | libHX header files. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe libHX. | |
52 | ||
53 | %package static | |
54 | Summary: libHX static library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka libHX | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | libHX static library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka libHX. | |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
79b59575 | 69 | %configure \ |
70 | --enable-static | |
71 | ||
7fa133e0 JB |
72 | %{__make} \ |
73 | V=1 | |
79b59575 | 74 | |
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
086ae675 JB |
89 | %doc doc/changelog.txt |
90 | %attr(755,root,root) %{_libdir}/libHX.so.*.*.* | |
5da282e6 | 91 | %attr(755,root,root) %ghost %{_libdir}/libHX.so.18 |
79b59575 | 92 | |
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
086ae675 JB |
95 | %doc doc/[!c]*.txt |
96 | %attr(755,root,root) %{_libdir}/libHX.so | |
97 | %{_libdir}/libHX.la | |
98 | %{_includedir}/libHX.h | |
a03bb58a | 99 | %{_includedir}/%{name} |
7fa133e0 | 100 | %{_pkgconfigdir}/libHX.pc |
79b59575 | 101 | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
086ae675 | 104 | %{_libdir}/libHX.a |