qubes-release: provide system-release(releasever)

dnf do not support distroverpkg option to detect $relasever value.
Instead, it looks for a various packages, starting with
'system-release(releasever)', then 'system-release' and
'redhat-release'.
Until Fedora 29's dnf it took package version for $releasever value, but
starting with Fedora 29 it takes Provides value instead (it looks like
that code was in place before already, but for some reason it didn't worked).
Both 'redhat-release' and 'system-release' are set to base Fedora
version and needs to stay this way to satisfy Fedora's packages
dependencies. This means, $releasever was set to base Fedora version,
not Qubes version, which breaks repository urls.
Add 'system-release(releasever)' (which is checked first) with Qubes
version to solve this problem.

Fixes QubesOS/qubes-issues#4477
This commit is contained in:
Marek Marczykowski-Górecki 2018-11-12 22:01:29 +01:00
parent 2d52be2815
commit 578dc74879
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -14,6 +14,7 @@ Obsoletes: redhat-release
Provides: fedora-release = %{fedora_base_version}-%{release}
Provides: redhat-release = %{fedora_base_version}-%{release}
Provides: system-release = %{fedora_base_version}-%{release}
Provides: system-release(releasever) = %{version}
Obsoletes: qubes-dom0-dist-upgrade <= 3.2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch