SHA256
1
0
forked from pool/ldb

Add .0 suffix to the version

and revert the previous -<release> addition to baselibs.conf
Instead we add a .0 suffux to the version

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=78
This commit is contained in:
Lars Müller 2015-10-26 13:43:08 +00:00 committed by Git OBS Bridge
parent 3fa8309e23
commit 82e54a4e5c
2 changed files with 10 additions and 7 deletions

View File

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

View File

@ -22,6 +22,9 @@
%define tdb_version 1.3.7 %define tdb_version 1.3.7
%define tevent_version 0.9.25 %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 Name: ldb
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
#!BuildIgnore: libtalloc #!BuildIgnore: libtalloc
@ -40,13 +43,13 @@ BuildRequires: python-tevent >= %{tevent_version}
%define build_make_smp_mflags %{?jobs:-j%jobs} %define build_make_smp_mflags %{?jobs:-j%jobs}
%endif %endif
Url: http://ldb.samba.org/ Url: http://ldb.samba.org/
Version: 1.1.21 Version: %{ldb_version}.0
Release: 0 Release: 0
Summary: An LDAP-like embedded database Summary: An LDAP-like embedded database
License: GPL-3.0+ License: GPL-3.0+
Group: System/Libraries Group: System/Libraries
Source: http://download.samba.org/pub/ldb/ldb-%{version}.tar.gz Source: http://download.samba.org/pub/ldb/ldb-%{ldb_version}.tar.gz
Source1: http://download.samba.org/pub/ldb/ldb-%{version}.tar.asc Source1: http://download.samba.org/pub/ldb/ldb-%{ldb_version}.tar.asc
Source2: ldb.keyring Source2: ldb.keyring
Source4: baselibs.conf Source4: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -97,7 +100,7 @@ Group: Development/Libraries/Python
Requires: %{libldb_name} = %{version} Requires: %{libldb_name} = %{version}
PreReq: /sbin/ldconfig PreReq: /sbin/ldconfig
Provides: pyldb = %{version} Provides: pyldb = %{version}
Obsoletes: pyldb < %{version}-%{release} Obsoletes: pyldb < %{version}
%description -n python-ldb %description -n python-ldb
This package contains the python bindings for the LDB library. This package contains the python bindings for the LDB library.
@ -113,7 +116,7 @@ Requires: pkg-config
Requires: pkgconfig Requires: pkgconfig
%endif %endif
Provides: pyldb-devel = %{version} Provides: pyldb-devel = %{version}
Obsoletes: pyldb-devel < %{version}-%{release} Obsoletes: pyldb-devel < %{version}
%description -n python-ldb-devel %description -n python-ldb-devel
This package contains the development files for the Python bindings for the This package contains the development files for the Python bindings for the
@ -121,7 +124,7 @@ LDB library.
%prep %prep
%setup -n ldb-%{version} -q %setup -n ldb-%{ldb_version} -q
%build %build
%if 0%{?suse_version} && 0%{?suse_version} < 911 %if 0%{?suse_version} && 0%{?suse_version} < 911