SHA256
1
0
forked from pool/ldb

Accepting request 341008 from network:samba:STABLE

As we have no version bump we must fake one.
This will be removed again with the next minor version update.

The package change log message stays:
- Rename pyldb to python-ldb.

OBS-URL: https://build.opensuse.org/request/show/341008
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ldb?expand=0&rev=24
This commit is contained in:
Dominique Leuenberger 2015-10-28 16:30:03 +00:00 committed by Git OBS Bridge
commit 33101604c1
3 changed files with 31 additions and 18 deletions

View File

@ -1,2 +1,3 @@
libldb1
pyldb
python-ldb
obsoletes "pyldb-<targettype> < <version>"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 22 20:52:14 UTC 2015 - lmuelle@suse.com
- Rename pyldb to python-ldb.
-------------------------------------------------------------------
Mon Sep 7 21:55:16 UTC 2015 - lmuelle@suse.com

View File

@ -18,9 +18,12 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define talloc_version 2.0.8
%define tdb_version 1.3.4
%define tevent_version 0.9.17
%define talloc_version 2.1.4
%define tdb_version 1.3.7
%define tevent_version 0.9.25
# this ldb_version macro gets obsoleted with the next minor version update
%define ldb_version 1.1.21
Name: ldb
BuildRequires: docbook-xsl-stylesheets
@ -30,8 +33,8 @@ BuildRequires: libtdb-devel >= %{tdb_version}
BuildRequires: libtevent-devel >= %{tevent_version}
BuildRequires: libxslt
BuildRequires: popt-devel
BuildRequires: pytalloc-devel >= %{talloc_version}
BuildRequires: python-devel
BuildRequires: python-talloc-devel >= %{talloc_version}
BuildRequires: python-tdb >= %{tdb_version}
BuildRequires: python-tevent >= %{tevent_version}
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
@ -40,13 +43,13 @@ BuildRequires: python-tevent >= %{tevent_version}
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
Url: http://ldb.samba.org/
Version: 1.1.21
Version: %{ldb_version}.0
Release: 0
Summary: An LDAP-like embedded database
License: GPL-3.0+
Group: System/Libraries
Source: http://download.samba.org/pub/ldb/ldb-%{version}.tar.gz
Source1: http://download.samba.org/pub/ldb/ldb-%{version}.tar.asc
Source: http://download.samba.org/pub/ldb/ldb-%{ldb_version}.tar.gz
Source1: http://download.samba.org/pub/ldb/ldb-%{ldb_version}.tar.asc
Source2: ldb.keyring
Source4: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -91,33 +94,37 @@ Group: Development/Libraries/C and C++
Tools to manipulate ldb files
%package -n pyldb
%package -n python-ldb
Summary: Python bindings for the LDB library
Group: Development/Libraries/Python
Requires: %{libldb_name} = %{version}
PreReq: /sbin/ldconfig
Provides: pyldb = %{version}
Obsoletes: pyldb < %{version}
%description -n pyldb
%description -n python-ldb
This package contains the python bindings for the LDB library.
%package -n pyldb-devel
%package -n python-ldb-devel
Summary: Development files for the Python bindings for the LDB library
Group: Development/Libraries/Python
Requires: pyldb = %{version}
Requires: python-ldb = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config
%else
Requires: pkgconfig
%endif
Provides: pyldb-devel = %{version}
Obsoletes: pyldb-devel < %{version}
%description -n pyldb-devel
%description -n python-ldb-devel
This package contains the development files for the Python bindings for the
LDB library.
%prep
%setup -n ldb-%{version} -q
%setup -n ldb-%{ldb_version} -q
%build
%if 0%{?suse_version} && 0%{?suse_version} < 911
@ -153,9 +160,9 @@ DESTDIR=${RPM_BUILD_ROOT} make install
%postun -n %{libldb_name} -p /sbin/ldconfig
%post -n pyldb -p /sbin/ldconfig
%post -n python-ldb -p /sbin/ldconfig
%postun -n pyldb -p /sbin/ldconfig
%postun -n python-ldb -p /sbin/ldconfig
%files -n %{libldb_name}
%defattr(-,root,root)
@ -198,12 +205,12 @@ DESTDIR=${RPM_BUILD_ROOT} make install
%{_mandir}/man1/ldbsearch.1.gz
%{_mandir}/man3/ldb.3.gz
%files -n pyldb
%files -n python-ldb
%defattr(-,root,root,-)
%{python_sitearch}/ldb.so
%{_libdir}/libpyldb-util.so.*
%files -n pyldb-devel
%files -n python-ldb-devel
%defattr(-,root,root,-)
%{_includedir}/pyldb.h
%{_libdir}/libpyldb-util.so