# Define if building a cross compiler %define build_cross 0 %{expand: %{?cross: %%global build_cross 1}} %define target_cpu %{_target_cpu} %define cross_prefix %{nil} %define includedir %{_includedir} %if %{build_cross} %define cross_prefix cross-%{target_cpu}- %define target_cpu %{cross} %define isarch() %(case " %* " in (*" %{target_cpu} "*) echo 1;; (*) echo 0;; esac) %if %isarch %arm %define gnuext -gnueabi %else %define gnuext -gnu %endif %define includedir /usr/%{target_cpu}-%_real_vendor-linux%{gnuext}/include %endif %define arch %(echo %{target_cpu}|sed -e "s/mips.*/mips/" -e "s/arm.*/arm/") # kernel-headers are generated from mageia kernel version %{kver}.%{ever} %define kver 3.10.24 %define ever 2.mga3 Summary: Linux kernel header files for userspace Name: %{cross_prefix}kernel-userspace-headers Version: %{kver} Release: %mkrel 2 License: GPLv2 Group: System/Kernel and hardware URL: http://www.kernel.org/ # kernel-headers tarball generated from mageia kernel in svn with: # make INSTALL_HDR_PATH=<path> headers_install_all # find <path> -name ..install.cmd -exec rm -f {} \; # find <path> -name .install -exec rm -f {} \; Source0: kernel-userspace-headers-%{kver}.%{ever}.tar.xz Source1: make_versionh.sh Source2: create_asm_headers.sh %rename %{cross_prefix}linux-userspace-headers Provides: kernel-headers = 1:%{version}-%{release} %description C header files from the Linux kernel. The header files define structures and constants that are needed for building most standard programs. This package is not suitable for building kernel modules. %prep %setup -q -n kernel-userspace-headers-%{kver}.%{ever} %{expand:%(%__cat %{_sourcedir}/make_versionh.sh 2>/dev/null)} TARGET=%{arch} %{expand:%(%__cat %{_sourcedir}/create_asm_headers.sh 2>/dev/null)} %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{includedir} cp -avf * %{buildroot}/%{includedir} # (cg) Remove files provided by libdrm for hdr in drm.h drm_mode.h drm_sarea.h i915_drm.h mga_drm.h nouveau_drm.h \ r128_drm.h radeon_drm.h savage_drm.h sis_drm.h via_drm.h; do rm -f %{buildroot}%{includedir}/drm/$hdr done %clean rm -rf %{buildroot} %files %defattr(0644,root,root,0755) %{includedir}/* %changelog * Fri Dec 13 2013 tmb <tmb> 3.10.24-2.mga3 + Revision: 556628 - sync with kernel-3.10.24-2.mga3 - sync with kernel-3.10.24-1.mga3 - sync with kernel-3.10.22-1.mga3 - sync with kernel-3.10.19-1.mga3 - sync with kernel-3.10.18-1.mga3 - sync with kernel-3.10.16-1.mga3 - sync with kernel-3.10.15-1.mga3 - sync with kernel-3.10.12-1.mga3 - sync with kernel-3.8.13.4-1.mga3 - sync with kernel-3.8.13.3-2.mga3 - sync with kernel-3.8.13.3-1.mga3 * Tue May 14 2013 tmb <tmb> 3.8.13-1.mga3 + Revision: 413189 - sync with kernel-3.8.13-1.mga3 * Fri May 10 2013 tmb <tmb> 3.8.12-2.mga3 + Revision: 412830 - sync with kernel-3.8.12-2.mga3 * Wed May 08 2013 tmb <tmb> 3.8.12-1.mga3 + Revision: 412653 - sync with kernel-3.8.12-1.mga3 * Wed May 01 2013 tmb <tmb> 3.8.11-1.mga3 + Revision: 411799 - sync with kernel-3.8.11-1.mga3 * Sat Apr 27 2013 tmb <tmb> 3.8.10-1.mga3 + Revision: 411321 - sync with kernel-3.8.10-1.mga3 * Sat Apr 20 2013 tmb <tmb> 3.8.8-2.mga3 + Revision: 410586 - sync with kernel-3.8.8-2.mga3 * Wed Apr 17 2013 tmb <tmb> 3.8.8-1.mga3 + Revision: 410273 - sync with kernel-3.8.8-1.mga3 * Sun Apr 07 2013 tmb <tmb> 3.8.6-1.mga3 + Revision: 408737 - sync with kernel-3.8.6-1.mga3 * Sat Mar 30 2013 tmb <tmb> 3.8.5-1.mga3 + Revision: 406609 - sync with kernel-3.8.5-1.mga3 * Mon Mar 18 2013 tmb <tmb> 3.8.3-2.mga3 + Revision: 403963 - sync with kernel-3.8.3-2.mga3 * Fri Mar 15 2013 tmb <tmb> 3.8.3-1.mga3 + Revision: 403302 - sync with kernel-3.8.3-1.mga3 * Sat Mar 02 2013 tmb <tmb> 3.8.1-1.mga3 + Revision: 401082 - sync with kernel-3.8.1-1.mga3 * Thu Feb 28 2013 tmb <tmb> 3.8.0-3.mga3 + Revision: 400582 - sync with kernel-3.8.0-3.mga3 * Fri Feb 22 2013 tmb <tmb> 3.8.0-2.mga3 + Revision: 399984 - sync with kernel-3.8.0-2.mga3 * Tue Feb 19 2013 tmb <tmb> 3.8.0-1.mga3 + Revision: 399299 - sync with kernel-3.8.0-1.mga3 * Sat Feb 09 2013 tmb <tmb> 3.8.0-0.rc7.1.mga3 + Revision: 397399 - sync with kernel-3.8.0-0.rc7.1.mga3 * Fri Feb 08 2013 tmb <tmb> 3.8.0-0.rc6.2.mga3 + Revision: 396943 - sync with kernel-3.8.0-0.rc6.2.mga3 * Wed Feb 06 2013 tmb <tmb> 3.8.0-0.rc6.1.mga3 + Revision: 394892 - sync with kernel-3.8.0-0.rc6.1.mga3 * Sun Jan 27 2013 tmb <tmb> 3.8.0-0.rc5.1.mga3 + Revision: 392621 - sync with kernel-3.8.0-0.rc5.1.mga3 * Fri Jan 18 2013 tmb <tmb> 3.8.0-0.rc4.1.mga3 + Revision: 389477 - sync with kernel-3.8.0-0.rc4.1.mga3 * Thu Jan 17 2013 tmb <tmb> 3.8.0-0.rc3.2.mga3 + Revision: 388954 - sync with kernel-3.8.0-0.rc3.2.mga3 * Thu Jan 10 2013 tmb <tmb> 3.8.0-0.rc3.1.mga3 + Revision: 344646 - sync with kernel-3.8.0-0.rc3.1.mga3 * Tue Dec 18 2012 tmb <tmb> 3.7.1-1.mga3 + Revision: 332469 - sync with kernel-3.7.1-1.mga3 * Tue Dec 11 2012 tmb <tmb> 3.7.0-2.mga3 + Revision: 329576 - sync with kernel-3.7.0-1.mga3 * Thu Dec 06 2012 tmb <tmb> 3.7.0-1.mga3 + Revision: 327540 - sync with kernel-3.7.0-0.rc8.1.mga3 * Thu Nov 01 2012 tmb <tmb> 3.6.5-1.mga3 + Revision: 311839 - sync with kernel-3.6.5-1.mga3 * Sun Oct 28 2012 tmb <tmb> 3.6.4-1.mga3 + Revision: 311119 - sync with kernel-3.6.4-1.mga3 * Sun Oct 21 2012 tmb <tmb> 3.6.3-1.mga3 + Revision: 309010 - sync with kernel-3.6.3-1.mga3 * Wed Oct 17 2012 tmb <tmb> 3.6.2-1.mga3 + Revision: 307753 - sync with kernel-3.6.2-1.mga3 * Sun Sep 30 2012 tmb <tmb> 3.5.5-1.mga3 + Revision: 300771 - sync with kernel-3.5.5-0.rc1.1.mga3 * Sat Sep 15 2012 tmb <tmb> 3.5.4-1.mga3 + Revision: 294086 - sync with kernel-3.5.4-1.mga3 * Tue Sep 11 2012 tmb <tmb> 3.5.3-3.mga3 + Revision: 292279 - sync with kernel-3.5.3-3.mga3 * Thu Aug 30 2012 tmb <tmb> 3.5.3-2.mga3 + Revision: 285693 - sync headers with kernel-3.5.3-2.mga3 * Sun Aug 26 2012 tmb <tmb> 3.5.3-1.mga3 + Revision: 284271 - sync with kernel-3.5.3-1.mga3 * Thu Aug 16 2012 tmb <tmb> 3.5.2-1.mga3 + Revision: 281617 - sync with kernel-3.5.2-1.mga3 * Sat Aug 11 2012 tmb <tmb> 3.5.1-1.mga3 + Revision: 280495 - sync with kernel-3.5.1-1.mga3 * Sat Jul 28 2012 tmb <tmb> 3.5.0-1.mga3 + Revision: 275111 - sync with kernel-3.5.0-1.mga3 * Fri Jul 20 2012 tmb <tmb> 3.4.6-1.mga3 + Revision: 272884 - sync headers with kernel-3.4.6-1.mga3 * Thu Jul 19 2012 tmb <tmb> 3.4.5-1.mga3 + Revision: 272433 - sync headers with kernel-3.4.5-1.mga3 * Wed Jun 27 2012 tmb <tmb> 3.4.4-1.mga3 + Revision: 264268 - sync with kernel-3.4.4-1.mga3 * Wed Jun 20 2012 tmb <tmb> 3.4.3-1.mga3 + Revision: 262382 - sync headers with kernel-3.4.3-1.mga3 * Sat Jun 09 2012 tmb <tmb> 3.4.2-1.mga3 + Revision: 258991 - sync headers with kernel-3.4.2-1.mga3 * Tue Jun 05 2012 tmb <tmb> 3.4.1-2.mga3 + Revision: 255724 - sync headers with kernel-3.4.1-1.mga3 * Mon May 28 2012 tmb <tmb> 3.4.1-1.mga3 + Revision: 247906 - sync headers with kernel-3.4.1-0.rc1.1.mga3 * Sat May 12 2012 tmb <tmb> 3.3.6-1.mga2 + Revision: 235526 - sync with kernel-3.3.6-1.mga2 * Thu May 10 2012 tmb <tmb> 3.3.5-1.mga2 + Revision: 235178 - sync with kernel-3.3.5-1.mga2 * Sat Apr 28 2012 tmb <tmb> 3.3.4-1.mga2 + Revision: 233745 - sync with kernel-3.3.4-1.mga2 * Mon Apr 23 2012 tmb <tmb> 3.3.3-1.mga2 + Revision: 232863 - sync headers with kernel-3.3.3-1.mga2 * Tue Apr 03 2012 tmb <tmb> 3.3.1-1.mga2 + Revision: 228041 - sync with kernel-3.3.1-1.mga2 * Mon Mar 19 2012 tmb <tmb> 3.3.0-2.mga2 + Revision: 224357 - sync with kernel-3.3.0-1.mga2 * Mon Mar 05 2012 tmb <tmb> 3.3.0-1.mga2 + Revision: 219051 - sync with kernel-3.3.0-0.rc6.1.mga2 * Thu Mar 01 2012 tmb <tmb> 3.2.9-1.mga2 + Revision: 216443 - sync with kernel-3.2.9-1.mga2 * Tue Feb 14 2012 tmb <tmb> 3.2.6-2.mga2 + Revision: 208953 - sync with kernel-3.2.6-2.mga2 * Thu Jan 26 2012 tmb <tmb> 3.2.2-1.mga2 + Revision: 202005 - sync headers with kernel-3.2.2-1.mga2 * Sun Jan 15 2012 tmb <tmb> 3.2.1-1.mga2 + Revision: 196427 - sync with kernel-3.2.1-1.mga2 * Thu Jan 05 2012 tmb <tmb> 3.2.0-2.mga2 + Revision: 191549 - sync wth kernel-3.2.0-1.mga2 - drop old conflicts and obsoletes - fix license - drop buildroot - obsolete old linux-userspace-headers - rename spec to match new name - rename to kernel-userspace-headers * Wed Dec 28 2011 tmb <tmb> 3.2.0-1.mga2 + Revision: 188493 - sync with kernel-3.2.0-0.rc7.2.mga2 * Sun Nov 27 2011 tmb <tmb> 3.1.3-1.mga2 + Revision: 173113 - sync with kernel-3.1.3-1.mga2 * Mon Oct 24 2011 tmb <tmb> 3.1.0-2.mga2 + Revision: 157694 - sync with kernel-3.1.0-1.mga2 * Thu Oct 06 2011 tmb <tmb> 3.1.0-1.mga2 + Revision: 152271 - sync headers with kernel-3.1.0-0.rc9.1.mga2 - sync with kernel-3.0.3-1.mga2 - sync with kernel-3.0.0-1.mga2 * Sun Jul 17 2011 tmb <tmb> 3.0.0-1.mga2 + Revision: 125489 - sync headers with kernel-3.0.0-0.rc7.5.1.mga2 * Sun May 22 2011 tmb <tmb> 2.6.38.7-1.mga1 + Revision: 100110 - sync with kernel-2.6.38.7-1.mga * Fri Apr 22 2011 tmb <tmb> 2.6.38.4-2.mga1 + Revision: 89806 - sync with kernel-2.6.38.4-1.mga (for updated ipset) * Mon Mar 21 2011 rtp <rtp> 2.6.38-2.mga1 + Revision: 75160 - fix spec for architectures where cpu<->architecture function is not bijective - allow to create "cross rpm" (needed to create cross toolchain). * Sun Mar 20 2011 tmb <tmb> 2.6.38-1.mga1 + Revision: 74961 - sync with kernel-2.6.38-1.mga1 * Sat Jan 08 2011 tmb <tmb> 2.6.37-2.mga1 + Revision: 1210 - imported package linux-userspace-headers