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