]> git.pld-linux.org Git - packages/tdb.git/blame - tdb.spec
- rel 3; install symlink
[packages/tdb.git] / tdb.spec
CommitLineData
50d35660 1%define snap 20080818
088644dc 2Summary: TDB - Trivial Database
1a4b6659 3Summary(pl.UTF-8): TDB - prosta baza danych
088644dc 4Name: tdb
50d35660 5Version: 1.1.2
8e914957 6Release: 0.%{snap}.3
088644dc
JB
7License: GPL
8Group: Libraries
50d35660
AM
9Source0: %{name}-%{snap}.tar.bz2
10# Source0-md5: 128dfb4865c2fcabf36d8cfbb1d20d06
11URL: http://tdb.samba.org/
65a3d788 12BuildRequires: gdbm-devel
50d35660
AM
13BuildRequires: python-devel
14BuildRequires: rpm-pythonprov
15Obsoletes: tdb-extras
088644dc
JB
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19TDB is a Trivial Database. In concept, it is very much like GDBM, and
20BSD's DB except that it allows multiple simultaneous writers and uses
21locking internally to keep writers from trampling on each other. TDB
22is also extremely small.
23
5e5ab7b8
JR
24%description -l pl.UTF-8
25TDB to Trivial Database, czyli prosta baza danych. W założeniach jest
26bardzo podobna do GDBM lub DB z BSD z wyjątkiem tego, że pozwala na
27zapis wielu procesom jednocześnie i używa wewnętrznie blokowania, aby
28nie pozwolić piszącym na zadeptanie się nawzajem. TDB jest ponadto
29ekstremalnie mała.
088644dc
JB
30
31%package devel
32Summary: Header files for TDB library
1a4b6659 33Summary(pl.UTF-8): Pliki nagłówkowe biblioteki TDB
088644dc 34Group: Development/Libraries
528610b1 35Requires: %{name} = %{version}-%{release}
088644dc
JB
36
37%description devel
38Header files for TDB library.
39
5e5ab7b8
JR
40%description devel -l pl.UTF-8
41Pliki nagłówkowe biblioteki TDB.
088644dc
JB
42
43%package static
44Summary: Static TDB library
1a4b6659 45Summary(pl.UTF-8): Statyczna biblioteka TDB
088644dc 46Group: Development/Libraries
528610b1 47Requires: %{name}-devel = %{version}-%{release}
088644dc
JB
48
49%description static
50Static TDB library.
51
5e5ab7b8 52%description static -l pl.UTF-8
088644dc
JB
53Statyczna biblioteka TDB.
54
50d35660
AM
55%package -n python-tdb
56Summary: Python bindings for TDB
57Group: Libraries/Python
58Requires: %{name} = %{version}-%{release}
59%pyrequires_eq python-libs
60
61%description -n python-tdb
62Python bindings for TDB.
63
088644dc 64%prep
50d35660 65%setup -q -n %{name}
088644dc
JB
66
67%build
73635368 68%configure
088644dc
JB
69%{__make}
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
74%{__make} install \
75 DESTDIR=$RPM_BUILD_ROOT
76
8e914957
AM
77# it's a symlink
78cp -a libtdb.so $RPM_BUILD_ROOT%{_libdir}
50d35660
AM
79
80%py_comp $RPM_BUILD_ROOT
81%py_ocomp $RPM_BUILD_ROOT
82%py_postclean
83
088644dc
JB
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(644,root,root,755)
50d35660
AM
92%doc docs/README
93%attr(755,root,root) %{_bindir}/tdbbackup
65a3d788 94%attr(755,root,root) %{_bindir}/tdbdump
95%attr(755,root,root) %{_bindir}/tdbtool
088644dc
JB
96%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
97
98%files devel
99%defattr(644,root,root,755)
100%attr(755,root,root) %{_libdir}/lib*.so
088644dc 101%{_includedir}/tdb.h
50d35660 102%{_pkgconfigdir}/*.pc
088644dc
JB
103
104%files static
105%defattr(644,root,root,755)
106%{_libdir}/lib*.a
65a3d788 107
50d35660 108%files -n python-tdb
65a3d788 109%defattr(644,root,root,755)
50d35660
AM
110%attr(755,root,root) %{py_sitedir}/*.so
111%{py_sitescriptdir}/*.py[co]
This page took 0.093516 seconds and 4 git commands to generate.