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