Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > ad9eaf7c8af1d9b48a75982bd8c46143 > files > 4

ldb-1.2.3-1.mga6.src.rpm

%define ldbmajor	1
%define ldbver		1.2.3
%define epoch 1

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

%define libpyldbutil %mklibname pyldb-util 1
%define libpyldbutildevel %mklibname -d pyldb-util

%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 \


Name: ldb
Version: %{ldbver}
# We shipped it in samba3 versioned with the samba3 version
Epoch: %{epoch}
Release: %mkrel 1
Group: System/Libraries
License: GPLv2
URL: http://ldb.samba.org/
Summary: Library implementing Samba's embedded database
Source0: http://samba.org/ftp/ldb/ldb-%{ldbver}.tar.gz
Source1: http://samba.org/ftp/ldb/ldb-%{ldbver}.tar.asc
Source2: jelmer.asc
BuildRequires: python-devel
BuildRequires: openldap-devel
BuildRequires: popt-devel
BuildRequires: tevent-devel >= 1:0.9.17
BuildRequires: python-tevent >= 0.9.17
BuildRequires: talloc-devel >= 1:2.0.8
BuildRequires: pytalloc-util-devel >= 2.0.8
BuildRequires: tdb-devel >= 1:1.2.12
BuildRequires: python-tdb >= 1:1.2.11
BuildRequires: xsltproc
BuildRequires: docbook-style-xsl
#BuildRequires: pkgconfig(cmocka) >= 1.1.1

%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
Conflicts: samba-server < 3.3.2-2

%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}
#Version: %%ldbver
Requires: %{libldb} = %{epoch}:%{version}-%{release}
# because /usr/include/ldb.h was moved from libsmbclient0-devel to libldb-devel
Conflicts: %{mklibname smbclient 0 -d} < 3.2.6-3

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

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

%description -n python-ldb
Python bindings to Samba's ldb embedded database

%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 = %{version}-%{release}
Requires: %{libpyldbutil} = %{epoch}:%{version}

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

%prep
# where i can get jalmer.ask?
# now pgp check disabled until jalmer.ask will be defined as SourceX
#% check_sig %%{SOURCE2} %%{SOURCE1} %%{SOURCE0}

%setup -q
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 --with-modulesdir=%{_libdir} --bundled-libraries=cmocka --disable-rpath
%make

%install
%makeinstall_std

%files -n %{libldb}
%{_libdir}/libldb.so.%{ldbmajor}{,.*}
%{_libdir}/ldb
%exclude %{_libdir}/ldb/libldb-cmdline.so

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

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

%files -n python-ldb
%{py_platsitedir}/ldb.so
%{py_platsitedir}/_ldb_text.*

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

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


%changelog
* Sun Dec 30 2018 buchan <buchan> 1:1.2.3-1.mga6
+ Revision: 1347277
- Upgrade to 1.2.3

* 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