]> git.pld-linux.org Git - SPECS.git/blob - tinycdb.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / tinycdb.spec
1 Summary:        A package for maintenance of constant databases
2 Summary(pl.UTF-8):      Stała baza danych
3 Name:           tinycdb
4 Version:        0.78
5 Release:        1
6 License:        Public Domain
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)
13
14 %description
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.
24
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.
29
30 This package contains shared library and cdb utility.
31
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.
42
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.
48
49 Ten pakiet zawiera bibliotekę współdzieloną i narzędzie cdb.
50
51 %package devel
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}
57
58 %description devel
59 This package contains the header file for tinycdb. It is required if
60 you plan to do development using the tinycdb database.
61
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.
65
66 %package static
67 Summary:        Static tinycdb library
68 Summary(pl.UTF-8):      Statyczna biblioteka tinycdb
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 Static tinycdb library.
74
75 %description static -l pl.UTF-8
76 Statyczna biblioteka tinycdb.
77
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
81 Group:          Libraries
82 Requires:       %{name} = %{version}-%{release}
83
84 %description -n nss_tinycdb
85 NSS module which uses tinycdb database to keep passwd, group and
86 shadow entries.
87
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.
91
92 %prep
93 %setup -q
94
95 %build
96 %{__make} -j1 shared staticlib nss \
97         CC="%{__cc}" \
98         CFLAGS="%{rpmcflags}" \
99         NSS_USELIB="\$(SOLIB)"
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install install-sharedlib install-nss \
105         DESTDIR=$RPM_BUILD_ROOT \
106         prefix=%{_prefix} \
107         libdir=%{_libdir} \
108         mandir=%{_mandir} \
109         syslibdir=/%{_lib} \
110         INSTALLPROG=cdb-shared
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %files
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*
125
126 %files devel
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libcdb.so
129 %{_mandir}/man3/cdb.3*
130 %{_includedir}/cdb.h
131
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/libcdb.a
135
136 %files -n nss_tinycdb
137 %defattr(644,root,root,755)
138 %attr(755,root,root) /%{_lib}/libnss_cdb.so.2
139 /etc/cdb-Makefile
This page took 0.134713 seconds and 3 git commands to generate.