Add mariadbXX.XX provide

This commit is contained in:
Filip Janus 2024-02-01 23:24:38 +01:00
parent 6af9ed3656
commit aaaf2ae734

View File

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