2012-05-25 12:58:25 +02:00
|
|
|
#
|
2012-06-28 18:35:11 +02:00
|
|
|
# spec file for package ldb
|
2012-05-25 12:58:25 +02:00
|
|
|
#
|
2018-02-12 20:33:13 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-25 12:58:25 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-25 17:05:31 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-05-25 12:58:25 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-06-01 00:43:53 +02:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2015-11-11 21:35:00 +01:00
|
|
|
%{!?py3_soflags: %global py3_soflags cpython-%{python3_version_nodots}m}
|
2018-03-19 16:26:04 +01:00
|
|
|
%{!?py3_soflags_dash: %global py3_soflags_dash %(echo %{py3_soflags} | sed "s/_/-/g")}
|
2015-11-11 21:35:00 +01:00
|
|
|
%if 0%{?suse_version} > 1310 || 0%{?fedora_version} > 20
|
|
|
|
%define with_python3 1
|
|
|
|
%else
|
|
|
|
%define with_python3 0
|
|
|
|
%endif
|
2012-06-01 00:29:05 +02:00
|
|
|
|
2018-09-25 09:15:00 +02:00
|
|
|
%global with_lmdb 0
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%ifarch x86_64
|
|
|
|
%global with_lmdb 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define lmdb_version 0.9.16
|
|
|
|
%define talloc_version 2.1.14
|
2017-10-01 13:54:28 +02:00
|
|
|
%define tdb_version 1.3.15
|
2018-03-19 12:07:30 +01:00
|
|
|
%define tevent_version 0.9.36
|
2012-05-25 12:58:25 +02:00
|
|
|
|
2012-06-02 18:02:22 +02:00
|
|
|
Name: ldb
|
2014-09-23 21:56:28 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2015-10-30 15:46:00 +01:00
|
|
|
BuildRequires: doxygen
|
2017-10-06 10:30:56 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%ifnarch ppc
|
2017-10-01 13:54:28 +02:00
|
|
|
BuildRequires: libcmocka-devel >= 1.1.1
|
2017-10-06 10:30:56 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
2012-06-01 00:29:05 +02:00
|
|
|
BuildRequires: libtalloc-devel >= %{talloc_version}
|
|
|
|
BuildRequires: libtdb-devel >= %{tdb_version}
|
|
|
|
BuildRequires: libtevent-devel >= %{tevent_version}
|
2014-09-23 21:56:28 +02:00
|
|
|
BuildRequires: libxslt
|
2012-06-01 17:00:29 +02:00
|
|
|
BuildRequires: popt-devel
|
2012-05-30 17:43:48 +02:00
|
|
|
BuildRequires: python-devel
|
2012-06-28 18:35:11 +02:00
|
|
|
BuildRequires: python-tdb >= %{tdb_version}
|
2012-06-01 00:29:05 +02:00
|
|
|
BuildRequires: python-tevent >= %{tevent_version}
|
2015-11-11 21:35:00 +01:00
|
|
|
%if %{with_python3}
|
|
|
|
BuildRequires: python3-devel
|
2017-10-01 13:54:28 +02:00
|
|
|
BuildRequires: python3-talloc >= %{talloc_version}
|
|
|
|
BuildRequires: python3-talloc-devel >= %{talloc_version}
|
2015-11-11 21:35:00 +01:00
|
|
|
%endif
|
2018-03-19 16:26:04 +01:00
|
|
|
BuildRequires: python-talloc-devel >= %{talloc_version}
|
2018-05-24 00:18:59 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
%endif
|
2018-09-25 09:15:00 +02:00
|
|
|
%if %{with_lmdb}
|
|
|
|
BuildRequires: lmdb-devel >= %{lmdb_version}
|
|
|
|
%endif
|
2015-12-16 16:18:13 +01:00
|
|
|
Url: https://ldb.samba.org/
|
Accepting request 648923 from home:scabrero:branches:network:samba:STABLE
- Update to 1.4.3
+ Python: Ensure ldb.Dn can accept utf8 encoded unicode (bug 13616)
- Update license to LGPL-3.0
- Update to 1.4.2
+ Security fix for CVE-2018-1140 (NULL pointer de-reference, bug 13374)
+ Fix memory leaks and missing error checks (bug 13459, 13471, 13475)
- 1.4.1
+ add some missing return value checks
+ Fix several mem leaks in ldb_index ldb_search ldb_tdb (bug#13475)
+ ldb_tdb: Use mem_ctx and so avoid leak onto long-term memory
on duplicated add. (bug#13471)
+ ldb: Fix memory leak on module context (bug#13459)
+ Refused build of Samba 4.8 with ldb 1.4 (bug #13519)
+ Prevent similar issues in the future at configure time (bug #13519)
- 1.4.0
+ New LMDB backend (experimental)
+ Comprehensive tests for index behaviour
+ Enforce transactions for writes
+ Enforce read lock use for all reads
+ Fix memory leak in paged_results module.
We hold at most 10 outstanding paged result cookies
(bug #13362)
+ Fix compiler warnings
+ Python3 improvements
+ Restore --disable-python build
+ Fix for performance regression on one-level searches
(bug #13448)
+ Samba's subtree_rename could fail to rename some entries
(bug #13452)
- Add fix_ldb_mod_op_test.patch: Fix missing NULL terminator in
ldb_mod_op_test testsuite
- Update to 1.3.5
+ Security fix for CVE-2018-1140 (NULL pointer de-reference,
bug #13374).
- 1.3.4
+ Fix memory leaks and missing error checks (bug #13459, #13471,
#13475).
+ Fix fallback to full scan (performance regression) on
one-level search (bug #13448).
+ Fix read corruption (missing results) during writes,
particularly during a Samba subtree rename (bug #13452).
- Update to 1.3.3
+ Fix failure to upgrade to the GUID index DB format; (bso#13306).
- Update to 1.3.2;
+ Expose the SHOW_BINARY, ENABLE_TRACING and DONT_CREATE_DB flag
constants in the python api.
+ Don't load LDB_MODULESDIR as a module file.
+ Fix binary data in debug log (bug #13185).
+ Intersect the index from SCOPE_ONELEVEL with the index for the
search expression (bso#13191)
+ GUID Index support.
- Update to 1.2.3; (bsc#1080545);
+ Performance regression in DNS server with introduction of DNS wildcard;
(bso#13191);
- Remove %if guards for blocks that do not affect the build result.
Fix RPM groups and summaries.
Drop very old SUSE support. Replace old RPM macros by new
constructs.
- Update to 1.2.2
+ Bug #13017: Add ldb_ldif_message_redacted_string() to allow debug
of redacted log messages, avoiding showing secret values
+ Bug #13015: Allow re-index of newer databases with binary GUID TDB keys
(this officially removes support for re-index of the original
pack format 0, rather than simply segfaulting).
+ Avoid memory allocation and so make modify of records in ldb_tdb faster
- Update to 1.2.1
+ Bug #12882: Do not install _ldb_text.py if we have system libldb
+ Use libraries from build dir for testsuite
+ Bug #12900: Fix index out of bound in ldb_msg_find_common_values
- Update to 1.2.0
+ handle one more LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK
case in ldb_tdb
+ fix ldb_tdb locking (performance) problems
+ fix ldb_tdb search inconsistencies by adding
read_[un]lock() hooks to the module stack
(bug #12858)
+ add cmocka based tests for the locking issues
+ ldb_version.h provides LDB_VERSION_{MAJOR,MINOR,RELEASE} defines
+ protect ldb_modules.h from being used by Samba < 4.7
Note: that this release (as well as 1.1.30 and 1.1.31)
may cause problems for older applications, e.g. Samba
See https://bugzilla.samba.org/show_bug.cgi?id=12859
- Update to 1.1.31
+ let ldbdump parse the -i option
+ don't allow the reveal_internals control for ldbedit
+ only allow --show-binary for ldbsearch
+ don't let ldbsearch create non-existing files
+ fix ldb_tdb search inconsistencies
+ add cmocka based tests
+ provide an interface for improved indexing for callers
like Samba, which will allow much better performance.
+ Makes ldb access to tdb:// databases use a private event context
rather than the global event context passed in by the caller.
This is because running other operations while locks are held
or a search is being conducted is not safe.
+ Add efficient function to find duplicate values in ldb messages
(this makes large multi-valued attributes in ldb_tdb more efficient)
- Add ldb-tests-do-not-override-lib-path.patch: Check if LD_LIBRARY_PATH
and LDB_MODULES_PATH environment variables are set before overriding
them.
- Update to 1.1.29; (bsc#1032915).
+ add support for LDB_CONTROL_RECALCULATE_RDN_OID on ldb_modify()
+ Performance and memory consumption improvements
- Update to 1.1.27
+ performance improvements
+ VLV control improvements
- Require talloc 2.1.6 at build-time; (bsc#954658).
- Add ldb-python3.5-fix-soabi_name.patch: Do not change x86_64 to
x86-64 when building with python 3.5.
- Avoid a file collision for non SUSE build targets; (bsc#966174).
- Update to 1.1.26; (bsc#954658).
+ let a timeout of -1 indicate no timeout for a given request
+ fix memory leaks in pyldb ldb.search()
+ build fixes
+ improve pyldb ldb.search() help message
+ add pyldb ldb.search_iterator() api
+ add LDB_ATTR_FLAG_FORCE_BASE64_LDIF as optional argument
to ldb_schema_attribute_add()
+ add client support for LDB_CONTROL_DIRSYNC_EX
- Provide python-ldb and python-ldb-devel; (bsc#966523).
- Update to 1.1.25; (bsc#954658).
+ torture: test ldb_unpack_data_only_attr_list
+ increment version due to added ldb_unpack_data_only_attr_list
+ introduce ldb_unpack_data_withlist to unpack partial list of attributes
- Update to 1.1.24.
+ fix LDAP \00 search expression attack DoS; CVE-2015-3223; (bso#11325)
+ fix remote read memory exploit in LDB; CVE-2015-5330; (bso#11599)
+ move ldb_(un)pack_data into ldb_module.h for testing
+ fix installation of _ldb_text.py
+ fix propagation of LDB errors through TDB
+ fix bug triggered by having an empty message in database during search
- Update to 1.1.23; (bsc#954658).
+ Test improvements
+ Improved python3 bindings; (bsc#951911)
+ Minor build fixes
- Add doxygen at build time to add the development documentation.
- Disable rpath-install and silent-rules while configure.
- Rename pyldb to python-ldb.
- Move the ldb-cmdline library to the ldb-tools package as the packaged
binaries depend on it.
- Update the Samba Library Distribution Key file 'ldb.keyring'; (bso#945116).
- Update to 1.1.21; (bsc#939050).
+ build fixes
+ improved python bindings
- Update to 1.1.20.
+ validate_ldb of String(Generalized-Time) does not accept millisecond
format ".000Z"; (bso#9810)
+ fix logic in ldb_val_to_time()
- Update to 1.1.19.
+ Allow to register extended match rules
- Update to 1.1.18.
+ fixes for segfaults in pyldb
+ documentation fixes
+ build system improvements
+ fix a typo in the comment, LDB_FLAGS_MOD_xxx -> LDB_FLAG_MOD_xxx
+ Fix check for third_party
+ make the successful ldb_transaction_start() message clearer
+ ldb-samba: fix a memory leak in ldif_canonicalise_objectCategory()
+ ldb-samba: Move pyldb-utils dependency to python_samba__ldb
+ build: improve detection of srcdir
- Use the upstream tar ball, as signature verification is now able to handle
compressed archives.
- Remove dependency on gpg-offline as signature checking is implemented in the
source validator.
- BuildRequire docbook-xsl-stylesheets and libxslt to process the man pages.
- Require pkg-config from the devel sub packages and do not BuildRequire it
from libldb.
- Update to 1.1.17.
+ pyldb: add some more helper functions for LdbDn
+ pyldb: fix doc string for set_extended_component()
+ pyldb: add some const to PyObject_FromLdbValue()
+ Add a env variable to disable RTLD_DEEPBIND.
+ ldb_ildap: Map some wrong username/password errors on to
LDB_ERR_INVALID_CREDENTIALS
+ pass module init errors back to the caller
+ Return LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS rather than OPERATIONS_ERROR on
EACCES and EPERM
+ Fix 1138330 Dereference null return value
+ bad if test in ldb_comparison_fold()
+ use of NULL pointer bugfix
+ Fix CID 241329 Array compared against 0
+ Fix CID 240798 Uninitialized pointer read
+ rdn_name: reject 'distinguishedName' depending of the MOD flags
+ Show the type of failing operation in default error message
+ Do not build libldb-cmdline when using system ldb.
+ ldb_map: Fix CID 1034791 Dereference null return value
+ Fix a const warning
- Verify source tar ball gpg signature.
- Consolidate python files in independent pyldb subpackages.
- Add pyldb to baselibs.conf.
- Update to 1.1.16.
+ Bump version to allow a depencency on the substring crash fix.
+ Cope with substring match with no chunks in ldb_filter_from_tree().
+ Ensure not to segfault on a filter such as (mail=).
+ Add missing dependency on replace for ldb.
+ Add more data test data for one level test cases.
+ Add tests for the python api.
+ Add more tests related to onelevel search.
+ Use strncmp instead of strcmp when comparing the val part.
+ Make test output more readable.
- Update to 1.1.15.
+ Ensure to decrement the transaction_active whenever we delete
a transaction.
+ Move doxygen comments for ldb_connect to the right place.
- Update to 1.1.14.
+ fixed callers for ldb_pack_data() and ldb_unpack_data()
+ move ldb_pack.c into common
+ Add ldbdump, based on tdbdump
+ Remove no-longer-existing ltdb_unpack_data_free from ldb_tdb.h
+ Change ltdb_unpack_data to take an ldb_context
- Update to 1.1.13.
+ Don't use "isprint" in ldb_binary_encode(); (bso#9147).
- Update to 1.1.12.
+ Avoid printing secret attributes in ldb trace logs
- Update to 1.1.11.
+ LDB:ldb_tdb.c - deny multi-valued attributes manipulation with doublets
+ LDB:ldbsearch - add search filter tests
+ LDB:ldbsearch - search filters do not only contain "="
+ lib/ldb: Use tdb_parse_record and a callback rather than tdb_fetch()
- BuildRequire tevent version >= 0.9.17.
- Remove superfluous ldb-tools rpmlintrc file.
- Update to 1.1.10.
+ Enhancements and fixes to the s3 read, sesssetup, and server functions
+ s3: Fix a crash in reply_lockingX_error
+ s3:libsmb, smbd, and s4:libcli: add EXTENDED_SIGNATURE support in tcon
+ s3:rpc_server: make usage of session_extract_session_key()
+ s3:smb2_*: make use of SMBD_SMB2_*()
+ s4 and libcli: enahncements and fixes
- Update to 1.1.9.
+ Ensure rename target does not exist before deleting old record.
+ Add parameter to avoid NULL format string flagged by -Werror=format.
- Update to 1.1.8.
+ Fixes for pyldb.
+ Drop support for tdb_compat.
- BuildRequire pytalloc-devel.
- Disable rpath while configure.
- Tag GPL-3.0+ based on tdb license; (bnc#765270).
- Define library name and use it instead of libldb1.
- Add missing post, postun, and files part to the libldb1 package.
- Rename package to ldb and add an independent libldb1 subpackage.
- Enhance and polish the package descriptions and summaries.
- BuildIgnore libtalloc to prevent a package conflict on Fedora systems.
- BuildRequire popt-devel.
- Define and use talloc, tdb, and tevent version macros.
- Define python_sitearch if undefined.
- BuildRequire libtalloc-devel, libtdb-devel, and libtevent-devel.
- Configure with bundled tdb2 library.
- Cleanup BuildRequires and spec file in general.
- BuildRequire libtalloc2-devel >= 2.0.7.
- BuildRequire libtalloc2-devel, libtdb1-devel, and libtevent0-devel.
- Adjust license string.
- Require libldb1 = %{version} from the devel package.
- Initial independent libldb1 package.
OBS-URL: https://build.opensuse.org/request/show/648923
OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=130
2018-11-26 18:25:20 +01:00
|
|
|
Version: 1.4.3
|
2012-05-25 12:58:25 +02:00
|
|
|
Release: 0
|
2012-06-02 18:02:22 +02:00
|
|
|
Summary: An LDAP-like embedded database
|
2018-09-25 17:05:31 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2017-10-06 11:22:06 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-12-16 14:15:26 +01:00
|
|
|
Source: https://download.samba.org/pub/ldb/ldb-%{version}.tar.gz
|
|
|
|
Source1: https://download.samba.org/pub/ldb/ldb-%{version}.tar.asc
|
2014-10-28 16:41:45 +01:00
|
|
|
Source2: ldb.keyring
|
2012-05-25 12:58:25 +02:00
|
|
|
Source4: baselibs.conf
|
2016-03-08 18:37:12 +01:00
|
|
|
Patch0: ldb-python3.5-fix-soabi_name.patch
|
2012-05-25 12:58:25 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-10-06 11:22:06 +02:00
|
|
|
LDB is an LDAP-like embedded database.
|
2012-06-02 18:02:22 +02:00
|
|
|
|
|
|
|
|
2017-10-01 13:54:28 +02:00
|
|
|
%package -n libldb1
|
2012-06-02 18:02:22 +02:00
|
|
|
Summary: An LDAP-like embedded database
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-10-01 13:54:28 +02:00
|
|
|
%description -n libldb1
|
2017-10-06 11:22:06 +02:00
|
|
|
LDB is an LDAP-like embedded database.
|
2012-06-02 18:02:22 +02:00
|
|
|
|
2012-05-25 12:58:25 +02:00
|
|
|
This package includes the ldb1 library.
|
|
|
|
|
|
|
|
|
2012-05-31 13:43:00 +02:00
|
|
|
%package -n libldb-devel
|
2012-05-25 12:58:25 +02:00
|
|
|
Summary: Libraries and Header Files to Develop Programs with ldb1 Support
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-10-01 13:54:28 +02:00
|
|
|
Requires: libldb1 = %{version}
|
2014-05-23 17:59:27 +02:00
|
|
|
Requires: pkg-config
|
2012-05-25 12:58:25 +02:00
|
|
|
|
2012-05-31 13:43:00 +02:00
|
|
|
%description -n libldb-devel
|
2017-10-06 11:22:06 +02:00
|
|
|
LDB is an LDAP-like embedded database.
|
2012-06-02 18:02:22 +02:00
|
|
|
|
2017-10-06 11:22:06 +02:00
|
|
|
Libraries and Header Files to Develop Programs with ldb1 Support.
|
2012-05-25 12:58:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
%package -n ldb-tools
|
2017-10-06 11:22:06 +02:00
|
|
|
Summary: Tools to manipulate LDB files
|
2012-05-25 12:58:25 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n ldb-tools
|
2017-10-06 11:22:06 +02:00
|
|
|
Tools to manipulate LDB files.
|
2012-05-25 12:58:25 +02:00
|
|
|
|
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%package -n python-ldb
|
2013-08-29 12:17:31 +02:00
|
|
|
Summary: Python bindings for the LDB library
|
|
|
|
Group: Development/Libraries/Python
|
2017-10-01 13:54:28 +02:00
|
|
|
Requires: libldb1 = %{version}
|
2015-10-22 23:50:20 +02:00
|
|
|
Provides: pyldb = %{version}
|
2015-10-26 14:43:08 +01:00
|
|
|
Obsoletes: pyldb < %{version}
|
2013-08-29 12:17:31 +02:00
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%description -n python-ldb
|
2017-10-06 11:22:06 +02:00
|
|
|
This package contains the Python bindings for the LDB library.
|
2013-08-29 12:17:31 +02:00
|
|
|
|
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%package -n python-ldb-devel
|
2013-08-29 13:43:46 +02:00
|
|
|
Summary: Development files for the Python bindings for the LDB library
|
|
|
|
Group: Development/Libraries/Python
|
2014-05-23 17:59:27 +02:00
|
|
|
Requires: pkg-config
|
2017-10-06 11:22:06 +02:00
|
|
|
Requires: python-ldb = %{version}
|
2015-10-22 23:50:20 +02:00
|
|
|
Provides: pyldb-devel = %{version}
|
2015-10-26 14:43:08 +01:00
|
|
|
Obsoletes: pyldb-devel < %{version}
|
2013-08-29 13:43:46 +02:00
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%description -n python-ldb-devel
|
2013-08-29 13:43:46 +02:00
|
|
|
This package contains the development files for the Python bindings for the
|
|
|
|
LDB library.
|
|
|
|
|
2015-11-11 21:35:00 +01:00
|
|
|
%package -n python3-ldb
|
|
|
|
Summary: Python3 bindings for the LDB library
|
|
|
|
Group: Development/Libraries/Python
|
2017-10-01 13:54:28 +02:00
|
|
|
Requires: libldb1 = %{version}
|
2015-11-11 21:35:00 +01:00
|
|
|
|
|
|
|
%description -n python3-ldb
|
|
|
|
This package contains the python3 bindings for the LDB library.
|
|
|
|
|
|
|
|
%package -n python3-ldb-devel
|
|
|
|
Summary: Development files for the Python3 bindings for the LDB library
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: pkg-config
|
2017-10-06 11:22:06 +02:00
|
|
|
Requires: python3-ldb = %{version}
|
2015-11-11 21:35:00 +01:00
|
|
|
|
|
|
|
%description -n python3-ldb-devel
|
|
|
|
This package contains the development files for the Python bindings for the
|
|
|
|
LDB library.
|
|
|
|
|
2012-05-25 12:58:25 +02:00
|
|
|
%prep
|
2015-11-11 21:35:00 +01:00
|
|
|
%setup -n ldb-%{version} -q
|
2016-03-08 18:37:12 +01:00
|
|
|
%patch0 -p1
|
2012-05-25 12:58:25 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
export SUSE_ASNEEDED=0
|
|
|
|
%endif
|
2017-10-06 11:22:06 +02:00
|
|
|
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
|
2017-10-06 10:30:56 +02:00
|
|
|
%define bundled_libs cmocka
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%ifnarch ppc
|
|
|
|
%define bundled_libs NONE
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2017-10-06 11:22:06 +02:00
|
|
|
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
|
2012-05-25 12:58:25 +02:00
|
|
|
CONFIGURE_OPTIONS="\
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
2012-06-28 18:35:11 +02:00
|
|
|
--disable-rpath \
|
2015-10-30 15:46:00 +01:00
|
|
|
--disable-rpath-install \
|
|
|
|
--disable-silent-rules \
|
2012-05-31 13:43:00 +02:00
|
|
|
--with-modulesdir=%{_libdir} \
|
2017-10-06 10:30:56 +02:00
|
|
|
--bundled-libraries=%{bundled_libs} \
|
2012-08-08 11:59:51 +02:00
|
|
|
--builtin-libraries=replace \
|
2015-11-11 21:35:00 +01:00
|
|
|
%if %{with_python3}
|
|
|
|
--extra-python=/usr/bin/python3 \
|
|
|
|
%endif
|
2018-09-25 09:15:00 +02:00
|
|
|
%if !%{with_lmdb}
|
|
|
|
--without-ldb-lmdb \
|
|
|
|
%endif
|
2012-05-25 12:58:25 +02:00
|
|
|
"
|
|
|
|
./configure ${CONFIGURE_OPTIONS}
|
2017-10-06 11:22:06 +02:00
|
|
|
make %{?_smp_mflags} \
|
2012-05-25 12:58:25 +02:00
|
|
|
all
|
2015-10-30 15:46:00 +01:00
|
|
|
doxygen Doxyfile
|
|
|
|
# remove man page with bogus full build dir in path
|
2015-11-11 21:35:00 +01:00
|
|
|
rm -f apidocs/man/man3/_*_ldb-%{version}_include_.3
|
2012-05-25 12:58:25 +02:00
|
|
|
|
|
|
|
%check
|
2018-09-25 09:15:00 +02:00
|
|
|
%if %{with_lmdb}
|
2015-11-11 22:16:25 +01:00
|
|
|
LD_LIBRARY_PATH="bin/shared:bin/shared/private" \
|
|
|
|
LDB_MODULES_PATH="bin/modules" \
|
2017-10-06 11:22:06 +02:00
|
|
|
make test
|
2015-11-11 22:51:35 +01:00
|
|
|
%endif
|
2012-05-25 12:58:25 +02:00
|
|
|
|
|
|
|
%install
|
2017-10-06 11:22:06 +02:00
|
|
|
%make_install
|
2012-05-25 12:58:25 +02:00
|
|
|
|
2015-10-30 15:52:02 +01:00
|
|
|
# Install API documentation
|
2017-10-06 11:22:06 +02:00
|
|
|
cp -a apidocs/man/* %{buildroot}/%{_mandir}
|
2015-10-30 15:46:00 +01:00
|
|
|
|
2018-03-19 16:26:04 +01:00
|
|
|
%if %{with_python3}
|
|
|
|
sed -i 's;-lpyldb-util.%{py3_soflags_dash};-lpyldb-util.%{py3_soflags};g' %{buildroot}/%{_libdir}/pkgconfig/pyldb-util.%{py3_soflags}.pc
|
|
|
|
%endif
|
|
|
|
|
2017-10-01 13:54:28 +02:00
|
|
|
%post -n libldb1 -p /sbin/ldconfig
|
2012-05-25 12:58:25 +02:00
|
|
|
|
2017-10-01 13:54:28 +02:00
|
|
|
%postun -n libldb1 -p /sbin/ldconfig
|
2012-05-25 12:58:25 +02:00
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%post -n python-ldb -p /sbin/ldconfig
|
2013-08-29 12:17:31 +02:00
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%postun -n python-ldb -p /sbin/ldconfig
|
2013-08-29 12:17:31 +02:00
|
|
|
|
2015-11-11 21:35:00 +01:00
|
|
|
%post -n python3-ldb -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n python3-ldb -p /sbin/ldconfig
|
|
|
|
|
2017-10-01 13:54:28 +02:00
|
|
|
%files -n libldb1
|
2012-05-25 12:58:25 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libldb.so.*
|
2012-05-31 16:04:46 +02:00
|
|
|
%dir %{_libdir}/ldb
|
2012-05-31 13:43:00 +02:00
|
|
|
%{_libdir}/ldb/asq.so
|
|
|
|
%{_libdir}/ldb/paged_results.so
|
|
|
|
%{_libdir}/ldb/paged_searches.so
|
|
|
|
%{_libdir}/ldb/rdn_name.so
|
|
|
|
%{_libdir}/ldb/sample.so
|
|
|
|
%{_libdir}/ldb/server_sort.so
|
|
|
|
%{_libdir}/ldb/skel.so
|
|
|
|
%{_libdir}/ldb/tdb.so
|
2017-10-06 10:30:56 +02:00
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
%{_libdir}/ldb/libcmocka-ldb.so
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
%{_libdir}/ldb/libcmocka-ldb.so
|
|
|
|
%endif
|
2018-09-25 09:15:00 +02:00
|
|
|
%{_libdir}/ldb/ldb.so
|
|
|
|
%{_libdir}/ldb/libldb-key-value.so
|
|
|
|
%if %{with_lmdb}
|
|
|
|
%{_libdir}/ldb/libldb-mdb-int.so
|
|
|
|
%{_libdir}/ldb/mdb.so
|
|
|
|
%endif
|
2012-05-31 13:43:00 +02:00
|
|
|
|
|
|
|
%files -n libldb-devel
|
2012-05-25 12:58:25 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/ldb.h
|
|
|
|
%{_includedir}/ldb_errors.h
|
|
|
|
%{_includedir}/ldb_handlers.h
|
|
|
|
%{_includedir}/ldb_module.h
|
|
|
|
%{_includedir}/ldb_version.h
|
|
|
|
%{_libdir}/libldb.so
|
2012-05-31 16:04:46 +02:00
|
|
|
%dir %{_libdir}/ldb
|
2012-05-25 12:58:25 +02:00
|
|
|
%{_libdir}/pkgconfig/ldb.pc
|
2015-10-30 15:46:00 +01:00
|
|
|
%{_mandir}/man3/ldb*.3.*
|
2018-03-19 16:26:04 +01:00
|
|
|
%if 0%{?suse_version} != 1110 || %{_arch} != i386
|
2015-10-30 15:46:00 +01:00
|
|
|
%{_mandir}/man3/ldif*.3.*
|
|
|
|
%endif
|
2012-05-25 12:58:25 +02:00
|
|
|
|
|
|
|
%files -n ldb-tools
|
2012-05-31 16:04:46 +02:00
|
|
|
%defattr(-,root,root)
|
2012-05-25 12:58:25 +02:00
|
|
|
%{_bindir}/ldbadd
|
|
|
|
%{_bindir}/ldbdel
|
|
|
|
%{_bindir}/ldbedit
|
|
|
|
%{_bindir}/ldbmodify
|
|
|
|
%{_bindir}/ldbrename
|
|
|
|
%{_bindir}/ldbsearch
|
2015-09-08 00:10:11 +02:00
|
|
|
%{_libdir}/ldb/libldb-cmdline.so
|
2015-10-30 15:46:00 +01:00
|
|
|
%{_mandir}/man1/ldbadd.1.*
|
|
|
|
%{_mandir}/man1/ldbdel.1.*
|
|
|
|
%{_mandir}/man1/ldbedit.1.*
|
|
|
|
%{_mandir}/man1/ldbmodify.1.*
|
|
|
|
%{_mandir}/man1/ldbrename.1.*
|
|
|
|
%{_mandir}/man1/ldbsearch.1.*
|
2012-05-25 12:58:25 +02:00
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%files -n python-ldb
|
2015-11-11 21:35:00 +01:00
|
|
|
%defattr(-,root,root)
|
2013-08-29 12:17:31 +02:00
|
|
|
%{python_sitearch}/ldb.so
|
2015-11-11 21:35:00 +01:00
|
|
|
%{python_sitearch}/_ldb_text.py*
|
2013-08-29 12:17:31 +02:00
|
|
|
%{_libdir}/libpyldb-util.so.*
|
|
|
|
|
2015-10-22 23:50:20 +02:00
|
|
|
%files -n python-ldb-devel
|
2015-11-11 21:35:00 +01:00
|
|
|
%defattr(-,root,root)
|
2013-08-29 13:43:46 +02:00
|
|
|
%{_includedir}/pyldb.h
|
|
|
|
%{_libdir}/libpyldb-util.so
|
|
|
|
%{_libdir}/pkgconfig/pyldb-util.pc
|
2018-03-19 16:26:04 +01:00
|
|
|
%if 0%{?suse_version} != 1110 || %{_arch} != i386
|
2015-10-30 15:46:00 +01:00
|
|
|
%{_mandir}/man3/PyLdb*.3.*
|
|
|
|
%endif
|
2013-08-29 13:43:46 +02:00
|
|
|
|
2015-11-11 21:35:00 +01:00
|
|
|
%if %{with_python3}
|
|
|
|
%files -n python3-ldb
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpyldb-util.%{py3_soflags}.so.*
|
|
|
|
%{python3_sitearch}/_ldb_text.py
|
2015-11-11 22:27:20 +01:00
|
|
|
%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} > 599
|
|
|
|
%{python3_sitearch}/__pycache__/_ldb_text.cpython-*.py[co]
|
|
|
|
%endif
|
2015-11-11 21:35:00 +01:00
|
|
|
%{python3_sitearch}/ldb.%{py3_soflags}.so
|
|
|
|
|
|
|
|
%files -n python3-ldb-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpyldb-util.%{py3_soflags}.so
|
2017-10-01 13:54:28 +02:00
|
|
|
%{_libdir}/pkgconfig/pyldb-util.%{py3_soflags}.pc
|
2015-11-11 21:35:00 +01:00
|
|
|
%endif
|
|
|
|
|
2012-05-25 12:58:25 +02:00
|
|
|
%changelog
|