- BuildRequire libtalloc-devel, libtdb-devel, and libtevent-devel.

- Configure with bundled tdb2 library.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=5
This commit is contained in:
Lars Müller 2012-05-31 14:04:46 +00:00 committed by Git OBS Bridge
parent e22946fdd5
commit 3a10c28000
3 changed files with 15 additions and 11 deletions

2
ldb-tools.rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
# non PIE is ok for tdbbackup tdbdump tdbtool
setBadness('non-position-independent-executable',0)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 31 13:46:42 UTC 2012 - lmuelle@suse.com
- BuildRequire libtalloc-devel, libtdb-devel, and libtevent-devel.
- Configure with bundled tdb2 library.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 25 11:12:36 UTC 2012 - lmuelle@suse.com Fri May 25 11:12:36 UTC 2012 - lmuelle@suse.com

View File

@ -25,10 +25,9 @@ BuildRequires: pkg-config
%else %else
BuildRequires: pkgconfig BuildRequires: pkgconfig
%endif %endif
#!BuildIgnore: libtalloc-devel BuildRequires: libtalloc-devel >= 2.0.7
BuildRequires: libtalloc2-devel >= 2.0.7 BuildRequires: libtdb-devel >= 1.2.10
BuildRequires: libtdb1-devel >= 1.2.10 BuildRequires: libtevent-devel >= 0.9.15
BuildRequires: libtevent0-devel >= 0.9.15
BuildRequires: python-tdb >= 1.2.10 BuildRequires: python-tdb >= 1.2.10
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-tevent >= 0.9.15 BuildRequires: python-tevent >= 0.9.15
@ -91,8 +90,6 @@ CONFIGURE_OPTIONS="\
--with-modulesdir=%{_libdir} \ --with-modulesdir=%{_libdir} \
--bundled-libraries=tdb2 \ --bundled-libraries=tdb2 \
" "
# --bundled-libraries=NONE \
# --bundled-libraries=!tdb \
./configure ${CONFIGURE_OPTIONS} ./configure ${CONFIGURE_OPTIONS}
%{__make} %{build_make_smp_mflags} \ %{__make} %{build_make_smp_mflags} \
all all
@ -112,13 +109,13 @@ DESTDIR=${RPM_BUILD_ROOT} make install
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libldb.so.* %{_libdir}/libldb.so.*
%{_libdir}/libpyldb-util.so.*
%dir %{_libdir}/ldb
%{_libdir}/ldb/libccan.so.* %{_libdir}/ldb/libccan.so.*
%{_libdir}/ldb/libpytalloc-util.so.* %{_libdir}/ldb/libpytalloc-util.so.*
%{_libdir}/ldb/libtdb.so.* %{_libdir}/ldb/libtdb.so.*
%{_libdir}/libpyldb-util.so.*
%{_libdir}/ldb/libtdb_compat.so %{_libdir}/ldb/libtdb_compat.so
%{_libdir}/ldb/asq.so %{_libdir}/ldb/asq.so
#%{_libdir}/ldb/ldap.so
%{_libdir}/ldb/paged_results.so %{_libdir}/ldb/paged_results.so
%{_libdir}/ldb/paged_searches.so %{_libdir}/ldb/paged_searches.so
%{_libdir}/ldb/rdn_name.so %{_libdir}/ldb/rdn_name.so
@ -137,18 +134,18 @@ DESTDIR=${RPM_BUILD_ROOT} make install
%{_includedir}/pyldb.h %{_includedir}/pyldb.h
%{_includedir}/pytalloc.h %{_includedir}/pytalloc.h
%{_libdir}/libldb.so %{_libdir}/libldb.so
%dir %{_libdir}/ldb
%{_libdir}/ldb/libldb-cmdline.so %{_libdir}/ldb/libldb-cmdline.so
%{_libdir}/ldb/libpopt.so %{_libdir}/ldb/libpopt.so
%{_libdir}/libpyldb-util.so %{_libdir}/libpyldb-util.so
%{_libdir}/pkgconfig/ldb.pc %{_libdir}/pkgconfig/ldb.pc
%{_libdir}/pkgconfig/pyldb-util.pc %{_libdir}/pkgconfig/pyldb-util.pc
%{_libdir}/python%{python_version}/site-packages/ldb.so %{_libdir}/python%{python_version}/site-packages/ldb.so
%{_libdir}/python%{python_version}/site-packages/_tevent.so
%{_libdir}/python%{python_version}/site-packages/talloc.so %{_libdir}/python%{python_version}/site-packages/talloc.so
%{_libdir}/python%{python_version}/site-packages/tdb.so %{_libdir}/python%{python_version}/site-packages/tdb.so
%{_libdir}/python%{python_version}/site-packages/tevent.py
%files -n ldb-tools %files -n ldb-tools
%defattr(-,root,root)
%{_bindir}/ldbadd %{_bindir}/ldbadd
%{_bindir}/ldbdel %{_bindir}/ldbdel
%{_bindir}/ldbedit %{_bindir}/ldbedit
@ -160,5 +157,4 @@ DESTDIR=${RPM_BUILD_ROOT} make install
%{_bindir}/tdbrestore %{_bindir}/tdbrestore
%{_bindir}/tdbtool %{_bindir}/tdbtool
%changelog %changelog