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}