Use correct rocksdb conditions and remove bundled rocksdb if not compiled

This commit is contained in:
Honza Horak 2017-08-07 18:18:08 +02:00
parent ab242dbfda
commit 47aa81f0f8

View File

@ -676,6 +676,9 @@ then
fi fi
} }
%if %{without rocksdb}
rm -r storage/rocksdb/
%endif
%build %build
@ -1266,7 +1269,7 @@ fi
# Cracklib plugin # Cracklib plugin
%config(noreplace) %{_sysconfdir}/my.cnf.d/cracklib_password_check.cnf %config(noreplace) %{_sysconfdir}/my.cnf.d/cracklib_password_check.cnf
# RocksDB engine # RocksDB engine
%ifarch x86_64 ppc64le aarch64 armv7hl %if %{with rocksdb}
%config(noreplace) %{_sysconfdir}/my.cnf.d/rocksdb.cnf %config(noreplace) %{_sysconfdir}/my.cnf.d/rocksdb.cnf
%endif %endif