From 7d24cb9757188bf482ea8da0e204b9cf22da0c44 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 17 Apr 2024 02:01:06 +0200 Subject: [PATCH] [Fixup] Fix my.cnf dependency Fixup of commit: commit 45b40b2e9c515cfb04d6eaabc0c1b2e90eb1a535 Author: Yaakov Selkowitz Date: Mon Apr 8 23:18:44 2024 -0400 Fixup contains: - use macro instead of '/etc/' - extend the condition to other occurences --- mariadb10.11.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mariadb10.11.spec b/mariadb10.11.spec index 0da8335..24913a7 100644 --- a/mariadb10.11.spec +++ b/mariadb10.11.spec @@ -376,7 +376,7 @@ BuildArch: noarch %if 0%{?flatpak} Requires: mariadb-connector-c-config %else -Requires: /etc/my.cnf +Requires: %{_sysconfdir}/my.cnf %endif # Only conflicts, provides would add %%{_isa} provides for noarch, @@ -455,8 +455,12 @@ Recommends: %{pkgname}-backup%{?_isa} = %{sameevr} Suggests: mytop Suggests: logrotate +%if 0%{?flatpak} +Requires: mariadb-connector-c-config +%else Requires: %{_sysconfdir}/my.cnf Requires: %{_sysconfdir}/my.cnf.d +%endif %virtual_conflicts_and_provides server