Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > db4595f21a1c78a32b82ce60afd338ba > files > 5

ldb-1.5.6-1.mga7.src.rpm

# NOTE: you must rebuild the samba and sssd packages after updating this one

%define ldbmajor          1
%define libldb            %mklibname ldb %{ldbmajor}
%define ldbdevel          %mklibname ldb -d

%define pyldbmajor        1
%define libpyldbutil      %mklibname pyldb-util %{pyldbmajor}
%define libpyldbutildevel %mklibname pyldb-util -d

%define check_sig() export GNUPGHOME=%{_tmppath}/rpm-gpghome \
if [ -d "$GNUPGHOME" ] \
then echo "Error, GNUPGHOME $GNUPGHOME exists, remove it and try again"; exit 1 \
fi \
install -d -m700 $GNUPGHOME \
gpg --import %{1} \
gpg --trust-model always --verify %{2} %{?3} \
rm -Rf $GNUPGHOME \

# lmdb is not supported on 32 bit architectures
%if (0%{?__isa_bits} == 64)
%global with_lmdb 1
%else
%global without_lmdb_flags --without-ldb-lmdb
%endif

%global tdb_version 1.3.17

Name:          ldb
Epoch:         1
Version:       1.5.6
Release:       %mkrel 1
Summary:       Library implementing Samba's embedded database
Group:         System/Libraries
License:       GPLv2
URL:           http://ldb.samba.org/
Source0:       http://samba.org/ftp/ldb/ldb-%{version}.tar.gz
Source1:       http://samba.org/ftp/ldb/ldb-%{version}.tar.asc
Source2:       jelmer.asc
Patch1:	       0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch
BuildRequires: pkgconfig(python2)
BuildRequires: openldap-devel
BuildRequires: pkgconfig(cmocka)
BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(tevent) >= 0.9.38
BuildRequires: pkgconfig(talloc) >= 2.1.15
BuildRequires: pkgconfig(pytalloc-util) >= 2.0.8
BuildRequires: pkgconfig(tdb) >= 1.2.12
BuildRequires: python2-tevent >= 0.9.36
BuildRequires: python2-tdb >= 1:1.2.11
BuildRequires: python3-devel
BuildRequires: python3-tdb
BuildRequires: python3-talloc
BuildRequires: talloc-devel
BuildRequires: python3-tevent
BuildRequires: xsltproc
%if 0%{?with_lmdb}
BuildRequires: lmdb-devel >= 0.9.16
%endif
BuildRequires: docbook-style-xsl

%description
Library implementing Samba's embedded database and utilities for backing up,
restoring and manipulating the database.

%package -n %{libldb}
Group:         System/Libraries
Summary:       Library implementing Samba's embedded database

%description -n %{libldb}
Library implementing Samba's embedded database.

%package -n ldb-utils
Group:         Databases
Summary:       Tools for backing up, restoring, and manipulating Samba's embedded database

%description -n ldb-utils
Tools for backing up, restoring, and manipulating Samba's embedded database.

%package -n %{ldbdevel}
Group:         Development/C
Summary:       Library implementing Samba's embedded database
Provides:      ldb-devel = %{epoch}:%{version}-%{release}
Requires:      %{libldb} = %{epoch}:%{version}-%{release}

%description -n %{ldbdevel}
Library implementing Samba's embedded database.

%package -n python2-ldb
Group:         Development/Python
Summary:       Python 2 bindings to Samba's ldb embedded database

Obsoletes:     python-ldb < 1:1.4.2-2
Provides:      python-ldb = %{epoch}:%{version}-%{release}

%description -n python2-ldb
Python 2 bindings to Samba's ldb embedded database.

%package -n python3-ldb
Summary: Python bindings for the LDB library
Requires: python3-tdb%{?_isa} >= %{tdb_version}

%description -n python3-ldb
Python bindings for the LDB library

%package -n %{libpyldbutil}
Group:         System/Libraries
Summary:       Utility library for using tdb functions in python

%description -n %{libpyldbutil}
Utility library for using tdb functions in python.

%package -n %{libpyldbutildevel}
Group:         Development/Python
Summary:       Development files for utility library for using tdb functions in python
Provides:      pyldb-util-devel = %{epoch}:%{version}-%{release}
Requires:      %{libpyldbutil} = %{epoch}:%{version}

%description -n %{libpyldbutildevel}
Development files for utility library for using tdb functions in python.

