Set correct Provides to fix 32-bit builds

This commit is contained in:
Simon Pichugin 2020-11-20 18:24:08 +01:00
parent 09678ce9b0
commit 01bd7adabb

View File

@ -7,7 +7,7 @@
Name: openldap
Version: 2.4.56
Release: 2%{?dist}
Release: 3%{?dist}
Summary: LDAP support libraries
License: OpenLDAP
URL: http://www.openldap.org/
@ -69,7 +69,11 @@ customized LDAP clients.
Summary: Package providing legacy non-threded libldap
Requires: openldap%{?_isa} = %{version}-%{release}
# since libldap is manually linked from libldap_r, the provides is not generated automatically
%if %{__isa_bits} == 32
Provides: libldap-2.4.so.%{so_ver}
%else
Provides: libldap-2.4.so.%{so_ver}()(%{__isa_bits}bit)
%endif
%description compat
The openldap-compat package contains non-threaded variant of libldap
@ -501,7 +505,10 @@ exit 0
%{_libdir}/libldap-2.4*.so.*
%changelog
* Wed Nov 18 2020 Simon Pichugin <spichugi@redhat.com> - 2.4.56-2
* Fri Nov 20 2020 Simon Pichugin <spichugi@redhat.com> - 2.4.56-3
- Fix 32-bit libraries build
* Fri Nov 20 2020 Simon Pichugin <spichugi@redhat.com> - 2.4.56-2
- Drop non-threaded libldap (#1537260)
* Wed Nov 18 2020 Simon Pichugin <spichugi@redhat.com> - 2.4.56-1