[Fixup] Fix my.cnf dependency

Fixup of commit:
  commit 45b40b2e9c515cfb04d6eaabc0c1b2e90eb1a535
  Author: Yaakov Selkowitz <yselkowi@redhat.com>
  Date:   Mon Apr 8 23:18:44 2024 -0400

Fixup contains:
 - use macro instead of '/etc/'
 - extend the condition to other occurences
This commit is contained in:
Michal Schorm 2024-04-17 02:01:06 +02:00
parent 60e7da0fac
commit 7d24cb9757

View File

@ -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