]>
Commit | Line | Data |
---|---|---|
4093aa60 | 1 | # |
a50c1e46 | 2 | # Conditional build: |
e588df2f | 3 | %bcond_without static_libs # static library |
d00dd31d | 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 |
e588df2f JB |
8 | Version: 5.0.22 |
9 | Release: 1 | |
10 | License: GPL v3+ | |
0967af91 | 11 | Group: Libraries |
e588df2f JB |
12 | Source0: https://downloads.sourceforge.net/dbh/libdbh2-%{version}.tar.gz |
13 | # Source0-md5: f8c592f6fd4d336cbb5529dc52177e4f | |
5e61905f | 14 | Patch0: am.patch |
e588df2f | 15 | URL: http://www.gnu.org/software/libdbh/ |
3d89a354 | 16 | BuildRequires: autoconf >= 2.52 |
e588df2f JB |
17 | BuildRequires: automake >= 1:1.11 |
18 | BuildRequires: gtk-doc >= 1.18 | |
19 | BuildRequires: libtool >= 2:2 | |
20 | BuildRequires: rpm-build >= 4.6 | |
0967af91 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23f41503 | 23 | %description |
3d89a354 JB |
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 | |
23f41503 | 30 | construct optimized databases for particular applications. |
3d89a354 | 31 | |
4764622c | 32 | %description -l pl.UTF-8 |
3d89a354 | 33 | Hasze przechowywane na dysku to metoda tworzenia wielowymiarowych |
4764622c | 34 | drzew binarnych na dysku. Biblioteka pozwala rozszerzać pojęcie bazy |
3d89a354 | 35 | danych o bogactwo danych elektronicznych, takich jak informacje |
4764622c JR |
36 | graficzne. Można udowodnić matematycznie, że przy użyciu |
37 | wielowymiarowego drzewa binarnego czas dostępu do każdego konkretnego | |
d00dd31d ER |
38 | rekordu jest minimalny (używając zasady punktów krytycznych), co daje |
39 | środki do tworzenia zoptymalizowanych baz danych dla aplikacji. | |
0967af91 | 40 | |
41 | %package devel | |
42 | Summary: Disk based hash library development files | |
a8c99960 | 43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dbh |
3d89a354 | 44 | Group: Development/Libraries |
c623df28 | 45 | Requires: %{name} = %{version}-%{release} |
e588df2f | 46 | Obsoletes: dbh-examples < 1.0.14-1 |
0967af91 | 47 | |
48 | %description devel | |
3d89a354 JB |
49 | Disk based hash library development files. |
50 | ||
4764622c JR |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe biblioteki dbh. | |
0967af91 | 53 | |
54 | %package static | |
3d89a354 | 55 | Summary: Disk based hash static library |
a8c99960 | 56 | Summary(pl.UTF-8): Statyczna biblioteka dbh |
3d89a354 | 57 | Group: Development/Libraries |
c623df28 | 58 | Requires: %{name}-devel = %{version}-%{release} |
0967af91 | 59 | |
60 | %description static | |
3d89a354 | 61 | Disk based hash static library. |
0967af91 | 62 | |
4764622c | 63 | %description static -l pl.UTF-8 |
3d89a354 | 64 | Statyczna biblioteka dbh. |
0967af91 | 65 | |
6923bdb8 JB |
66 | %package apidocs |
67 | Summary: API documentation for dbh library | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki dbh | |
69 | Group: Documentation | |
d00dd31d | 70 | BuildArch: noarch |
6923bdb8 JB |
71 | |
72 | %description apidocs | |
73 | API documentation for dbh library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki dbh. | |
77 | ||
0967af91 | 78 | %prep |
e588df2f | 79 | %setup -q -n libdbh2-%{version} |
5e61905f | 80 | %patch0 -p1 |
0967af91 | 81 | |
82 | %build | |
83 | %{__libtoolize} | |
6267da87 | 84 | %{__aclocal} -I m4 |
0967af91 | 85 | %{__autoconf} |
5e61905f WF |
86 | %{__autoheader} |
87 | %{__automake} | |
260958ac | 88 | %configure \ |
e588df2f | 89 | --disable-silent-rules \ |
6923bdb8 JB |
90 | %{!?with_static_libs:--disable-static} \ |
91 | --without-examples | |
3d89a354 | 92 | |
0967af91 | 93 | %{__make} |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
3d89a354 JB |
97 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
98 | ||
99 | %{__make} install \ | |
23f41503 | 100 | DESTDIR=$RPM_BUILD_ROOT |
0967af91 | 101 | |
e588df2f JB |
102 | # obsoleted by pkg-config |
103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdbh.la | |
6923bdb8 | 104 | |
e588df2f | 105 | cp -p examples/{filesystem,simple_hash}.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
0967af91 | 106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
3d89a354 JB |
110 | %post -p /sbin/ldconfig |
111 | %postun -p /sbin/ldconfig | |
0967af91 | 112 | |
113 | %files | |
114 | %defattr(644,root,root,755) | |
e588df2f JB |
115 | %doc AUTHORS ChangeLog NEWS README TODO |
116 | %attr(755,root,root) %{_libdir}/libdbh.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libdbh.so.2 | |
0967af91 | 118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
e588df2f | 121 | %attr(755,root,root) %{_libdir}/libdbh.so |
5e61905f | 122 | %{_includedir}/dbh |
6923bdb8 | 123 | %{_pkgconfigdir}/dbh2.pc |
3d89a354 | 124 | %{_examplesdir}/%{name}-%{version} |
e588df2f | 125 | %{_mandir}/man3/dbh.3* |
6923bdb8 JB |
126 | %{_mandir}/man3/dbh.h.3* |
127 | %{_mandir}/man3/dbh_*.3* | |
0967af91 | 128 | |
260958ac | 129 | %if %{with static_libs} |
0967af91 | 130 | %files static |
131 | %defattr(644,root,root,755) | |
e588df2f | 132 | %{_libdir}/libdbh.a |
260958ac | 133 | %endif |
6923bdb8 JB |
134 | |
135 | %files apidocs | |
136 | %defattr(644,root,root,755) | |
137 | %{_gtkdocdir}/dbh |