posttrans: dkms: add and build module for any installed kernel found [release 570.86.16-2mamba;Sat Feb 22 2025]
This commit is contained in:
parent
a3199dc021
commit
02312c9233
23
nvidia.spec
23
nvidia.spec
@ -1,9 +1,9 @@
|
|||||||
%define nvidia_current_ver %version
|
%define nvidia_current_ver %version
|
||||||
%define nvidia_current_libver %version
|
%define nvidia_current_libver %version
|
||||||
Name: nvidia
|
Name: nvidia
|
||||||
Version: 565.77
|
Version: 570.86.16
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel
|
Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -79,6 +79,8 @@ These modules are packaged apart from the main kernel modules because they are n
|
|||||||
# Turn off strip'ng of binaries
|
# Turn off strip'ng of binaries
|
||||||
%global __strip /bin/true
|
%global __strip /bin/true
|
||||||
|
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -n %{name}-%{version} -T
|
%setup -q -c -n %{name}-%{version} -T
|
||||||
|
|
||||||
@ -95,8 +97,6 @@ sed -i "s|__UTILS_PATH__|%{_bindir}|;s|__PIXMAP_PATH__|%{_datadir}/pixmaps|" \
|
|||||||
current/nvidia-settings.desktop
|
current/nvidia-settings.desktop
|
||||||
|
|
||||||
cd current
|
cd current
|
||||||
#%patch0 -p1
|
|
||||||
#%patch1 -p1
|
|
||||||
tar xf nvidia-persistenced-init.tar.bz2
|
tar xf nvidia-persistenced-init.tar.bz2
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
@ -350,8 +350,12 @@ dkms remove -q -m nvidia -v %{version} --all
|
|||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
# clean any legacy alternatives symlink
|
# clean any legacy alternatives symlink
|
||||||
find /lib/modules/*/kernel/drivers/video/ -name nvidia.ko -type l -exec rm -f {} \;
|
find /lib/modules/*/kernel/drivers/video/ -name nvidia.ko -type l -exec rm -f {} \;
|
||||||
dkms add -q -m %{name} -v %{version}
|
# dkms: add and build module for any installed kernel found
|
||||||
dkms install -q -m %{name} -v %{version}
|
ls /boot/vmlinuz-*| while read line; do
|
||||||
|
k=${line/*vmlinuz-}
|
||||||
|
dkms add -q -m %{name} -v %{version} -k ${k}
|
||||||
|
dkms install -q -m %{name} -v %{version} -k ${k}
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/sbin/depmod -a -F /boot/System.map-%{kernel_ver}%{?KERNEL_TARGET} \
|
/sbin/depmod -a -F /boot/System.map-%{kernel_ver}%{?KERNEL_TARGET} \
|
||||||
@ -380,6 +384,7 @@ INITRAMFS=/boot/initramfs-${KVER}.img
|
|||||||
%{_unitdir}/nvidia-persistenced.service
|
%{_unitdir}/nvidia-persistenced.service
|
||||||
%{_unitdir}/nvidia-powerd.service
|
%{_unitdir}/nvidia-powerd.service
|
||||||
%{_unitdir}/nvidia-suspend.service
|
%{_unitdir}/nvidia-suspend.service
|
||||||
|
%{_unitdir}/nvidia-suspend-then-hibernate.service
|
||||||
%{_unitdir}/nvidia-resume.service
|
%{_unitdir}/nvidia-resume.service
|
||||||
%{_unitdir}/nvidia-fallback.service
|
%{_unitdir}/nvidia-fallback.service
|
||||||
%{_sysusersdir}/nvidia.conf
|
%{_sysusersdir}/nvidia.conf
|
||||||
@ -417,6 +422,12 @@ INITRAMFS=/boot/initramfs-${KVER}.img
|
|||||||
%doc current/LICENSE
|
%doc current/LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 22 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 570.86.16-2mamba
|
||||||
|
- posttrans: dkms: add and build module for any installed kernel found
|
||||||
|
|
||||||
|
* Thu Feb 06 2025 Automatic Build System <autodist@openmamba.org> 570.86.16-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Thu Dec 05 2024 Automatic Build System <autodist@openmamba.org> 565.77-1mamba
|
* Thu Dec 05 2024 Automatic Build System <autodist@openmamba.org> 565.77-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user