Diff
2 commits, 1 file changed
+5 -5

file modified
+5 -5

@@ -149,9 +149,9 @@

  

  # Copy all the architectures we care about to their respective asm directories

  for arch in $ARCH_LIST; do

- 	mkdir -p $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/include

- 	mv arch-${arch}/asm $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/include/

- 	cp -a asm-generic $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/include/

+ 	mkdir -p $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/sys-root/usr/include/

+ 	mv arch-${arch}/asm $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/sys-root/usr/include/

+ 	cp -a asm-generic $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/sys-root/usr/include/

  done

  

  # Remove what we copied already

@@ -162,7 +162,7 @@

  # Copy the rest of the headers over

  cp -a * $RPM_BUILD_ROOT%{_includedir}/

  for arch in $ARCH_LIST; do

- cp -a * $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/include/

+ cp -a * $RPM_BUILD_ROOT%{_prefix}/${arch}-linux-gnu/sys-root/usr/include/

  done

  

  %files

@@ -171,7 +171,7 @@

  

  %files -n kernel-cross-headers

  %defattr(-,root,root)

- %{_prefix}/*-linux-gnu/*

+ %{_prefix}/*-linux-gnu

  

  %changelog

  * Tue Oct 23 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.19.0-1