diff --git a/dkms-nvidia.spec b/dkms-nvidia.spec index 8781572..69b546f 100755 --- a/dkms-nvidia.spec +++ b/dkms-nvidia.spec @@ -9,11 +9,12 @@ Epoch: 3 License: NVIDIA License URL: http://www.nvidia.com/object/unix.html # Package is not noarch as it contains pre-compiled binary code -ExclusiveArch: x86_64 ppc64le +ExclusiveArch: x86_64 ppc64le aarch64 Source0: %{dkms_name}-kmod-%{version}-x86_64.tar.xz Source1: dkms-%{dkms_name}.conf Source2: %{dkms_name}-kmod-%{version}-ppc64le.tar.xz +Source3: %{dkms_name}-kmod-%{version}-aarch64.tar.xz BuildRequires: sed Provides: %{dkms_name}-kmod = %{?epoch:%{epoch}:}%{version} @@ -36,6 +37,11 @@ cp -f %{SOURCE1} kernel/dkms.conf cp -f %{SOURCE1} kernel/dkms.conf %endif +%ifarch aarch64 +%setup -q -T -b 3 -n %{dkms_name}-kmod-%{version}-aarch64 +cp -f %{SOURCE1} kernel/dkms.conf +%endif + sed -i -e 's/__VERSION_STRING/%{version}/g' kernel/dkms.conf %build