osbuild-composer: add Requires: osbuild-dnf-json-api = 7

Use an exact version dependency on the `osbuild-dnf-json-api` to
ensure incompatible json protocol changes cannot break composer.

See also https://github.com/osbuild/osbuild/pull/1849
This commit is contained in:
Michael Vogt 2024-08-15 16:01:30 +02:00
parent 972093cc93
commit 9e5fdc80ee

View file

@ -326,6 +326,9 @@ cd $PWD/_build/src/%{goipath}
%package core
Summary: The core osbuild-composer binary
Requires: osbuild-depsolve-dnf >= %{min_osbuild_version}
# This version needs to get bumped everytime the osbuild-depsolve-dnf json
# API changes in incompatible ways
Requires: osbuild-dnf-json-api = 7
Provides: %{name}-dnf-json = %{version}-%{release}
Obsoletes: %{name}-dnf-json < %{version}-%{release}