Readd devel sub-package for i686

el9
leigh123linux 6 years ago
parent 291f02862b
commit 485229cda9

@ -37,7 +37,7 @@
Name: xorg-x11-drv-nvidia Name: xorg-x11-drv-nvidia
Epoch: 3 Epoch: 3
Version: 396.24 Version: 396.24
Release: 2%{?dist} Release: 3%{?dist}
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
License: Redistributable, no modification permitted License: Redistributable, no modification permitted
@ -258,11 +258,7 @@ ldconfig -vn %{buildroot}%{_nvidia_libdir}/
ldconfig -vn %{buildroot}%{_libdir}/ ldconfig -vn %{buildroot}%{_libdir}/
# Libraries you can link against # Libraries you can link against
%ifarch x86_64
for lib in libcuda libnvcuvid libnvidia-encode; do for lib in libcuda libnvcuvid libnvidia-encode; do
%else
for lib in libcuda; do
%endif
ln -sf $lib.so.%{version} %{buildroot}%{_libdir}/$lib.so ln -sf $lib.so.%{version} %{buildroot}%{_libdir}/$lib.so
done done
@ -292,6 +288,10 @@ sed -i -e 's|libGLX_nvidia.so.0|libGL.so.1|' %{buildroot}%{_datadir}/vulkan/icd.
touch -r nvidia_icd.json.template %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json touch -r nvidia_icd.json.template %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
%endif %endif
# Install headers
install -m 0755 -d %{buildroot}%{_includedir}/nvidia/GL/
install -p -m 0644 {gl.h,glext.h,glx.h,glxext.h} %{buildroot}%{_includedir}/nvidia/GL/
%ifarch x86_64 %ifarch x86_64
# X DDX driver and GLX extension # X DDX driver and GLX extension
install -p -D -m 0755 libglx.so.%{version} %{buildroot}%{_nvidia_xorgdir}/libglx.so.%{version} install -p -D -m 0755 libglx.so.%{version} %{buildroot}%{_nvidia_xorgdir}/libglx.so.%{version}
@ -329,10 +329,6 @@ install -m 0755 -d %{buildroot}%{_bindir}
install -p -m 0755 nvidia-{bug-report.sh,debugdump,smi,cuda-mps-control,cuda-mps-server} \ install -p -m 0755 nvidia-{bug-report.sh,debugdump,smi,cuda-mps-control,cuda-mps-server} \
%{buildroot}%{_bindir} %{buildroot}%{_bindir}
# Install headers
install -m 0755 -d %{buildroot}%{_includedir}/nvidia/GL/
install -p -m 0644 {gl.h,glext.h,glx.h,glxext.h} %{buildroot}%{_includedir}/nvidia/GL/
# Install man pages # Install man pages
install -m 0755 -d %{buildroot}%{_mandir}/man1/ install -m 0755 -d %{buildroot}%{_mandir}/man1/
install -p -m 0644 nvidia-{cuda-mps-control,smi}.1.gz \ install -p -m 0644 nvidia-{cuda-mps-control,smi}.1.gz \
@ -576,14 +572,15 @@ fi ||:
%{_libdir}/libnvidia-opencl.so.1 %{_libdir}/libnvidia-opencl.so.1
%{_libdir}/libnvidia-opencl.so.%{version} %{_libdir}/libnvidia-opencl.so.%{version}
%ifarch x86_64
%files devel %files devel
%{_includedir}/nvidia/ %{_includedir}/nvidia/
%{_libdir}/libnvcuvid.so %{_libdir}/libnvcuvid.so
%{_libdir}/libnvidia-encode.so %{_libdir}/libnvidia-encode.so
%endif
%changelog %changelog
* Fri Jun 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 3:396.24-3
- Readd devel sub-package for i686
* Fri May 04 2018 Leigh Scott <leigh123linux@googlemail.com> - 3:396.24-2 * Fri May 04 2018 Leigh Scott <leigh123linux@googlemail.com> - 3:396.24-2
- Clean up - Clean up

Loading…
Cancel
Save