From aaaf2ae7345f06fe795ba483d271592a777fc235 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Thu, 1 Feb 2024 23:24:38 +0100 Subject: [PATCH] Add mariadbXX.XX provide --- mariadb10.11.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mariadb10.11.spec b/mariadb10.11.spec index 5e1a943..c19bf26 100644 --- a/mariadb10.11.spec +++ b/mariadb10.11.spec @@ -302,9 +302,20 @@ Provides: %{pkgname}%{?1:-%{1}} = %{sameevr}\ Provides: %{pkgname}%{?1:-%{1}}%{?_isa} = %{sameevr}\ } +# Provide also mariadbXX.XX if default +%if %?mariadb_default +%define mariadbXX_if_default() %{expand:\ +Provides: mariadb%{pkg_version}%{?1:-%{1}} = %{sameevr}\ +Provides: mariadb%{pkg_version}%{?1:-%{1}}%{?_isa} = %{sameevr}\ +} +%else +%define mariadbXX_if_default() %{nil} +%endif + %define add_metadata() %{expand:\ %conflict_with_other_streams %{**}\ %pkg_provides %{**}\ +%mariadbXX_if_default %{**}\ } %add_metadata @@ -426,7 +437,7 @@ member. MariaDB is a community developed fork originally from MySQL. %package -n %{pkgname}-server Summary: The MariaDB server and related files -Requires: %{pkgname}%{?_isa} +Requires: %{pkgname} = %{sameevr} Requires: %{pkgname}-common = %{sameevr} Requires: %{pkgname}-errmsg = %{sameevr} Recommends: %{pkgname}-server-utils%{?_isa} = %{sameevr}