%prep
%setup -q
%autopatch -p1

perl -pi -e 's,http://docbook.sourceforge.net/release/xsl/current,/usr/share/sgml/docbook/xsl-stylesheets,g' docs/builddocs.sh buildtools/wafsamba/wafsamba.py buildtools/wafsamba/samba_conftests.py

%build
%configure2_5x --disable-rpath \
           --bundled-libraries=NONE \
           --with-modulesdir=%{_libdir} \
	   %{?without_lmdb_flags} \
           --extra-python=%{__python2}

%make_build

%install
%make_install

%files -n %{libldb}
%{_libdir}/libldb.so.%{ldbmajor}{,.*}
%dir %{_libdir}/ldb/
%{_libdir}/ldb/asq.so
%{_libdir}/ldb/ldap.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
%{_libdir}/ldb/ldb.so
%if 0%{?with_lmdb}
%{_libdir}/ldb/mdb.so
%endif

%files -n %{ldbdevel}
%{_libdir}/libldb.so
%{_libdir}/pkgconfig/ldb.pc
%{_libdir}/libpyldb-util.cpython-*.so
%{_libdir}/pkgconfig/pyldb-util.cpython-*.pc
%{_includedir}/ldb*.h

%files -n ldb-utils
%{_bindir}/ldb*
%{_libdir}/ldb/libldb-*.so
%{_mandir}/man1/ldb*.1%{_extension}
%{_mandir}/man3/ldb*.3%{_extension}

%files -n python2-ldb
%{python2_sitearch}/ldb.so
%{python2_sitearch}/_ldb_text.*

%files -n python3-ldb
%{python3_sitearch}/ldb.cpython-*.so
%{_libdir}/libpyldb-util.cpython-*.so.1*
%{python3_sitearch}/_ldb_text.py
%{python3_sitearch}/__pycache__/_ldb_text.cpython-*.py*

%files -n %{libpyldbutil}
%{_libdir}/libpyldb-util.so.%{pyldbmajor}{,.*}

%files -n %{libpyldbutildevel}
%{_libdir}/libpyldb-util.so
%{_includedir}/pyldb.h
%{_libdir}/pkgconfig/pyldb-util.pc


%changelog
* Sat Dec 14 2019 buchan <buchan> 1:1.5.6-1.mga7
+ Revision: 1467226
- Update to 1.5.6
- Update to 1.5.5

* Sat Mar 09 2019 luigiwalser <luigiwalser> 1:1.5.4-1.mga7
+ Revision: 1372999
- 1.5.4
- remove unnecessary patches

* Sun Jan 20 2019 luigiwalser <luigiwalser> 1:1.5.2-1.mga7
+ Revision: 1358431
- 1.5.2
- add four patches from fedora
- pathfix is no longer used
- python3 is now the default and python2 is the extra-python
- fix hardcoded path to waf (from fedora)
- explicitly disable lmdb on 32-bit architectures

* Mon Jan 07 2019 zezinho <zezinho> 1:1.4.3-3.mga7
+ Revision: 1351112
- rebuild for python3.7

* Wed Nov 28 2018 tv <tv> 1:1.4.3-2.mga7
+ Revision: 1336444
- enable python3 support

* Sun Nov 18 2018 kekepower <kekepower> 1:1.4.3-1.mga7
+ Revision: 1331072
- Update to version 1.4.3

* Sun Oct 28 2018 daviddavid <daviddavid> 1:1.4.2-2.mga7
+ Revision: 1326438
- rename python-ldb to python2-ldb

* Fri Oct 26 2018 bcornec <bcornec> 1:1.4.2-1.mga7
+ Revision: 1325992
- lmdb not active on i586
- ldb requires a more recent lmdb-devel to build
- ldb version should be less than 1.5 for samba 4.9.1
- update to upstream ldb-1.5.1 needed to update samba 4.9.1

* Fri Oct 26 2018 bcornec <bcornec> 1:1.3.5-1.mga7
+ Revision: 1325585
- update to upstream ldb-1.3.5 to fix mga#23445

* Sun Sep 23 2018 umeabot <umeabot> 1:1.3.2-2.mga7
+ Revision: 1298725
- Mageia 7 Mass Rebuild

* Thu Apr 05 2018 buchan <buchan> 1:1.3.2-1.mga7
+ Revision: 1215509
- BR tevent 0.9.36
+ kekepower <kekepower>
- Update to version 1.3.2

