Author: qboosh Date: Tue Dec 26 16:21:20 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - updated to 0.76 - new desc taken from URL instead of one from cdb package - build static lib, added -static and nss_tinycdb packages
---- Files affected: SPECS: tinycdb.spec (1.16 -> 1.17) ---- Diffs: ================================================================ Index: SPECS/tinycdb.spec diff -u SPECS/tinycdb.spec:1.16 SPECS/tinycdb.spec:1.17 --- SPECS/tinycdb.spec:1.16 Wed Nov 16 21:56:13 2005 +++ SPECS/tinycdb.spec Tue Dec 26 17:21:14 2006 @@ -2,111 +2,141 @@ Summary: A package for maintenance of constant databases Summary(pl): Stała baza danych Name: tinycdb -Version: 0.74 -Release: 4 +Version: 0.76 +Release: 1 License: Public Domain Group: Applications/Databases -Source0: ftp://ftp.corpit.ru/pub/tinycdb/%{name}-%{version}.tar.gz -# Source0-md5: 73a29c3ec6c1e5a07dc23ebd4b870bc9 +Source0: ftp://ftp.corpit.ru/pub/tinycdb/%{name}_%{version}.tar.gz +# Source0-md5: 77db6fa098b674819ba1e06689bc87e8 URL: http://www.corpit.ru/mjt/tinycdb.html BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -tinycdb is a small, fast and reliable utility set and subroutine -library for creating and reading constant databases. The database -structure is tuned for fast reading: -- Successful lookups take normally just two disk accesses. -- Unsuccessful lookups take only one disk access. -- Small disk space and memory size requirements; a database uses 2048 - bytes for the header and 24 bytes per record. -- Maximum database size is 4GB; individual record size is not - otherwise limited. -- Portable file format. -- Fast creation of new databases. -- No locking, updates are atomical. +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 the utility. +This package contains shared library and cdb utility. %description -l pl -tinycdb jest szybkim, niezawodnym, małym pakietem do tworzenia i -czytania stałych baz danych. Struktura bazy została zoptymalizowana do -szybkiego odczytu: -- Udane odwołania normalnie potrzebują tylko dwóch odwołań do dysku. -- Nieudane odwołania potrzebują tylko jednego odwołania do dysku. -- Małe wymagania co do miejsca do dysku i pamięci; baza danych używa - 2048 bajtów na nagłówek i 24 bajtów na rekord. -- Maksymalny rozmiar bazy to 4GB; rozmiar pojedynczego rekordu nie ma - innych ograniczeń. -- Przenośny format pliku. -- Szybkie tworzenie nowych baz. -- Nie ma blokowania, zmiany są atomowe. +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 narzędzie. +Ten pakiet zawiera bibliotekę współdzieloną i narzędzie cdb. %package devel -Summary: Development libraries and header files for tinycdb -Summary(de): Entwicklungs-Libraries und Header-Dateien für tinycdb -Summary(fr): Bibliothčques de développement et en-tętes pour tinycdb -Summary(pl): Biblioteki i pliki nagłówkowe dla tinycdb -Summary(tr): tinycdb için baţlýk dosyalarý ve geliţtirme kitaplýklarý +Summary: Header file for tinycdb +Summary(de): Header-Datei für tinycdb +Summary(pl): Plik nagłówkowy tinycdb Group: Development/Libraries +Requires: %{name} = %{version}-%{release} %description devel -These are the development libraries and header files for tinycdb. -These are required if you plan to do development using the tinycdb -database. - -%description devel -l de -Dies sind die Entwicklungs-Libraries und Header-Dateien für tinycdbr. -Sie sind darauf angewiesen, wenn Sie vorhaben, die tinycdb für -Entwicklungsarbeiten zu benutzen. - -%description devel -l fr -Ce sont les librairies de développement et les fichiers d'en-tęte pour -tinycdb. Ceci est nécessaire si vous désirez développer en utilisant -la base de données tinycdb. +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 -W pakiecie tym znajdują się pliki nagłówkowe i biblioteki dla systemu -bazy danych tinycdb. +W pakiecie tym znajduje się plik nagłówkowy dla systemu bazy danych +tinycdb. Jest potrzebny do programowania z użyciem tej bazy. -%description devel -l tr -GNU veri tabaný sistemi tinycdb ile program geliţtirmek için gereken -baţlýk dosyalarý ve kitaplýklar. +%package static +Summary: Static tinycdb library +Summary(pl): Statyczna biblioteka tinycdb +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static tinycdb library. + +%description static -l pl +Statyczna biblioteka tinycdb. + +%package -n nss_tinycdb +Summary: NSS module which uses tinycdb database +Summary(pl): 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 +Moduł NSS używający bazy danych tinycdb do przechowywania wpisów +passwd, group i shadow. %prep %setup -q %build -%{__make} \ +%{__make} shared staticlib nss \ CC="%{__cc}" \ - CFLAGS="%{rpmcflags}" + CFLAGS="%{rpmcflags}" \ + NSS_USELIB="\$(SOLIB)" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_mandir}/man{1,3,5}} -install cdb $RPM_BUILD_ROOT%{_bindir} -install cdb.h $RPM_BUILD_ROOT%{_includedir} -install lib*.a $RPM_BUILD_ROOT%{_libdir} -install cdb.1 $RPM_BUILD_ROOT%{_mandir}/man1 -install cdb.3 $RPM_BUILD_ROOT%{_mandir}/man3 -install cdb.5 $RPM_BUILD_ROOT%{_mandir}/man5 +%{__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 -%attr(755,root,root) %{_bindir}/* -%{_mandir}/man[15]/* +%doc ChangeLog NEWS +%attr(755,root,root) %{_bindir}/cdb +%attr(755,root,root) %{_libdir}/libcdb.so.* +%{_mandir}/man1/cdb.1* +%{_mandir}/man5/cdb.5* %files devel %defattr(644,root,root,755) -%{_libdir}/lib*.a -%{_mandir}/man3/* -%{_includedir}/* +%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 %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -114,6 +144,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.17 2006/12/26 16:21:14 qboosh +- updated to 0.76 +- new desc taken from URL instead of one from cdb package +- build static lib, added -static and nss_tinycdb packages + Revision 1.16 2005/11/16 20:56:13 qboosh - unified ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/tinycdb.spec?r1=1.16&r2=1.17&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
