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