]> git.pld-linux.org Git - packages/dbh.git/blame - dbh.spec
- corrected installation paths
[packages/dbh.git] / dbh.spec
CommitLineData
4093aa60 1#
a50c1e46 2# Conditional build:
260958ac 3%bcond_without static_libs # don't build static library
a50c1e46 4#
0967af91 5Summary: Disk based hash library
a8c99960 6Summary(pl.UTF-8): Biblioteka obsługująca tablice haszujące na dysku
0967af91 7Name: dbh
4093aa60 8Version: 4.5.0
82feb4a6 9Release: 1
3d89a354 10License: LGPL
0967af91 11Group: Libraries
fff9e962 12Source0: http://dl.sourceforge.net/dbh/%{name}-%{version}.tar.gz
4093aa60 13# Source0-md5: 52b4b0d5ee0513dc796e989220c11bc6
3d89a354
JB
14URL: http://dbh.sourceforge.net/
15BuildRequires: autoconf >= 2.52
16BuildRequires: automake
17BuildRequires: libtool
0967af91 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
23f41503 20%description
3d89a354
JB
21Disk based hashes is a method to create multidimensional binary trees
22on disk. This library permits the extension of database concept to a
23plethora of electronic data, such as graphic information. With the
24multidimensional binary tree it is possible to mathematically prove
25that access time to any particular record is minimized (using the
26concept of critical points from calculus), which provides the means to
23f41503 27construct optimized databases for particular applications.
3d89a354 28
4764622c 29%description -l pl.UTF-8
3d89a354 30Hasze przechowywane na dysku to metoda tworzenia wielowymiarowych
4764622c 31drzew binarnych na dysku. Biblioteka pozwala rozszerzać pojęcie bazy
3d89a354 32danych o bogactwo danych elektronicznych, takich jak informacje
4764622c
JR
33graficzne. Można udowodnić matematycznie, że przy użyciu
34wielowymiarowego drzewa binarnego czas dostępu do każdego konkretnego
35rekordu jest minimalny (używając zasady punktów krytycznych), co
36daje środki do tworzenia zoptymalizowanych baz danych dla aplikacji.
0967af91 37
38%package devel
39Summary: Disk based hash library development files
a8c99960 40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dbh
3d89a354 41Group: Development/Libraries
c623df28 42Requires: %{name} = %{version}-%{release}
3d89a354 43Obsoletes: dbh-examples
0967af91 44
45%description devel
3d89a354
JB
46Disk based hash library development files.
47
4764622c
JR
48%description devel -l pl.UTF-8
49Pliki nagłówkowe biblioteki dbh.
0967af91 50
51%package static
3d89a354 52Summary: Disk based hash static library
a8c99960 53Summary(pl.UTF-8): Statyczna biblioteka dbh
3d89a354 54Group: Development/Libraries
c623df28 55Requires: %{name}-devel = %{version}-%{release}
0967af91 56
57%description static
3d89a354 58Disk based hash static library.
0967af91 59
4764622c 60%description static -l pl.UTF-8
3d89a354 61Statyczna 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
78rm -rf $RPM_BUILD_ROOT
3d89a354
JB
79install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80
81%{__make} install \
23f41503 82 DESTDIR=$RPM_BUILD_ROOT
0967af91 83
84cd examples
3d89a354
JB
85install simple_hash.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86install trafico.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
0967af91 87
88%clean
89rm -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
This page took 0.171606 seconds and 4 git commands to generate.