1 Summary: TDB - Trivial Database
2 Summary(pl.UTF-8): TDB - prosta baza danych
9 Source0: https://www.samba.org/ftp/tdb/%{name}-%{version}.tar.gz
10 # Source0-md5: 8f8566d2a995ff1f01df556aa279f68f
11 URL: http://tdb.samba.org/
12 BuildRequires: python-devel >= 2
13 BuildRequires: rpm-pythonprov
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 TDB is a Trivial Database. In concept, it is very much like GDBM, and
19 BSD's DB except that it allows multiple simultaneous writers and uses
20 locking internally to keep writers from trampling on each other. TDB
21 is also extremely small.
23 %description -l pl.UTF-8
24 TDB to Trivial Database, czyli prosta baza danych. W założeniach jest
25 bardzo podobna do GDBM lub DB z BSD z wyjątkiem tego, że pozwala na
26 zapis wielu procesom jednocześnie i używa wewnętrznie blokowania, aby
27 nie pozwolić piszącym na zadeptanie się nawzajem. TDB jest ponadto
31 Summary: Header files for TDB library
32 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki TDB
33 Group: Development/Libraries
34 Requires: %{name} = %{epoch}:%{version}-%{release}
38 Header files for TDB library.
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki TDB.
43 %package -n python-tdb
44 Summary: Python bindings for TDB
45 Summary(pl.UTF-8): Pythonowy interfejs do TDB
46 Group: Libraries/Python
47 Requires: %{name} = %{epoch}:%{version}-%{release}
48 %pyrequires_eq python-libs
50 %description -n python-tdb
51 Python bindings for TDB.
53 %description -n python-tdb -l pl.UTF-8
54 Pythonowy interfejs do TDB.
60 # note: configure in fact is waf call
62 CFLAGS="%{rpmcflags}" \
63 PYTHONDIR=%{py_sitedir} \
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
84 %triggerpostun -p /sbin/postshell -- tdb < 2:1.2.9-2
85 -rm -f %{_libdir}/libtdb.so.1
89 %defattr(644,root,root,755)
90 %doc docs/{README,mutex.txt,tracing.txt}
91 %attr(755,root,root) %{_bindir}/tdbbackup
92 %attr(755,root,root) %{_bindir}/tdbdump
93 %attr(755,root,root) %{_bindir}/tdbrestore
94 %attr(755,root,root) %{_bindir}/tdbtool
95 %attr(755,root,root) %{_libdir}/libtdb.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libtdb.so.1
97 %{_mandir}/man8/tdbbackup.8*
98 %{_mandir}/man8/tdbdump.8*
99 %{_mandir}/man8/tdbrestore.8*
100 %{_mandir}/man8/tdbtool.8*
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libtdb.so
106 %{_pkgconfigdir}/tdb.pc
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{py_sitedir}/tdb.so