Remove arch specific provides for noarch subpackages

Also add Release to the Provides version, so it adhere the Packaging
Guidelines
This commit is contained in:
Lukas Javorsky 2024-01-31 13:13:08 +00:00
parent e7752d4c32
commit 859da9f619

View File

@ -71,7 +71,7 @@
%bcond obsoletes_community_mysql 1
# This is the last version of the 'community-mysql' package production release
%global obsolete_community_mysql_version 8.0.35-4
%global community_mysql_version 8.0.36
%global community_mysql_version 8.0.36-1
# Make long macros shorter
%global sameevr %{?epoch:%{epoch}:}%{version}-%{release}
@ -259,7 +259,6 @@ Summary: The shared files required for MySQL server and client
BuildArch: noarch
Requires: %{_sysconfdir}/my.cnf
%{?with_provides_community_mysql:Provides: community-mysql-common = %community_mysql_version}
%{?with_provides_community_mysql:Provides: community-mysql-common%{?_isa} = %community_mysql_version}
%{?with_obsoletes_community_mysql:Obsoletes: community-mysql-common <= %obsolete_community_mysql_version}
%description common
@ -275,7 +274,6 @@ Summary: The error messages files required by MySQL server
BuildArch: noarch
Requires: %{name}-common = %{sameevr}
%{?with_provides_community_mysql:Provides: community-mysql-errmsg = %community_mysql_version}
%{?with_provides_community_mysql:Provides: community-mysql-errmsg%{?_isa} = %community_mysql_version}
%{?with_obsoletes_community_mysql:Obsoletes: community-mysql-errmsg <= %obsolete_community_mysql_version}
%description errmsg