3 %bcond_without static_libs # don't build static library
5 Summary: Disk based hash library
6 Summary(pl.UTF-8): Biblioteka obsługująca tablice haszujące na dysku
12 Source0: http://dl.sourceforge.net/dbh/%{name}-%{version}.tar.gz
13 # Source0-md5: 15e1bd22aca735415dfb5ec60f48181b
15 URL: http://dbh.sourceforge.net/
16 BuildRequires: autoconf >= 2.52
17 BuildRequires: automake
18 BuildRequires: libtool
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Disk based hashes is a method to create multidimensional binary trees
23 on disk. This library permits the extension of database concept to a
24 plethora of electronic data, such as graphic information. With the
25 multidimensional binary tree it is possible to mathematically prove
26 that access time to any particular record is minimized (using the
27 concept of critical points from calculus), which provides the means to
28 construct optimized databases for particular applications.
30 %description -l pl.UTF-8
31 Hasze przechowywane na dysku to metoda tworzenia wielowymiarowych
32 drzew binarnych na dysku. Biblioteka pozwala rozszerzać pojęcie bazy
33 danych o bogactwo danych elektronicznych, takich jak informacje
34 graficzne. Można udowodnić matematycznie, że przy użyciu
35 wielowymiarowego drzewa binarnego czas dostępu do każdego konkretnego
36 rekordu jest minimalny (używając zasady punktów krytycznych), co
37 daje środki do tworzenia zoptymalizowanych baz danych dla aplikacji.
40 Summary: Disk based hash library development files
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dbh
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Obsoletes: dbh-examples
47 Disk based hash library development files.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki dbh.
53 Summary: Disk based hash static library
54 Summary(pl.UTF-8): Statyczna biblioteka dbh
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Disk based hash static library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka dbh.
75 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
84 DESTDIR=$RPM_BUILD_ROOT
87 install filesystem.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
88 install simple_hash.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc AUTHORS ChangeLog
99 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/lib*.so
108 %{_pkgconfigdir}/*.pc
109 %{_examplesdir}/%{name}-%{version}
111 %if %{with static_libs}
113 %defattr(644,root,root,755)