1 Summary: A package for maintenance of constant databases
2 Summary(pl.UTF-8): Stała baza danych
7 Group: Applications/Databases
8 #Source0Download: http://www.corpit.ru/mjt/tinycdb.html#download
9 Source0: http://www.corpit.ru/mjt/tinycdb/%{name}-%{version}.tar.gz
10 # Source0-md5: 976266afc3f6e7e17492a8d18f21f8f6
11 URL: http://www.corpit.ru/mjt/tinycdb.html
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 TinyCDB is a very fast and simple package for creating and reading
16 constant data bases, a data structure introduced by Dan J. Bernstein
17 in his cdb package. It may be used to speed up searches in a sequence
18 of (key,value) pairs with very big number of records. Example usage is
19 indexing a big list of users - where a search will require linear
20 reading of a large /etc/passwd file, and for many other tasks. It's
21 usage/API is similar to ones found in BerkeleyDB, gdbm and traditional
22 *nix dbm/ndbm libraries, and is compatible in great extent to cdb-0.75
23 package by Dan Bernstein.
25 CDB is a constant database, that is, it cannot be updated at a
26 runtime, only rebuilt. Rebuilding is atomic operation and is very
27 fast - much faster than of many other similar packages. Once created,
28 CDB may be queried, and a query takes very little time to complete.
30 This package contains shared library and cdb utility.
32 %description -l pl.UTF-8
33 tinycdb jest bardzo szybkim i prostym pakietem do tworzenia i czytania
34 stałych baz danych o strukturze wprowadzonej przez Dana J. Bernsteina
35 w jego pakiecie cdb. Może być używana do przyspieszenia wyszukiwania
36 kolejnych par (klucz,wartość) przy bardzo dużej liczbie rekordów.
37 Przykładowe zastosowanie to indeksowanie dużej listy użytkowników -
38 gdzie wyszukiwanie wymagałoby liniowego odczytu dużego pliku
39 /etc/passwd. Sposób użycia i API są podobne do znanych z BerkeleyDB,
40 gdbm czy tradycyjnych uniksowych bibliotek dbm/ndbm i są kompatybilne
41 w dużym stopniu z pakietem cdb-0.75 Dana Bernsteina.
43 CDB to stała baza danych, co oznacza, że nie można jej uaktualniać, a
44 jedynie przebudować od początku. Przebudowanie jest atomową operacją i
45 jest bardzo szybkie - dużo szybsze niż w przypadku wielu innych
46 podobnych pakietów. Po utworzeniu bazy CDB można wykonywać zapytania,
47 których wykonanie jest bardzo szybkie.
49 Ten pakiet zawiera bibliotekę współdzieloną i narzędzie cdb.
52 Summary: Header file for tinycdb
53 Summary(de.UTF-8): Header-Datei für tinycdb
54 Summary(pl.UTF-8): Plik nagłówkowy tinycdb
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 This package contains the header file for tinycdb. It is required if
60 you plan to do development using the tinycdb database.
62 %description devel -l pl.UTF-8
63 W pakiecie tym znajduje się plik nagłówkowy dla systemu bazy danych
64 tinycdb. Jest potrzebny do programowania z użyciem tej bazy.
67 Summary: Static tinycdb library
68 Summary(pl.UTF-8): Statyczna biblioteka tinycdb
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
73 Static tinycdb library.
75 %description static -l pl.UTF-8
76 Statyczna biblioteka tinycdb.
78 %package -n nss_tinycdb
79 Summary: NSS module which uses tinycdb database
80 Summary(pl.UTF-8): Moduł NSS używający bazy danych tinycdb
82 Requires: %{name} = %{version}-%{release}
84 %description -n nss_tinycdb
85 NSS module which uses tinycdb database to keep passwd, group and
88 %description -n nss_tinycdb -l pl.UTF-8
89 Moduł NSS używający bazy danych tinycdb do przechowywania wpisów
90 passwd, group i shadow.
96 %{__make} -j1 shared staticlib nss \
98 CFLAGS="%{rpmcflags}" \
99 NSS_USELIB="\$(SOLIB)"
102 rm -rf $RPM_BUILD_ROOT
104 %{__make} install install-sharedlib install-nss \
105 DESTDIR=$RPM_BUILD_ROOT \
110 INSTALLPROG=cdb-shared
113 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc ChangeLog NEWS debian/{changelog,copyright}
121 %attr(755,root,root) %{_bindir}/cdb
122 %attr(755,root,root) %{_libdir}/libcdb.so.1
123 %{_mandir}/man1/cdb.1*
124 %{_mandir}/man5/cdb.5*
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libcdb.so
129 %{_mandir}/man3/cdb.3*
133 %defattr(644,root,root,755)
136 %files -n nss_tinycdb
137 %defattr(644,root,root,755)
138 %attr(755,root,root) /%{_lib}/libnss_cdb.so.2