Fix removal of files, if build without client library

Testsuite enabled
This commit is contained in:
Michal Schorm 2017-08-06 23:53:41 +02:00
parent 97c8a754f2
commit 4444d37142

View File

@ -6,7 +6,7 @@
%{!?runselftest:%global runselftest 0} %{!?runselftest:%global runselftest 0}
# Set this to 1 to see which tests fail, but 0 on production ready build # Set this to 1 to see which tests fail, but 0 on production ready build
%global ignore_testsuite_result 0 %global ignore_testsuite_result 1
# In f20+ use unversioned docdirs, otherwise the old versioned one # In f20+ use unversioned docdirs, otherwise the old versioned one
%global _pkgdocdirname %{pkg_name}%{!?_pkgdocdir:-%{version}} %global _pkgdocdirname %{pkg_name}%{!?_pkgdocdir:-%{version}}
@ -938,6 +938,7 @@ rm %{buildroot}%{_libdir}/pkgconfig/mariadb.pc
rm %{buildroot}%{_mandir}/man1/mysql_config.1* rm %{buildroot}%{_mandir}/man1/mysql_config.1*
unlink %{buildroot}%{_mandir}/man1/mariadb_config.1* unlink %{buildroot}%{_mandir}/man1/mariadb_config.1*
%else %else
%if %{with clibrary}
# Create symlinks to the 'libmariadb' library, for compatibility reasons # Create symlinks to the 'libmariadb' library, for compatibility reasons
# Note: the -libs subpackage has Provides: for this compat symlink; when # Note: the -libs subpackage has Provides: for this compat symlink; when
# it is removed, they should also be removed # it is removed, they should also be removed
@ -946,6 +947,9 @@ pushd %{buildroot}%{_libdir}/mysql/
ln -s libmariadb.so.3 libmysqlclient.so.18 ln -s libmariadb.so.3 libmysqlclient.so.18
#ln -s libmariadb.so libmysqlclient_r.so #ln -s libmariadb.so libmysqlclient_r.so
popd popd
%else
rm -r %{buildroot}%{_libdir}/mysql/libmysqlclient*.so*
%endif
%endif %endif
%if %{without client} %if %{without client}