Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1BadrY + umask 022 + cd /home/zsun/rpmbuild/BUILD + kmodtool --target x86_64 --repo rpmfusion --kmodname nvidia-kmod --filterfile /home/zsun/rpmbuild/SOURCES/nvidia-kmodtool-excludekernel-filterfile --obsolete-name nvidia-newest --obsolete-version 364.15 --akmod %global akmod_install mkdir -p $RPM_BUILD_ROOT/%{_usrsrc}/akmods/; \rpmbuild --define "_sourcedir %{_sourcedir}" \--define "_srcrpmdir $RPM_BUILD_ROOT/%{_usrsrc}/akmods/" \-bs --nodeps %{_specdir}/%{name}.spec ; \ln -s $(ls $RPM_BUILD_ROOT/%{_usrsrc}/akmods/) $RPM_BUILD_ROOT/%{_usrsrc}/akmods/nvidia-kmod.latest %package -n akmod-nvidia Summary: Akmod package for nvidia kernel module(s) Group: System Environment/Kernel Requires: kmodtool Requires: akmods %{?AkmodsBuildRequires:Requires: %{AkmodsBuildRequires}} # same requires and provides as a kmods package would have Requires: nvidia-kmod-common >= %{?epoch:%{epoch}:}%{version} Provides: nvidia-kmod = %{?epoch:%{epoch}:}%{version}-%{release} Provides: akmod-nvidia-newest = 364.15 Obsoletes: akmod-nvidia-newest < 364.15 %description -n akmod-nvidia This package provides the akmod package for the nvidia kernel modules. %posttrans -n akmod-nvidia nohup /usr/sbin/akmods --from-akmod-posttrans --akmod nvidia &> /dev/null & %files -n akmod-nvidia %defattr(-,root,root,-) %{_usrsrc}/akmods/* %package -n kmod-nvidia Summary: Metapackage which tracks in nvidia kernel module for newest kernel Group: System Environment/Kernel Provides: nvidia-kmod = %{?epoch:%{epoch}:}%{version}-%{release} Provides: kmod-nvidia-xen = %{?epoch:%{epoch}:}%{version}-%{release} Provides: kmod-nvidia-smp = %{?epoch:%{epoch}:}%{version}-%{release} Provides: kmod-nvidia-PAE = %{?epoch:%{epoch}:}%{version}-%{release} Requires: akmod-nvidia = %{?epoch:%{epoch}:}%{version}-%{release} Provides: kmod-nvidia-newest = 364.15 Obsoletes: kmod-nvidia-newest < 364.15 %description -n kmod-nvidia This is a meta-package without payload which sole purpose is to require the nvidia kernel module(s) for the newest kernel, to make sure you get it together with a new kernel. %files -n kmod-nvidia %defattr(644,root,root,755) + cd /home/zsun/rpmbuild/BUILD + rm -rf nvidia-kmod-364.15 + /usr/bin/mkdir -p nvidia-kmod-364.15 + cd nvidia-kmod-364.15 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + tar --use-compress-program xz -xf /usr/share/nvidia-kmod-364.15/nvidia-kmod-364.15-x86_64.tar.xz tar (child): /usr/share/nvidia-kmod-364.15/nvidia-kmod-364.15-x86_64.tar.xz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now error: Bad exit status from /var/tmp/rpm-tmp.1BadrY (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.1BadrY (%prep)