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