]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
rpms: Fix mysql devel package dependency for rhel/centos 7
authorDavide Franco <packager@dflc.ch>
Sat, 5 Jun 2021 08:45:09 +0000 (10:45 +0200)
committerEric Bollengier <eric@baculasystems.com>
Mon, 7 Jun 2021 13:23:47 +0000 (15:23 +0200)
bacula/platforms/rpms/redhat/bacula.spec.in

index b469b7a0c75c22954d34845244ab9afad682f246..2f32cf22462b4109ae2ee93ed358ef8ad83aef9d 100644 (file)
@@ -364,10 +364,12 @@ BuildRequires: libstdc++-static-devel
 BuildRequires: glibc-static-devel
 %endif
 
-%if %{mysql} && ! %{suse} && ! %{rhel7}
-BuildRequires: mysql-devel
-%else
+%if %{mysql} && ! %{suse}
+%if %{rhel7}
 BuildRequires: mariadb-devel
+%else
+BuildRequires: mysql-devel
+%endif
 %endif
 
 %if %{postgresql}