From 47aa81f0f878df2b2348a54d6ec0c52fb241c1a6 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Mon, 7 Aug 2017 18:18:08 +0200 Subject: [PATCH] Use correct rocksdb conditions and remove bundled rocksdb if not compiled --- mariadb.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mariadb.spec b/mariadb.spec index a0c7404..89e4274 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -676,6 +676,9 @@ then fi } +%if %{without rocksdb} +rm -r storage/rocksdb/ +%endif %build @@ -1266,7 +1269,7 @@ fi # Cracklib plugin %config(noreplace) %{_sysconfdir}/my.cnf.d/cracklib_password_check.cnf # RocksDB engine -%ifarch x86_64 ppc64le aarch64 armv7hl +%if %{with rocksdb} %config(noreplace) %{_sysconfdir}/my.cnf.d/rocksdb.cnf %endif