diff --git a/kernel.spec b/kernel.spec index 09d8c81..a5c6734 100644 --- a/kernel.spec +++ b/kernel.spec @@ -21,7 +21,7 @@ # Don't parametrize this, it's a check to avoid build a kernel without having # edited the obsoletes needed for multiple kernel support -%define KERNEL_OBSOLETES_ARE_FOR_VERSION 4.4.23 +%define KERNEL_OBSOLETES_ARE_FOR_VERSION 4.4.27 #% define kernel_longterm 1 %define kernel_MAJver %(echo %version | cut -d. -f1) @@ -87,7 +87,7 @@ %define _use_internal_dependency_generator 1 Name: kernel -Version: 4.4.23 +Version: 4.4.27 Release: 1mamba Summary: The Linux Kernel, the operating system core itself Group: System/Kernel and Hardware @@ -212,6 +212,7 @@ Obsoletes: kernel-%{KERNEL_TARGET} < 3.10 Obsoletes: kernel-%{KERNEL_TARGET} = %{kernel_majver}.8 Obsoletes: kernel-%{KERNEL_TARGET} = %{kernel_majver}.15 Obsoletes: kernel-%{KERNEL_TARGET} = %{kernel_majver}.20 +Obsoletes: kernel-%{KERNEL_TARGET} = %{kernel_majver}.23 ## KERNELOBSOLETES-END %description %{KERNEL_TARGET} @@ -231,6 +232,7 @@ Obsoletes: kernel-%{KERNEL_TARGET}-source < 3.10 Obsoletes: kernel-%{KERNEL_TARGET}-source = %{kernel_majver}.8 Obsoletes: kernel-%{KERNEL_TARGET}-source = %{kernel_majver}.15 Obsoletes: kernel-%{KERNEL_TARGET}-source = %{kernel_majver}.20 +Obsoletes: kernel-%{KERNEL_TARGET}-source = %{kernel_majver}.23 ## KERNELOBSOLETES-END %description %{KERNEL_TARGET}-source @@ -241,13 +243,14 @@ This kernel sources are configured for %{TARGET_CPU} architecture and the follow %package %{KERNEL_TARGET}-headers Group: Development/Kernel Summary: Headers, scripts, configuration and Makefile for the linux kernel -Requires: kernel-%{KERNEL_TARGET} == %{version}-%{release} +#Requires: kernel-%{KERNEL_TARGET} == %{version}-%{release} Provides: kernelheaders = %{version} ## KERNELOBSOLETES-BEGIN 3.18 Obsoletes: kernel-%{KERNEL_TARGET}-headers < 3.10 Obsoletes: kernel-%{KERNEL_TARGET}-headers = %{kernel_majver}.8 Obsoletes: kernel-%{KERNEL_TARGET}-headers = %{kernel_majver}.15 Obsoletes: kernel-%{KERNEL_TARGET}-headers = %{kernel_majver}.20 +Obsoletes: kernel-%{KERNEL_TARGET}-headers = %{kernel_majver}.23 ## KERNELOBSOLETES-END %description %{KERNEL_TARGET}-headers @@ -264,6 +267,7 @@ Obsoletes: kernel-%{KERNEL_TARGET}-headers-sanitised < 3.10 Obsoletes: kernel-%{KERNEL_TARGET}-headers-sanitised = %{kernel_majver}.8 Obsoletes: kernel-%{KERNEL_TARGET}-headers-sanitised = %{kernel_majver}.15 Obsoletes: kernel-%{KERNEL_TARGET}-headers-sanitised = %{kernel_majver}.20 +Obsoletes: kernel-%{KERNEL_TARGET}-headers-sanitised = %{kernel_majver}.23 ## KERNELOBSOLETES-END %description %{KERNEL_TARGET}-headers-sanitised @@ -281,6 +285,7 @@ Obsoletes: kernel-%{KERNEL_TARGET}-sound < 3.10 Obsoletes: kernel-%{KERNEL_TARGET}-sound = %{kernel_majver}.8 Obsoletes: kernel-%{KERNEL_TARGET}-sound = %{kernel_majver}.15 Obsoletes: kernel-%{KERNEL_TARGET}-sound = %{kernel_majver}.20 +Obsoletes: kernel-%{KERNEL_TARGET}-sound = %{kernel_majver}.23 ## KERNELOBSOLETES-END %description %{KERNEL_TARGET}-sound @@ -299,6 +304,7 @@ Obsoletes: kernel-%{KERNEL_TARGET}-wireless < 3.10 Obsoletes: kernel-%{KERNEL_TARGET}-wireless = %{kernel_majver}.8 Obsoletes: kernel-%{KERNEL_TARGET}-wireless = %{kernel_majver}.15 Obsoletes: kernel-%{KERNEL_TARGET}-wireless = %{kernel_majver}.20 +Obsoletes: kernel-%{KERNEL_TARGET}-wireless = %{kernel_majver}.23 ## KERNELOBSOLETES-END Requires: crda @@ -316,6 +322,7 @@ Obsoletes: kernel-%{KERNEL_TARGET}-firmware < 3.10 Obsoletes: kernel-%{KERNEL_TARGET}-firmware = %{kernel_majver}.8 Obsoletes: kernel-%{KERNEL_TARGET}-firmware = %{kernel_majver}.15 Obsoletes: kernel-%{KERNEL_TARGET}-firmware = %{kernel_majver}.20 +Obsoletes: kernel-%{KERNEL_TARGET}-firmware = %{kernel_majver}.23 ## KERNELOBSOLETES-END Provides: linux_firmware @@ -695,11 +702,18 @@ echo "%{_prefix}/src/linux-%{kernel_ver}%{?KERNEL_TARGET}/arch/$headers_arch" >> # INSTALL_HDR_PATH=%{buildroot}%{_prefix}/src/linux-%{kernel_ver}%{KERNEL_TARGET}/usr #% else ARCH=%{target_cpu} make headers_install \ - HOSTCC=%{_target_platform}-gcc \ + HOSTCC=%{_build}-gcc \ CROSS_COMPILE=%{_target_platform}- \ INSTALL_HDR_PATH=%{buildroot}%{_prefix}/src/linux-%{kernel_ver}%{KERNEL_TARGET}/usr #% endif +# Do not package cross-platform host tools +if [ "%{_build}" != "%{_target_platform}" ]; then + for f in asn1_compiler conmakehash extract-cert kallsyms sortextable; do + rm -f %{buildroot}/usr/src/linux-%{kernel_ver}%{?KERNEL_TARGET}/scripts/$f + done +fi + # from kernel 3.0.4 patch rm -f %{buildroot}/usr/src/linux-%{kernel_ver}%{?KERNEL_TARGET}/MAINTAINERS.orig @@ -1043,6 +1057,9 @@ exit 0 /lib/firmware/* %changelog +* Thu Oct 27 2016 Silvan Calarco 4.4.27-1mamba +- update to 4.4.27 + * Sun Oct 02 2016 Silvan Calarco 4.4.23-1mamba - update to 4.4.23