]>
Commit | Line | Data |
---|---|---|
4093aa60 | 1 | # |
a50c1e46 | 2 | # Conditional build: |
260958ac | 3 | %bcond_without static_libs # don't build static library |
a50c1e46 | 4 | # |
0967af91 | 5 | Summary: Disk based hash library |
a8c99960 | 6 | Summary(pl.UTF-8): Biblioteka obsługująca tablice haszujące na dysku |
0967af91 | 7 | Name: dbh |
4093aa60 | 8 | Version: 4.5.0 |
82feb4a6 | 9 | Release: 1 |
3d89a354 | 10 | License: LGPL |
0967af91 | 11 | Group: Libraries |
fff9e962 | 12 | Source0: http://dl.sourceforge.net/dbh/%{name}-%{version}.tar.gz |
4093aa60 | 13 | # Source0-md5: 52b4b0d5ee0513dc796e989220c11bc6 |
3d89a354 JB |
14 | URL: http://dbh.sourceforge.net/ |
15 | BuildRequires: autoconf >= 2.52 | |
16 | BuildRequires: automake | |
17 | BuildRequires: libtool | |
0967af91 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
23f41503 | 20 | %description |
3d89a354 JB |
21 | Disk based hashes is a method to create multidimensional binary trees |
22 | on disk. This library permits the extension of database concept to a | |
23 | plethora of electronic data, such as graphic information. With the | |
24 | multidimensional binary tree it is possible to mathematically prove | |
25 | that access time to any particular record is minimized (using the | |
26 | concept of critical points from calculus), which provides the means to | |
23f41503 | 27 | construct optimized databases for particular applications. |
3d89a354 | 28 | |
4764622c | 29 | %description -l pl.UTF-8 |
3d89a354 | 30 | Hasze przechowywane na dysku to metoda tworzenia wielowymiarowych |
4764622c | 31 | drzew binarnych na dysku. Biblioteka pozwala rozszerzać pojęcie bazy |
3d89a354 | 32 | danych o bogactwo danych elektronicznych, takich jak informacje |
4764622c JR |
33 | graficzne. Można udowodnić matematycznie, że przy użyciu |
34 | wielowymiarowego drzewa binarnego czas dostępu do każdego konkretnego | |
35 | rekordu jest minimalny (używając zasady punktów krytycznych), co | |
36 | daje środki do tworzenia zoptymalizowanych baz danych dla aplikacji. | |
0967af91 | 37 | |
38 | %package devel | |
39 | Summary: Disk based hash library development files | |
a8c99960 | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dbh |
3d89a354 | 41 | Group: Development/Libraries |
c623df28 | 42 | Requires: %{name} = %{version}-%{release} |
3d89a354 | 43 | Obsoletes: dbh-examples |
0967af91 | 44 | |
45 | %description devel | |
3d89a354 JB |
46 | Disk based hash library development files. |
47 | ||
4764622c JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe biblioteki dbh. | |
0967af91 | 50 | |
51 | %package static | |
3d89a354 | 52 | Summary: Disk based hash static library |
a8c99960 | 53 | Summary(pl.UTF-8): Statyczna biblioteka dbh |
3d89a354 | 54 | Group: Development/Libraries |
c623df28 | 55 | Requires: %{name}-devel = %{version}-%{release} |
0967af91 | 56 | |
57 | %description static | |
3d89a354 | 58 | Disk based hash static library. |
0967af91 | 59 | |
4764622c | 60 | %description static -l pl.UTF-8 |
3d89a354 | 61 | Statyczna biblioteka dbh. |
0967af91 | 62 | |
63 | %prep | |
fff9e962 | 64 | %setup -q |
0967af91 | 65 | |
66 | %build | |
67 | %{__libtoolize} | |
6267da87 | 68 | %{__aclocal} -I m4 |
0967af91 | 69 | %{__automake} |
c623df28 | 70 | %{__autoheader} |
0967af91 | 71 | %{__autoconf} |
260958ac | 72 | %configure \ |
73 | %{!?with_static_libs:--disable-static} | |
3d89a354 | 74 | |
0967af91 | 75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
3d89a354 JB |
79 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
80 | ||
81 | %{__make} install \ | |
23f41503 | 82 | DESTDIR=$RPM_BUILD_ROOT |
0967af91 | 83 | |
84 | cd examples | |
3d89a354 JB |
85 | install simple_hash.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
86 | install trafico.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
0967af91 | 87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
3d89a354 JB |
91 | %post -p /sbin/ldconfig |
92 | %postun -p /sbin/ldconfig | |
0967af91 | 93 | |
94 | %files | |
95 | %defattr(644,root,root,755) | |
3d89a354 JB |
96 | %doc AUTHORS ChangeLog |
97 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
0967af91 | 98 | |
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
3d89a354 JB |
101 | %doc doc/*.html |
102 | %attr(755,root,root) %{_libdir}/lib*.so | |
103 | %{_libdir}/lib*.la | |
104 | %{_includedir}/*.h | |
105 | %{_pkgconfigdir}/*.pc | |
106 | %{_examplesdir}/%{name}-%{version} | |
0967af91 | 107 | |
260958ac | 108 | %if %{with static_libs} |
0967af91 | 109 | %files static |
110 | %defattr(644,root,root,755) | |
3d89a354 | 111 | %{_libdir}/lib*.a |
260958ac | 112 | %endif |