Remove unnecessary files from /usr/include

.install, ..install.cmd - see
http://bugs.rosalinux.ru/show_bug.cgi?id=630
This commit is contained in:
Eugene Shatokhin 2015-04-17 14:53:53 +03:00
parent 8ecd473a65
commit 337110ee34

View file

@ -1238,7 +1238,8 @@ BuildKernel() {
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=$KernelVer modules_install
# headers
%make INSTALL_HDR_PATH=%{temp_root}%_prefix KERNELRELEASE=$KernelVer headers_install
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=$KernelVer headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
# remove /lib/firmware, we use a separate kernel-firmware
rm -rf %{temp_root}/lib/firmware
@ -1789,6 +1790,9 @@ rm -rf %{target_source}/.tmp_depmod/
#endif %build_source
%endif
# Remove .install and ..install.cmd files from this directory tree too.
find %{target_source}/include -name .install -or -name ..install.cmd | %kxargs rm -f
# compressing modules
%if %{build_modxz}
find %{target_modules} -name "*.ko" | %kxargs xz -6e