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