Summary: A package for maintenance of constant databases Summary(pl.UTF-8): Stała baza danych Name: tinycdb Version: 0.78 Release: 1 License: Public Domain Group: Applications/Databases #Source0Download: http://www.corpit.ru/mjt/tinycdb.html#download Source0: http://www.corpit.ru/mjt/tinycdb/%{name}-%{version}.tar.gz # Source0-md5: 976266afc3f6e7e17492a8d18f21f8f6 URL: http://www.corpit.ru/mjt/tinycdb.html BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description TinyCDB is a very fast and simple package for creating and reading constant data bases, a data structure introduced by Dan J. Bernstein in his cdb package. It may be used to speed up searches in a sequence of (key,value) pairs with very big number of records. Example usage is indexing a big list of users - where a search will require linear reading of a large /etc/passwd file, and for many other tasks. It's usage/API is similar to ones found in BerkeleyDB, gdbm and traditional *nix dbm/ndbm libraries, and is compatible in great extent to cdb-0.75 package by Dan Bernstein. CDB is a constant database, that is, it cannot be updated at a runtime, only rebuilt. Rebuilding is atomic operation and is very fast - much faster than of many other similar packages. Once created, CDB may be queried, and a query takes very little time to complete. This package contains shared library and cdb utility. %description -l pl.UTF-8 tinycdb jest bardzo szybkim i prostym pakietem do tworzenia i czytania stałych baz danych o strukturze wprowadzonej przez Dana J. Bernsteina w jego pakiecie cdb. Może być używana do przyspieszenia wyszukiwania kolejnych par (klucz,wartość) przy bardzo dużej liczbie rekordów. Przykładowe zastosowanie to indeksowanie dużej listy użytkowników - gdzie wyszukiwanie wymagałoby liniowego odczytu dużego pliku /etc/passwd. Sposób użycia i API są podobne do znanych z BerkeleyDB, gdbm czy tradycyjnych uniksowych bibliotek dbm/ndbm i są kompatybilne w dużym stopniu z pakietem cdb-0.75 Dana Bernsteina. CDB to stała baza danych, co oznacza, że nie można jej uaktualniać, a jedynie przebudować od początku. Przebudowanie jest atomową operacją i jest bardzo szybkie - dużo szybsze niż w przypadku wielu innych podobnych pakietów. Po utworzeniu bazy CDB można wykonywać zapytania, których wykonanie jest bardzo szybkie. Ten pakiet zawiera bibliotekę współdzieloną i narzędzie cdb. %package devel Summary: Header file for tinycdb Summary(de.UTF-8): Header-Datei für tinycdb Summary(pl.UTF-8): Plik nagłówkowy tinycdb Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header file for tinycdb. It is required if you plan to do development using the tinycdb database. %description devel -l pl.UTF-8 W pakiecie tym znajduje się plik nagłówkowy dla systemu bazy danych tinycdb. Jest potrzebny do programowania z użyciem tej bazy. %package static Summary: Static tinycdb library Summary(pl.UTF-8): Statyczna biblioteka tinycdb Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static tinycdb library. %description static -l pl.UTF-8 Statyczna biblioteka tinycdb. %package -n nss_tinycdb Summary: NSS module which uses tinycdb database Summary(pl.UTF-8): Moduł NSS używający bazy danych tinycdb Group: Libraries Requires: %{name} = %{version}-%{release} %description -n nss_tinycdb NSS module which uses tinycdb database to keep passwd, group and shadow entries. %description -n nss_tinycdb -l pl.UTF-8 Moduł NSS używający bazy danych tinycdb do przechowywania wpisów passwd, group i shadow. %prep %setup -q %build %{__make} -j1 shared staticlib nss \ CC="%{__cc}" \ CFLAGS="%{rpmcflags}" \ NSS_USELIB="\$(SOLIB)" %install rm -rf $RPM_BUILD_ROOT %{__make} install install-sharedlib install-nss \ DESTDIR=$RPM_BUILD_ROOT \ prefix=%{_prefix} \ libdir=%{_libdir} \ mandir=%{_mandir} \ syslibdir=/%{_lib} \ INSTALLPROG=cdb-shared %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc ChangeLog NEWS debian/{changelog,copyright} %attr(755,root,root) %{_bindir}/cdb %attr(755,root,root) %{_libdir}/libcdb.so.1 %{_mandir}/man1/cdb.1* %{_mandir}/man5/cdb.5* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libcdb.so %{_mandir}/man3/cdb.3* %{_includedir}/cdb.h %files static %defattr(644,root,root,755) %{_libdir}/libcdb.a %files -n nss_tinycdb %defattr(644,root,root,755) %attr(755,root,root) /%{_lib}/libnss_cdb.so.2 /etc/cdb-Makefile