Fix ldconfig path.

It does not work with symlinks
This commit is contained in:
Michal Schorm 2017-10-09 14:21:41 +02:00
parent f9cb9e667b
commit 949ef84e50

View File

@ -1,6 +1,6 @@
Name: mariadb-connector-c
Version: 3.0.2
Release: 10%{?dist}
Release: 11%{?dist}
Summary: The MariaDB Native Client library (C driver)
Group: Applications/Databases
License: LGPLv2+
@ -74,7 +74,7 @@ make %{?_smp_mflags}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/mariadb" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
echo "%{_libdir}/mysql" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
# static linked libraries and symlinks to them
rm %{buildroot}%{_libdir}/mariadb/libmariadbclient.a
@ -148,6 +148,9 @@ fi
%license COPYING.LIB
%changelog
* Mon Oct 09 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-11
- Fix ldconfig path
* Wed Oct 04 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-10
- Add scriptlets to handle errors in /usr/lib64/ created by older versions
of mariadb and mariadb-connector-c pakages