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