]>
Commit | Line | Data |
---|---|---|
44928e20 JB |
1 | Summary: TDB - Trivial Database |
2 | Summary(pl.UTF-8): TDB - prosta baza danych | |
3 | Name: tdb | |
4 | Version: 1.2.9 | |
5 | Release: 1 | |
6 | License: LGPL v3+ | |
7 | Group: Libraries | |
8 | Source0: http://samba.org/ftp/tdb/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 4d97d18bbe9040038d4e003495bb8cd1 | |
10 | URL: http://tdb.samba.org/ | |
44928e20 JB |
11 | BuildRequires: python-devel |
12 | BuildRequires: rpm-pythonprov | |
13 | Obsoletes: tdb-extras | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | TDB is a Trivial Database. In concept, it is very much like GDBM, and | |
18 | BSD's DB except that it allows multiple simultaneous writers and uses | |
19 | locking internally to keep writers from trampling on each other. TDB | |
20 | is also extremely small. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | TDB to Trivial Database, czyli prosta baza danych. W założeniach jest | |
24 | bardzo podobna do GDBM lub DB z BSD z wyjątkiem tego, że pozwala na | |
25 | zapis wielu procesom jednocześnie i używa wewnętrznie blokowania, aby | |
26 | nie pozwolić piszącym na zadeptanie się nawzajem. TDB jest ponadto | |
27 | ekstremalnie mała. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for TDB library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki TDB | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | Obsoletes: tdb-static | |
35 | ||
36 | %description devel | |
37 | Header files for TDB library. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki TDB. | |
41 | ||
42 | %package -n python-tdb | |
43 | Summary: Python bindings for TDB | |
44 | Summary(pl.UTF-8): Pythonowy interfejs do TDB | |
45 | Group: Libraries/Python | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | %pyrequires_eq python-libs | |
48 | ||
49 | %description -n python-tdb | |
50 | Python bindings for TDB. | |
51 | ||
52 | %description -n python-tdb -l pl.UTF-8 | |
53 | Pythonowy interfejs do TDB. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | ||
58 | %build | |
59 | # note: configure in fact is waf call | |
60 | CC="%{__cc}" \ | |
61 | CFLAGS="%{rpmcflags}" \ | |
62 | PYTHONDIR=%{py_sitedir} \ | |
63 | ./configure \ | |
64 | --prefix=%{_prefix} \ | |
65 | --libdir=%{_libdir} | |
66 | ||
67 | %{__make} \ | |
68 | V=1 | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
44928e20 JB |
76 | %clean |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc docs/README | |
85 | %attr(755,root,root) %{_bindir}/tdbbackup | |
86 | %attr(755,root,root) %{_bindir}/tdbdump | |
87 | %attr(755,root,root) %{_bindir}/tdbrestore | |
88 | %attr(755,root,root) %{_bindir}/tdbtool | |
89 | %attr(755,root,root) %{_libdir}/libtdb.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libtdb.so.1 | |
91 | %{_mandir}/man8/tdbbackup.8* | |
92 | %{_mandir}/man8/tdbdump.8* | |
93 | %{_mandir}/man8/tdbrestore.8* | |
94 | %{_mandir}/man8/tdbtool.8* | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libtdb.so | |
99 | %{_includedir}/tdb.h | |
100 | %{_pkgconfigdir}/tdb.pc | |
101 | ||
102 | %files -n python-tdb | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{py_sitedir}/tdb.so |