|
|
@ -240,9 +240,9 @@ popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Vulkan config
|
|
|
|
# Vulkan config
|
|
|
|
sed -i -e 's|__NV_VK_ICD__|libGLX_nvidia.so.0|' nvidia_icd.json.template
|
|
|
|
sed -i -e 's|__NV_VK_ICD__|libGLX_nvidia.so.0|' nvidia_icd.json
|
|
|
|
install -m 0755 -d %{buildroot}%{_datadir}/vulkan/icd.d/
|
|
|
|
install -m 0755 -d %{buildroot}%{_datadir}/vulkan/icd.d/
|
|
|
|
install -p -m 0644 nvidia_icd.json.template %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
|
|
|
|
install -p -m 0644 nvidia_icd.json %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
# X DDX driver and GLX extension
|
|
|
|
# X DDX driver and GLX extension
|
|
|
@ -318,7 +318,7 @@ cat > %{buildroot}%{rpmmacrodir}/macros.%{name}-kmodsrc<< EOF
|
|
|
|
%nvidia_kmodsrc_version %{version}
|
|
|
|
%nvidia_kmodsrc_version %{version}
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 25
|
|
|
|
%if 0%{?fedora}
|
|
|
|
# install AppData and add modalias provides
|
|
|
|
# install AppData and add modalias provides
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata/
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata/
|
|
|
|
install -pm 0644 %{SOURCE8} %{buildroot}%{_datadir}/appdata/
|
|
|
|
install -pm 0644 %{SOURCE8} %{buildroot}%{_datadir}/appdata/
|
|
|
|