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