|
|
c5a54a |
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
c5a54a |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
c5a54a |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
c5a54a |
%endif
|
|
|
c5a54a |
|
|
|
0f304a |
%define talloc_version 2.1.2
|
|
|
0f304a |
%define tdb_version 1.3.5
|
|
|
0f304a |
%define tevent_version 0.9.24
|
|
|
c5a54a |
|
|
|
c5a54a |
Name: libldb
|
|
|
75c5c2 |
Version: 1.1.29
|
|
|
675ca7 |
Release: 1%{?dist}
|
|
|
c5a54a |
Group: Development/Libraries
|
|
|
c5a54a |
Summary: A schema-less, ldap like, API and database
|
|
|
c5a54a |
Requires: libtalloc%{?_isa} >= %{talloc_version}
|
|
|
c5a54a |
Requires: libtdb%{?_isa} >= %{tdb_version}
|
|
|
c5a54a |
Requires: libtevent%{?_isa} >= %{tevent_version}
|
|
|
c5a54a |
License: LGPLv3+
|
|
|
c5a54a |
URL: http://ldb.samba.org/
|
|
|
c5a54a |
Source: http://samba.org/ftp/ldb/ldb-%{version}.tar.gz
|
|
|
c5a54a |
|
|
|
c5a54a |
BuildRequires: libtalloc-devel >= %{talloc_version}
|
|
|
c5a54a |
BuildRequires: libtdb-devel >= %{tdb_version}
|
|
|
c5a54a |
BuildRequires: libtevent-devel >= %{tevent_version}
|
|
|
c5a54a |
%{?fedora:BuildRequires: popt-devel}
|
|
|
c5a54a |
%if 0%{?rhel} <= 5
|
|
|
c5a54a |
BuildRequires: popt
|
|
|
c5a54a |
%endif
|
|
|
c5a54a |
%if 0%{?rhel} >= 6
|
|
|
c5a54a |
BuildRequires: popt-devel
|
|
|
c5a54a |
%endif
|
|
|
c5a54a |
BuildRequires: autoconf
|
|
|
c5a54a |
BuildRequires: libxslt
|
|
|
c5a54a |
BuildRequires: docbook-style-xsl
|
|
|
c5a54a |
BuildRequires: python-devel
|
|
|
c5a54a |
BuildRequires: python-tdb
|
|
|
c5a54a |
BuildRequires: pytalloc-devel
|
|
|
c5a54a |
BuildRequires: python-tevent
|
|
|
c5a54a |
BuildRequires: doxygen
|
|
|
c5a54a |
|
|
|
c5a54a |
Provides: bundled(libreplace)
|
|
|
c5a54a |
Provides: bundled(libtdb_compat)
|
|
|
c5a54a |
|
|
|
c5a54a |
# Patches
|
|
|
c5a54a |
|
|
|
c5a54a |
%description
|
|
|
c5a54a |
An extensible library that implements an LDAP like API to access remote LDAP
|
|
|
c5a54a |
servers, or use local tdb databases.
|
|
|
c5a54a |
|
|
|
c5a54a |
%package -n ldb-tools
|
|
|
c5a54a |
Group: Development/Libraries
|
|
|
c5a54a |
Summary: Tools to manage LDB files
|
|
|
c5a54a |
Requires: libldb%{?_isa} = %{version}-%{release}
|
|
|
c5a54a |
|
|
|
c5a54a |
%description -n ldb-tools
|
|
|
c5a54a |
Tools to manage LDB files
|
|
|
c5a54a |
|
|
|
c5a54a |
%package devel
|
|
|
c5a54a |
Group: Development/Libraries
|
|
|
c5a54a |
Summary: Developer tools for the LDB library
|
|
|
c5a54a |
Requires: libldb%{?_isa} = %{version}-%{release}
|
|
|
c5a54a |
Requires: libtdb-devel%{?_isa} >= %{tdb_version}
|
|
|
c5a54a |
Requires: libtalloc-devel%{?_isa} >= %{talloc_version}
|
|
|
c5a54a |
Requires: libtevent-devel%{?_isa} >= %{tevent_version}
|
|
|
c5a54a |
Requires: pkgconfig
|
|
|
c5a54a |
|
|
|
c5a54a |
%description devel
|
|
|
c5a54a |
Header files needed to develop programs that link against the LDB library.
|
|
|
c5a54a |
|
|
|
c5a54a |
%package -n pyldb
|
|
|
c5a54a |
Group: Development/Libraries
|
|
|
c5a54a |
Summary: Python bindings for the LDB library
|
|
|
c5a54a |
Requires: libldb%{?_isa} = %{version}-%{release}
|
|
|
c5a54a |
Requires: python-tdb%{?_isa} >= %{tdb_version}
|
|
|
c5a54a |
|
|
|
c5a54a |
%description -n pyldb
|
|
|
c5a54a |
Python bindings for the LDB library
|
|
|
c5a54a |
|
|
|
c5a54a |
%package -n pyldb-devel
|
|
|
c5a54a |
Group: Development/Libraries
|
|
|
c5a54a |
Summary: Development files for the Python bindings for the LDB library
|
|
|
c5a54a |
Requires: pyldb%{?_isa} = %{version}-%{release}
|
|
|
c5a54a |
|
|
|
c5a54a |
%description -n pyldb-devel
|
|
|
c5a54a |
Development files for the Python bindings for the LDB library
|
|
|
c5a54a |
|
|
|
c5a54a |
%prep
|
|
|
c5a54a |
%setup -q -n ldb-%{version}
|
|
|
c5a54a |
|
|
|
c5a54a |
%build
|
|
|
c5a54a |
|
|
|
c5a54a |
%configure --disable-rpath \
|
|
|
c5a54a |
--disable-rpath-install \
|
|
|
c5a54a |
--bundled-libraries=NONE \
|
|
|
c5a54a |
--builtin-libraries=replace \
|
|
|
c5a54a |
--with-modulesdir=%{_libdir}/ldb/modules \
|
|
|
c5a54a |
--with-privatelibdir=%{_libdir}/ldb
|
|
|
c5a54a |
|
|
|
c5a54a |
# Don't build with multiple processors
|
|
|
c5a54a |
# It breaks due to a threading issue in WAF
|
|
|
c5a54a |
make V=1
|
|
|
c5a54a |
doxygen Doxyfile
|
|
|
c5a54a |
|
|
|
c5a54a |
%install
|
|
|
c5a54a |
make install DESTDIR=%{buildroot}
|
|
|
c5a54a |
|
|
|
c5a54a |
rm -f %{buildroot}%{_libdir}/libldb.a
|
|
|
c5a54a |
|
|
|
c5a54a |
# Shared libraries need to be marked executable for
|
|
|
c5a54a |
# rpmbuild to strip them and include them in debuginfo
|
|
|
c5a54a |
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
|
|
|
c5a54a |
|
|
|
c5a54a |
# Install API docs
|
|
|
c5a54a |
cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir}
|
|
|
c5a54a |
|
|
|
c5a54a |
# LDB 1.1.8+ bug: remove manpage named after full
|
|
|
c5a54a |
# file path
|
|
|
c5a54a |
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
|
|
|
c5a54a |
|
|
|
c5a54a |
%clean
|
|
|
c5a54a |
rm -rf %{buildroot}
|
|
|
c5a54a |
|
|
|
c5a54a |
%post -p /sbin/ldconfig
|
|
|
c5a54a |
|
|
|
c5a54a |
%postun -p /sbin/ldconfig
|
|
|
c5a54a |
|
|
|
c5a54a |
%files
|
|
|
c5a54a |
%defattr(-,root,root,-)
|
|
|
c5a54a |
%dir %{_libdir}/ldb
|
|
|
c5a54a |
%{_libdir}/libldb.so.*
|
|
|
c5a54a |
%dir %{_libdir}/ldb/modules
|
|
|
c5a54a |
%dir %{_libdir}/ldb/modules/ldb
|
|
|
c5a54a |
%{_libdir}/ldb/modules/ldb/*.so
|
|
|
c5a54a |
|
|
|
c5a54a |
%files -n ldb-tools
|
|
|
c5a54a |
%defattr(-,root,root,-)
|
|
|
c5a54a |
%{_bindir}/ldbadd
|
|
|
c5a54a |
%{_bindir}/ldbdel
|
|
|
c5a54a |
%{_bindir}/ldbedit
|
|
|
c5a54a |
%{_bindir}/ldbmodify
|
|
|
c5a54a |
%{_bindir}/ldbrename
|
|
|
c5a54a |
%{_bindir}/ldbsearch
|
|
|
c5a54a |
%{_libdir}/ldb/libldb-cmdline.so
|
|
|
c5a54a |
%{_mandir}/man1/ldbadd.1.*
|
|
|
c5a54a |
%{_mandir}/man1/ldbdel.1.*
|
|
|
c5a54a |
%{_mandir}/man1/ldbedit.1.*
|
|
|
c5a54a |
%{_mandir}/man1/ldbmodify.1.*
|
|
|
c5a54a |
%{_mandir}/man1/ldbrename.1.*
|
|
|
c5a54a |
%{_mandir}/man1/ldbsearch.1.*
|
|
|
c5a54a |
|
|
|
c5a54a |
%files devel
|
|
|
c5a54a |
%defattr(-,root,root,-)
|
|
|
c5a54a |
%{_includedir}/ldb_module.h
|
|
|
c5a54a |
%{_includedir}/ldb_handlers.h
|
|
|
c5a54a |
%{_includedir}/ldb_errors.h
|
|
|
c5a54a |
%{_includedir}/ldb_version.h
|
|
|
c5a54a |
%{_includedir}/ldb.h
|
|
|
c5a54a |
%{_libdir}/libldb.so
|
|
|
c5a54a |
|
|
|
c5a54a |
%{_libdir}/pkgconfig/ldb.pc
|
|
|
c5a54a |
%{_mandir}/man3/ldb*.gz
|
|
|
c5a54a |
%{_mandir}/man3/ldif*.gz
|
|
|
c5a54a |
|
|
|
c5a54a |
%files -n pyldb
|
|
|
c5a54a |
%defattr(-,root,root,-)
|
|
|
c5a54a |
%{python_sitearch}/ldb.so
|
|
|
c5a54a |
%{_libdir}/libpyldb-util.so.1*
|
|
|
675ca7 |
%{python_sitearch}/_ldb_text.py*
|
|
|
c5a54a |
|
|
|
c5a54a |
%files -n pyldb-devel
|
|
|
c5a54a |
%defattr(-,root,root,-)
|
|
|
c5a54a |
%{_includedir}/pyldb.h
|
|
|
c5a54a |
%{_libdir}/libpyldb-util.so
|
|
|
c5a54a |
%{_libdir}/pkgconfig/pyldb-util.pc
|
|
|
c5a54a |
%{_mandir}/man*/Py*.gz
|
|
|
c5a54a |
|
|
|
c5a54a |
%post -n pyldb -p /sbin/ldconfig
|
|
|
c5a54a |
%postun -n pyldb -p /sbin/ldconfig
|
|
|
c5a54a |
|
|
|
c5a54a |
%changelog
|
|
|
75c5c2 |
* Tue Feb 14 2017 Jakub Hrozek <jhrozek@redhat.com> - 1.1.29-1
|
|
|
75c5c2 |
- Resolves: rhbz#1393810 - Rebase libldb to enable samba rebase to
|
|
|
75c5c2 |
version 4.6.x
|
|
|
75c5c2 |
|
|
|
a06b4e |
* Thu Jun 9 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.1.26-1
|
|
|
a06b4e |
- Resolves: rhbz#1320253 - Rebase libldb to version 1.1.26
|
|
|
a06b4e |
|
|
|
675ca7 |
* Fri Apr 1 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.1.25-1
|
|
|
675ca7 |
- Rebase libldb to 1.1.25
|
|
|
a06b4e |
- Remove upstreamed patches
|
|
|
a06b4e |
- Related: rhbz#1322691
|
|
|
675ca7 |
|
|
|
a06b4e |
* Mon Dec 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.1.20-3
|
|
|
a06b4e |
- Resolves: rhbz#1290715 - CVE-2015-5330 libldb: samba: Remote memory read
|
|
|
a06b4e |
in Samba LDAP server [rhel-7.3]
|
|
|
509205 |
- Remove the patch from the previous commit, it doesn't fix a remotely
|
|
|
509205 |
eploitable issue. Add patches from upstream #11636 instead.
|
|
|
509205 |
|
|
|
a06b4e |
* Mon Dec 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.1.20-2
|
|
|
a06b4e |
- Resolves: rhbz#1290715 - CVE-2015-5330 libldb: samba: Remote memory read
|
|
|
a06b4e |
in Samba LDAP server [rhel-7.3]
|
|
|
509205 |
|
|
|
509205 |
* Wed Jun 3 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.1.20-1
|
|
|
0f304a |
- Related: rhbz#1226047 - Rebase libldb to at least 1.1.20 in RHEL-7.2
|
|
|
0f304a |
|
|
|
c9b6d1 |
* Mon Nov 24 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.1.17-2
|
|
|
c9b6d1 |
- Fix the minimal required tdb version
|
|
|
c9b6d1 |
- Related: rhbz#1133914 - Rebase libldb to version 1.1.17 or newer
|
|
|
c9b6d1 |
|
|
|
c9b6d1 |
* Thu Sep 04 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.1.17-1
|
|
|
c9b6d1 |
- New upstream release 1.1.17
|
|
|
c9b6d1 |
- Resolves: rhbz#1133914 - Rebase libldb to version 1.1.17 or newer
|
|
|
c9b6d1 |
|
|
|
05cac9 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.16-4
|
|
|
05cac9 |
- Mass rebuild 2014-01-24
|
|
|
05cac9 |
|
|
|
05cac9 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.16-3
|
|
|
05cac9 |
- Mass rebuild 2013-12-27
|
|
|
05cac9 |
|
|
|
c5a54a |
* Mon Jul 08 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.1.16-2
|
|
|
c5a54a |
- Make the Requires arch-specific
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue Jul 02 2013 - Andreas Schneider <asn@redhat.com> - 1.1.16-1
|
|
|
c5a54a |
- New upstream release 1.1.16
|
|
|
c5a54a |
|
|
|
c5a54a |
* Wed Jun 05 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.1.15-3
|
|
|
c5a54a |
- Relax pytdb requirement
|
|
|
c5a54a |
|
|
|
c5a54a |
* Thu Feb 07 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.1.15-2
|
|
|
c5a54a |
- The 1.1.15 rebase obsoletes the patch from 1.1.14-2
|
|
|
c5a54a |
|
|
|
c5a54a |
* Thu Feb 07 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.1.15-1
|
|
|
c5a54a |
- New upstream release 1.1.15
|
|
|
c5a54a |
|
|
|
c5a54a |
* Wed Jan 30 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.1.14-2
|
|
|
c5a54a |
- Add patch by Stephen Gallagher to include manual pages for
|
|
|
c5a54a |
ldb_connect() and several other functions.
|
|
|
c5a54a |
|
|
|
c5a54a |
* Sat Dec 01 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.1.14-1
|
|
|
c5a54a |
- New upstream release 1.1.14
|
|
|
c5a54a |
|
|
|
c5a54a |
* Wed Oct 03 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.1.13-1
|
|
|
c5a54a |
- New upstream release 1.1.13
|
|
|
c5a54a |
|
|
|
c5a54a |
* Mon Sep 03 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.1.12-1
|
|
|
c5a54a |
- New upstream release 1.1.12
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue Aug 28 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.1.11-1
|
|
|
c5a54a |
- New upstream release 1.1.11
|
|
|
c5a54a |
|
|
|
c5a54a |
* Mon Aug 10 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.1.10-1
|
|
|
c5a54a |
- New upstream release 1.1.10
|
|
|
c5a54a |
|
|
|
c5a54a |
* Thu Aug 02 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.1.9-1
|
|
|
c5a54a |
- New upstream release 1.1.9
|
|
|
c5a54a |
- Required for Samba 4 Beta 5
|
|
|
c5a54a |
- Ensure rename target does not exist before deleting old record
|
|
|
c5a54a |
- Add parameter to avoid NULL format string flagged by -Werror=format
|
|
|
c5a54a |
|
|
|
c5a54a |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-2
|
|
|
c5a54a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue Jul 10 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.1.8-1
|
|
|
c5a54a |
- New upstream release 1.1.8
|
|
|
c5a54a |
- Required for latest Samba 4 beta
|
|
|
c5a54a |
- Fixes for pyldb
|
|
|
c5a54a |
- Revert to using tdb1 by default
|
|
|
c5a54a |
- Drop support for tdb_compat
|
|
|
c5a54a |
- CCAN is no longer built as a static library
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue May 22 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.1.6-1
|
|
|
c5a54a |
- New upstream release 1.1.6
|
|
|
c5a54a |
- Drop upstream patches
|
|
|
c5a54a |
- Required for upcoming Samba 4 beta
|
|
|
c5a54a |
- Explicitly build with tdb1 support
|
|
|
c5a54a |
|
|
|
c5a54a |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
c5a54a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
c5a54a |
|
|
|
c5a54a |
* Fri Dec 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.4-1.1
|
|
|
c5a54a |
- Do not build with multiple CPUs
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.4-1
|
|
|
c5a54a |
- New upstream release
|
|
|
c5a54a |
- Add ldb_module_error() routine
|
|
|
c5a54a |
- Fedora: work around unreliable configure check for pytevent
|
|
|
c5a54a |
- Drop patch to ignore --disable-silent-rules (included in tarball)
|
|
|
c5a54a |
|
|
|
c5a54a |
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-4
|
|
|
c5a54a |
- Add patch to ignore --disable-silent-rules
|
|
|
c5a54a |
|
|
|
c5a54a |
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-3
|
|
|
c5a54a |
- Add explicit mention of the bundled libreplace
|
|
|
c5a54a |
- https://fedorahosted.org/fpc/ticket/120
|
|
|
c5a54a |
- Add explicit mention of bundled libtdb_compat and libccan
|
|
|
c5a54a |
- https://fedorahosted.org/fpc/ticket/119
|
|
|
c5a54a |
|
|
|
c5a54a |
* Mon Nov 21 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-2
|
|
|
c5a54a |
- Build and install API documentation
|
|
|
c5a54a |
- Build tdb_compat and ccan statically. They have no upstream releases to
|
|
|
c5a54a |
link against yet and their API is in flux. It is unsafe to make them
|
|
|
c5a54a |
public and shared at this time.
|
|
|
c5a54a |
|
|
|
c5a54a |
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-1
|
|
|
c5a54a |
- New upstream release
|
|
|
c5a54a |
- Required for building newer samba4 packages
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue Aug 2 2011 Simo Sorce <ssorce@redhat.com> - 1.1.0-1
|
|
|
c5a54a |
- Update to 1.1.0
|
|
|
c5a54a |
(dependency for samba4 alpha16 snapshot)
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue Feb 22 2011 Simo Sorce <ssorce@redhat.com> - 1.0.2-1
|
|
|
c5a54a |
- Update to 1.0.2
|
|
|
c5a54a |
(dependency for samba4 alpha15 snapshot)
|
|
|
c5a54a |
|
|
|
c5a54a |
* Fri Feb 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-2
|
|
|
c5a54a |
- Disable rpath
|
|
|
c5a54a |
|
|
|
c5a54a |
* Fri Feb 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-1
|
|
|
c5a54a |
- New upstream release 1.0.0
|
|
|
c5a54a |
- SOname bump to account for module loading changes
|
|
|
c5a54a |
- Rename libldb-tools to ldb-tools to make upgrades easier
|
|
|
c5a54a |
|
|
|
c5a54a |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.22-9
|
|
|
c5a54a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c5a54a |
|
|
|
c5a54a |
* Fri Feb 04 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.22-8
|
|
|
c5a54a |
- Fixes from package review
|
|
|
c5a54a |
- Change Requires: on tools subpackage to be the exact version/release
|
|
|
c5a54a |
- Remove unnecessary BuildRoot directive
|
|
|
c5a54a |
|
|
|
c5a54a |
* Mon Jan 17 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.22-7
|
|
|
c5a54a |
- Update to 0.9.22 (first independent release of libldb upstream)
|
|
|
c5a54a |
|