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