6 Summary: Python interface for BerkeleyDB
7 Summary(pl.UTF-8): Interfejs Pythona do BerkeleyDB
11 License: BSD-like w/o adv. clause
12 Group: Development/Languages/Python
13 Source0: http://pypi.python.org/packages/source/b/bsddb3/%{pname}-%{version}.tar.gz
14 # Source0-md5: 8d998ee04dc05f3808a7edfe3011decc
16 URL: http://www.argo.es/~jcea/programacion/pybsddb.htm
17 BuildRequires: db-devel >= 4.1.25
19 BuildRequires: python-devel >= 1:2.3
20 BuildRequires: python-modules
23 BuildRequires: python3
24 BuildRequires: python3-devel
25 BuildRequires: python3-modules
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.710
29 %pyrequires_eq python-modules
31 Obsoletes: python-bsddb3
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 This module provides a nearly complete wrapping of the Sleepycat C API
36 for the Database Environment, Database, Cursor, and Transaction
37 objects, and each of these is exposed as a Python Type in the
38 bsddb3.db module. The databse objects can use various access methods:
39 btree, hash, recno, and queue. For the first time all of these are
40 fully supported in the Python wrappers. Please see the documents in
41 the docs directory of the source distribution or at the website for
42 more details on the types and methods provided.
44 %description -l pl.UTF-8
45 Ten moduł dostarcza prawie całkowite opakowanie API C Sleepycat do
46 obiektów środowiska baz danych, baz danych, kursorów i transakcji, z
47 których każdy jest udostępniony jako pythonowy typ w module bsddb3.db.
48 Obiekty bazy danych mogą używać różnych metod dostępu: btree, hash,
49 recno i queue. Jest to pierwsza implementacja obsługi tych obiektów
50 dla Pythona. Więcej szczegółów o typach i metodach znajduje się w
51 załączonej dokumentacji lub na stronie WWW.
53 %package -n python3-%{pname}
54 Summary: Python interface for BerkeleyDB
55 Summary(pl.UTF-8): Interfejs Pythona do BerkeleyDB
56 Group: Development/Languages/Python
58 %description -n python3-%{pname}
59 This module provides a nearly complete wrapping of the Oracle C API
60 for the Database Environment, Database, Cursor, and Transaction
61 objects, and each of these is exposed as a Python Type in the
62 bsddb3.db module. The databse objects can use various access methods:
63 btree, hash, recno, and queue. For the first time all of these are
64 fully supported in the Python wrappers. Please see the documents in
65 the docs directory of the source distribution or at the website for
66 more details on the types and methods provided.
68 %description -n python3-%{pname} -l pl.UTF-8
69 Ten moduł dostarcza prawie całkowite opakowanie API C Oracle do
70 obiektów środowiska baz danych, baz danych, kursorów i transakcji, z
71 których każdy jest udostępniony jako pythonowy typ w module bsddb3.db.
72 Obiekty bazy danych mogą używać różnych metod dostępu: btree, hash,
73 recno i queue. Jest to pierwsza implementacja obsługi tych obiektów
74 dla Pythona. Więcej szczegółów o typach i metodach znajduje się w
75 załączonej dokumentacji lub na stronie WWW.
78 %setup -q -n %{pname}-%{version}
84 --berkeley-db-libdir=%{_libdir} \
85 --berkeley-db=%{_prefix}
90 --berkeley-db-libdir=%{_libdir} \
91 --berkeley-db=%{_prefix}
95 rm -rf $RPM_BUILD_ROOT
102 # do not include in main package tests and devel headers
103 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/bsddb3/tests
104 %{__rm} -r $RPM_BUILD_ROOT%{py_incdir}/bsddb3/bsddb.h
110 # do not include in main package tests and devel headers
111 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/bsddb3/tests
112 %{__rm} -r $RPM_BUILD_ROOT%{py3_incdir}/bsddb3/bsddb.h
117 rm -rf $RPM_BUILD_ROOT
121 %defattr(644,root,root,755)
123 %dir %{py_sitedir}/bsddb3
124 %{py_sitedir}/bsddb3/*.py[co]
125 %attr(755,root,root) %{py_sitedir}/bsddb3/*.so
126 %if "%{py_ver}" > "2.4"
127 %{py_sitedir}/bsddb3-*.egg-info
132 %files -n python3-%{pname}
133 %defattr(644,root,root,755)
135 %dir %{py3_sitedir}/bsddb3
136 %{py3_sitedir}/*.egg-info
137 %{py3_sitedir}/bsddb3/*.py
138 %{py3_sitedir}/bsddb3/__pycache__
139 %attr(755,root,root) %{py3_sitedir}/bsddb3/*.so