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://downloads.sourceforge.net/dbh/%{name}-%{version}.tar.gz
13 # Source0-md5: 15e1bd22aca735415dfb5ec60f48181b
15 Patch1: %{name}-bsd.patch
16 URL: http://dbh.sourceforge.net/
17 BuildRequires: autoconf >= 2.52
18 BuildRequires: automake
19 BuildRequires: gtk-doc >= 1.15
20 BuildRequires: libtool
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Disk based hashes is a method to create multidimensional binary trees
25 on disk. This library permits the extension of database concept to a
26 plethora of electronic data, such as graphic information. With the
27 multidimensional binary tree it is possible to mathematically prove
28 that access time to any particular record is minimized (using the
29 concept of critical points from calculus), which provides the means to
30 construct optimized databases for particular applications.
32 %description -l pl.UTF-8
33 Hasze przechowywane na dysku to metoda tworzenia wielowymiarowych
34 drzew binarnych na dysku. Biblioteka pozwala rozszerzać pojęcie bazy
35 danych o bogactwo danych elektronicznych, takich jak informacje
36 graficzne. Można udowodnić matematycznie, że przy użyciu
37 wielowymiarowego drzewa binarnego czas dostępu do każdego konkretnego
38 rekordu jest minimalny (używając zasady punktów krytycznych), co daje
39 środki do tworzenia zoptymalizowanych baz danych dla aplikacji.
42 Summary: Disk based hash library development files
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dbh
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Obsoletes: dbh-examples
49 Disk based hash library development files.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki dbh.
55 Summary: Disk based hash static library
56 Summary(pl.UTF-8): Statyczna biblioteka dbh
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Disk based hash static library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka dbh.
67 Summary: API documentation for dbh library
68 Summary(pl.UTF-8): Dokumentacja API biblioteki dbh
73 API documentation for dbh library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki dbh.
90 %{!?with_static_libs:--disable-static} \
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
100 DESTDIR=$RPM_BUILD_ROOT
102 cp -p examples/{filesystem,simple_hash}.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
105 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/dbh.h.1 $RPM_BUILD_ROOT%{_mandir}/man3/dbh.h.3
106 # just a copy of dbh.h.1, useless
107 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/dbh.1
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog NEWS
118 %attr(755,root,root) %{_libdir}/libdbh2.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libdbh2.so.0
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libdbh2.so
124 %{_libdir}/libdbh2.la
126 %{_pkgconfigdir}/dbh2.pc
127 %{_examplesdir}/%{name}-%{version}
128 %{_mandir}/man3/dbh.h.3*
129 %{_mandir}/man3/dbh_*.3*
131 %if %{with static_libs}
133 %defattr(644,root,root,755)
138 %defattr(644,root,root,755)