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