* Fri Jan 26 2018 luigiwalser <luigiwalser> 1:1.3.1-1.mga7
+ Revision: 1197215
- 1.3.1

* Wed Jan 03 2018 wally <wally> 1:1.3.0-2.mga7
+ Revision: 1190003
- fix dangling symlink (mga#22301)
- drop old conflicts

* Tue Jan 02 2018 wally <wally> 1:1.3.0-1.mga7
+ Revision: 1189693
- drop pyevent check patch
- add mem leak patch via Fedora
- BR cmocka
- fix BRs (pkgconfig style BRs doesn't have epoch in their parsed version tag)
+ neoclust <neoclust>
- New version 1.3.0

* Wed Dec 07 2016 luigiwalser <luigiwalser> 1:1.1.29-1.mga6
+ Revision: 1073057
- 1.1.29

* Thu Aug 11 2016 luigiwalser <luigiwalser> 1:1.1.27-1.mga6
+ Revision: 1045501
- 1.1.27

* Thu Feb 25 2016 luigiwalser <luigiwalser> 1:1.1.26-1.mga6
+ Revision: 979019
- 1.1.26

* Sun Dec 27 2015 neoclust <neoclust> 1:1.1.25-1.mga6
+ Revision: 915721
- New version 1.1.25

* Fri Sep 25 2015 sander85 <sander85> 1:1.1.21-1.mga6
+ Revision: 883633
- New version: 1.1.21

* Fri Aug 21 2015 tmb <tmb> 1:1.1.20-2.mga6
+ Revision: 867617
- rebuild for new gcc

* Sun Jun 21 2015 luigiwalser <luigiwalser> 1:1.1.20-1.mga6
+ Revision: 836991
- 1.1.20

* Wed Oct 15 2014 umeabot <umeabot> 1:1.1.17-4.mga5
+ Revision: 744770
- Second Mageia 5 Mass Rebuild

* Sat Sep 27 2014 tv <tv> 1:1.1.17-3.mga5
+ Revision: 726690
- rebuild for missing pythoneggs deps

* Tue Sep 16 2014 umeabot <umeabot> 1:1.1.17-2.mga5
+ Revision: 681288
- Mageia 5 Mass Rebuild

* Fri May 09 2014 luigiwalser <luigiwalser> 1:1.1.17-1.mga5
+ Revision: 621600
- 1.1.17

* Sat Oct 19 2013 umeabot <umeabot> 1:1.1.16-2.mga4
+ Revision: 533092
- Mageia 4 Mass Rebuild

* Sun Aug 25 2013 luigiwalser <luigiwalser> 1:1.1.16-1.mga4
+ Revision: 471524
- 1.1.16

* Fri May 24 2013 luigiwalser <luigiwalser> 1:1.1.15-3.mga4
+ Revision: 426744
- 1.1.15

* Thu Mar 14 2013 guillomovitch <guillomovitch> 1:1.1.14-3.mga3
+ Revision: 403214
- ship the backends in the lib package, as they are useless otherwise

* Sat Jan 12 2013 umeabot <umeabot> 1:1.1.14-2.mga3
+ Revision: 356727
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Dec 17 2012 buchan <buchan> 1:1.1.14-1.mga3
+ Revision: 332033
- New version 1.1.14
- Update version dependencies from bundled lib/*/wscript files

* Thu Aug 16 2012 fedya <fedya> 1:1.1.10-1.mga3
+ Revision: 281524
- rpmlint warning fix again on line 100
- rpmlint warning fix
- reason for disable pgp check see comment into prep section
- version update 1.1.10

* Tue Jan 10 2012 buchan <buchan> 1:1.1.4-1.mga2
+ Revision: 194482
- New version 1.1.4
- add signature checking
- disable broken version check for pytevent, exposed by preventing any lib bundling
- clean up BRs
- BR popt-devel

* Fri May 13 2011 buchan <buchan> 1:1.1.0-1.mga1
+ Revision: 97832
- Tighten tdb-devel BR
- imported package ldb


* Fri May 06 2011 Buchan Milne <bgmilne@mandriva.org> 1:1.1.0-1mdv2011.0
+ Revision: 669881
- Buildrequire tdb-devel to stop ldb building an internal copy
- buildrequire xsltproc
- Force use of local docbook stylesheets
- Buildrequire docbook-style-xsl
- import ldb