From 62b9a3d9d7b5fbd303c7d19293e9ae64f3aa52eb Mon Sep 17 00:00:00 2001 From: tigro Date: Fri, 18 Oct 2024 22:46:46 +0300 Subject: [PATCH] Added missing json files --- SPECS/osbuild-composer.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SPECS/osbuild-composer.spec b/SPECS/osbuild-composer.spec index 502401c..a8dd88d 100644 --- a/SPECS/osbuild-composer.spec +++ b/SPECS/osbuild-composer.spec @@ -156,6 +156,16 @@ install -m 0755 -vp _bin/osbuild-jobsite-builder %{buildroot}% # Only include repositories for the distribution and release install -m 0755 -vd %{buildroot}%{_datadir}/osbuild-composer/repositories +# MSVSphere support block +%if 0%{?msvsphere} +# MSVSphere 9 supports building for all MSVSphere versions +%if 0%{?msvsphere} >= 9 +install -m 0644 -vp repositories/msvsphere-* %{buildroot}%{_datadir}/osbuild-composer/repositories/ +%else +# MSVSphere 8 only supports building for MSVSphere 8 +install -m 0644 -vp repositories/msvsphere-%{msvsphere}* %{buildroot}%{_datadir}/osbuild-composer/repositories/ +%endif +%else # CentOS also defines rhel so we check for centos first %if 0%{?centos} @@ -199,6 +209,7 @@ done %endif %endif %endif +%endif # Fedora can build for all included fedora releases %if 0%{?fedora}