Update conditional build of lmdb
This commit is contained in:
parent
160b21d5a3
commit
f79e4c7cba
13
libldb.spec
13
libldb.spec
@ -2,6 +2,13 @@
|
|||||||
%{!?python2_sitelib: %global python2_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
%{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
|
|
||||||
|
# lmdb is not supported on 32 bit architectures
|
||||||
|
%if ((0%{?fedora} || 0%{?epel} > 6) && 0%{?__isa_bits} == 64)
|
||||||
|
%global with_lmdb 1
|
||||||
|
%else
|
||||||
|
%global without_lmdb_flags --without-ldb-lmdb
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%endif
|
%endif
|
||||||
@ -44,7 +51,9 @@ BuildRequires: gcc
|
|||||||
BuildRequires: libtalloc-devel >= %{talloc_version}
|
BuildRequires: libtalloc-devel >= %{talloc_version}
|
||||||
BuildRequires: libtdb-devel >= %{tdb_version}
|
BuildRequires: libtdb-devel >= %{tdb_version}
|
||||||
BuildRequires: libtevent-devel >= %{tevent_version}
|
BuildRequires: libtevent-devel >= %{tevent_version}
|
||||||
|
%if 0%{?with_lmdb}
|
||||||
BuildRequires: lmdb-devel >= 0.9.16
|
BuildRequires: lmdb-devel >= 0.9.16
|
||||||
|
%endif
|
||||||
BuildRequires: popt-devel
|
BuildRequires: popt-devel
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: docbook-style-xsl
|
BuildRequires: docbook-style-xsl
|
||||||
@ -166,6 +175,7 @@ sed -e 's:\.\./\.\./buildtools:./buildtools:' -i Makefile
|
|||||||
--builtin-libraries=replace \
|
--builtin-libraries=replace \
|
||||||
--with-modulesdir=%{_libdir}/ldb/modules \
|
--with-modulesdir=%{_libdir}/ldb/modules \
|
||||||
%{?extra_python} \
|
%{?extra_python} \
|
||||||
|
%{?without_lmdb_flags} \
|
||||||
--with-privatelibdir=%{_libdir}/ldb
|
--with-privatelibdir=%{_libdir}/ldb
|
||||||
|
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
@ -200,8 +210,7 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
|
|||||||
%{_libdir}/ldb/libldb-key-value.so
|
%{_libdir}/ldb/libldb-key-value.so
|
||||||
%{_libdir}/ldb/libldb-tdb-err-map.so
|
%{_libdir}/ldb/libldb-tdb-err-map.so
|
||||||
%{_libdir}/ldb/libldb-tdb-int.so
|
%{_libdir}/ldb/libldb-tdb-int.so
|
||||||
# lmdb is not supported on 32 bit architectures
|
%if 0%{?with_lmdb}
|
||||||
%if 0%{?__isa_bits} == 64
|
|
||||||
%{_libdir}/ldb/libldb-mdb-int.so
|
%{_libdir}/ldb/libldb-mdb-int.so
|
||||||
%endif
|
%endif
|
||||||
%dir %{_libdir}/ldb/modules
|
%dir %{_libdir}/ldb/modules
|
||||||
|
Loading…
Reference in New Issue
Block a user