############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = libldb version = 2.8.0 release = 1 thisapp = ldb-%{version} groups = System/Libraries url = https://ldb.samba.org/ license = LGPLv3+ summary = A schema-less, ldap like, API and database description An extensible library that implements an LDAP like API to access remote LDAP servers, or use local tdb databases. end source_dl = https://download.samba.org/pub/ldb/ build requires cmocka-devel docbook-utils docbook-xsl libtalloc-devel >= 2.4.1 libtdb-devel >= 1.4.9 libtevent-devel >= 0.15.0 libtirpc-devel libxcrypt-devel lmdb-devel >= 0.9.16 patchelf popt-devel python3-devel python3-talloc python3-tdb python3-tevent end configure_options += \ --disable-rpath \ --disable-rpath-install \ --bundled-libraries=NONE \ --with-modulesdir=%{libdir}/ldb/modules \ --with-privatelibdir=%{libdir}/ldb test make check end install_cmds # Remove rpath from binaries. find %{BUILDROOT}%{bindir} -type f -executable \ -exec patchelf --remove-rpath {} \; end end packages package %{name} package ldb-tools summary = Tools to manage LDB files. description %{summary} end files %{bindir} %{libdir}/ldb/libldb-cmdline* %{mandir}/man1/* end end package %{name}-devel template DEVEL end package python3-ldb template PYTHON3 files += %{libdir}/libpyldb* end package %{name}-debuginfo template DEBUGINFO end end