%bcond_without pcmcia # don't build pcmcia
%bcond_with verbose # verbose build (V=1)
-%bcond_with reiser4 # support for reiser4 fs (experimental)
%bcond_with fbcondecor # build fbcondecor (disable FB_TILEBLITTING and affected fb modules)
%bcond_without pae # build PAE (HIGHMEM64G) support on 32bit i686 athlon pentium3 pentium4
%bcond_without imq # imq support
%bcond_without esfq # esfq support
%bcond_without ipv6 # ipv6 support
-%bcond_with padmcrypt # parallel dm-crypt
+%bcond_without padmcrypt # parallel dm-crypt
-%bcond_without vserver # support for VServer (enabled by default)
+%bcond_without vserver # support for VServer
%bcond_with vanilla # don't include any patches
%bcond_with rescuecd # build kernel for our rescue
%define have_pcmcia 0
%endif
-%define rel 0.1
-%define basever 3.12
-%define postver .0
+%define rel 1
+%define basever 3.13
+%define postver .5
+
+# define this to '-%{basever}' for longterm branch
+%define versuffix %{nil}
# __alt_kernel is list of features, empty string if none set
# _alt kernel is defined as: %{nil}%{?alt_kernel:-%{?alt_kernel}} (defined in rpm.macros)
Summary(et.UTF-8): Linuxi kernel (ehk operatsioonisüsteemi tuum)
Summary(fr.UTF-8): Le Kernel-Linux (La partie centrale du systeme)
Summary(pl.UTF-8): Jądro Linuksa
-Name: kernel%{_alt_kernel}
+Name: kernel%{versuffix}%{_alt_kernel}
Version: %{basever}%{postver}
Release: %{rel}
Epoch: 3
License: GPL v2
Group: Base/Kernel
Source0: http://www.kernel.org/pub/linux/kernel/v3.x/linux-%{basever}.tar.xz
-# Source0-md5: cc6ee608854e0da4b64f6c1ff8b6398c
+# Source0-md5: 0ecbaf65c00374eb4a826c2f9f37606f
%if "%{postver}" != ".0"
Patch0: http://www.kernel.org/pub/linux/kernel/v3.x/patch-%{version}.xz
-# Patch0-md5: 8431ee4e2467fdfde47e31701813a265
+# Patch0-md5: 114c391a592131f1c12544e063173a45
%endif
Source1: kernel.sysconfig
Source43: kernel-vserver.config
Source55: kernel-imq.config
-Source56: kernel-reiser4.config
Source58: kernel-inittmpfs.config
Patch3: kernel-fbcondecor.patch
Patch4: kernel-fbcon-margins.patch
Patch5: linux-wistron-amilo8210.patch
+Patch6: linux-wistron-nx.patch
# netfilter related stuff mostly based on patch-o-matic-ng
# snapshot 20070806 with some fixes. Some modules
# http://www.linuximq.net
Patch50: kernel-imq.patch
-Patch51: http://downloads.sourceforge.net/project/reiser4/reiser4-for-linux-3.x/reiser4-for-3.11.1.patch.gz
-# Patch51-md5: 24a7d3711aadd26000d16eaac943a4ce
-
# http://fatooh.org/esfq-2.6/sfq-2.6.24.1.tar.bz2
Patch53: kernel-esfq.patch
# http://www.linuxtv.org/wiki/index.php/TechniSat_CableStar_Combo_HD_CI#Patch
Patch90: kernel-technisat-combo-hd-ci.patch
-# http://vserver.13thfloor.at/Experimental/patch-3.10.9-vs2.3.6.6.diff
+# http://vserver.13thfloor.at/Experimental/patch-3.13.1-vs2.3.6.10.diff
# note there are additional patches from above url:
# - *fix* are real fixes (we want these)
# - *feat* are new features/tests (we don't want these)
# Patch creation:
# git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git
# cd aufs3-standalone
-# git checkout -b aufs3.10 origin/aufs3.10
+# git checkout -b aufs3.13 origin/aufs3.13
# cat aufs3-kbuild.patch aufs3-base.patch aufs3-standalone.patch > ~/rpm/packages/kernel/kernel-aufs3.patch
# mkdir linux
# cp -a Documentation fs include linux
#Patch50000: kernel-usb_reset.patch
URL: http://www.kernel.org/
+BuildRequires: bc
BuildRequires: binutils >= 3:2.18
%ifarch sparc sparc64
BuildRequires: elftoaout
Conflicts: e2fsprogs < 1.29
Conflicts: isdn4k-utils < 3.1pre1
Conflicts: jfsutils < 1.1.3
+Conflicts: libusb < 1.0.9
Conflicts: linux-firmware < 20120720
Conflicts: lvm2 < 2.02.40
Conflicts: module-init-tools < 3.16
Conflicts: ppp < 1:2.4.0
Conflicts: procps < 3.2.0
Conflicts: quota-tools < 3.09
-%{?with_reiserfs4:Conflicts: reiser4progs < 1.0.0}
Conflicts: reiserfsprogs < 3.6.3
Conflicts: rpm < 4.4.2-0.2
Conflicts: udev < 1:081
%define objdir %{topdir}/%{targetobj}
%define targetobj %{_target_base_arch}-gcc-%(%{__cc} -dumpversion)
-%define _kernelsrcdir /usr/src/linux%{_alt_kernel}-%{version}
+%define _kernelsrcdir /usr/src/linux%{versuffix}%{_alt_kernel}-%{version}
%if "%{_target_base_arch}" != "%{_host_base_arch}"
%define CrossOpts ARCH=%{_target_base_arch} CROSS_COMPILE=%{_target_cpu}-pld-linux-
%endif
%define DepMod /sbin/depmod
%endif
-%define MakeOpts %{CrossOpts} HOSTCC="%{__cc}"
+# use 64-bit offsets for fixdeps to work with 64-bit inodes
+%define MakeOpts %{CrossOpts} HOSTCC="%{__cc} -D_FILE_OFFSET_BITS=64"
%define __features \
+%{?with_vserver:Vserver - enabled}\
+%{!?with_vserver:WARNING: VSERVER IS DISABLED IN THIS KERNEL BUILD!}\
%{?with_fbcondecor:Fbsplash/fbcondecor - enabled }\
%{?with_nfsroot:Root on NFS - enabled}\
Summary(pl.UTF-8): Pliki służące do budowania modułów jądra
Group: Development/Building
Requires: %{name}-headers = %{epoch}:%{version}-%{release}
+Requires: make
Conflicts: rpmbuild(macros) < 1.652
AutoReqProv: no
%endif
%patch4 -p1
%patch5 -p1
+%patch6 -p1
## netfilter
#
%patch50 -p1
%endif
-# reiser4
-%if %{with reiser4}
-%patch51 -p1
-%endif
-
# esfq
%if %{with esfq}
%patch53 -p1
ARCH := %{_target_base_arch}
Q := %{!?with_verbose:@}
MAKE_OPTS := %{MakeOpts}
-DEFCONFIG := %{defconfig}
+DEFCONFIG := %{defconfig}
EOF
RescueConfig() {
%endif
%ifarch i686 athlon pentium3 pentium4
- %if %{with pae}
+ %if %{with pae}
CONFIG_HIGHMEM4G=n
CONFIG_HIGHMEM64G=y
CONFIG_X86_PAE=y
CONFIG_NUMA=n
- %endif
+ %endif
%endif
%if %{without pcmcia}
rescue.config \
%endif
\
-%if %{with reiser4}
- %{SOURCE56} \
-%endif
%if %{with imq}
%{SOURCE55} \
%endif
%depmod %{kernel_release}
+%if %{without vserver}
+%banner -e -a kernel <<EOF
+
+WARNING: Vserver support is DISABLED in this kernel build!
+
+EOF
+%endif
+
%posttrans
# use posttrans to generate initrd after all dependant module packages (-drm, etc) are installed
[ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
# if dracut is present then generate full-featured initramfs
if [[ "$USE_DRACUT" != [Nn][Oo] ]] && [ -x /sbin/dracut ]; then
/sbin/dracut --force --quiet /boot/initramfs-%{kernel_release}.img %{kernel_release}
- [ -n "$initrd_file" ] || initrd_file="initramfs-%{kernel_release}.img"
+ [ -n "$initrd_file" ] || initrd_file="initramfs-%{kernel_release}.img"
fi
if [[ "$CREATE_SYMLINKS" != [Nn][Oo] ]]; then
mv -f %{initrd_dir}/initrd{,.old} 2> /dev/null
- if [ -n "$initrd_file" ] ; then
- ln -sf "$initrd_file" %{initrd_dir}/initrd
- fi
+ if [ -n "$initrd_file" ] ; then
+ ln -sf "$initrd_file" %{initrd_dir}/initrd
+ fi
%if 0%{?alt_kernel:1}
mv -f %{initrd_dir}/initrd%{_alt_kernel}{,.old} 2> /dev/null
- if [ -n "$initrd_file" ] ; then
- ln -sf "$initrd_file" %{initrd_dir}/initrd%{_alt_kernel}
- fi
+ if [ -n "$initrd_file" ] ; then
+ ln -sf "$initrd_file" %{initrd_dir}/initrd%{_alt_kernel}
+ fi
%endif
fi
%depmod %{kernel_release}
%post headers
-ln -snf %{basename:%{_kernelsrcdir}} %{_prefix}/src/linux%{_alt_kernel}
+ln -snf %{basename:%{_kernelsrcdir}} %{_prefix}/src/linux%{versuffix}%{_alt_kernel}
%postun headers
if [ "$1" = "0" ]; then
- if [ -L %{_prefix}/src/linux%{_alt_kernel} ]; then
- if [ "$(readlink %{_prefix}/src/linux%{_alt_kernel})" = "linux%{_alt_kernel}-%{version}" ]; then
- rm -f %{_prefix}/src/linux%{_alt_kernel}
+ if [ -L %{_prefix}/src/linux%{versuffix}%{_alt_kernel} ]; then
+ if [ "$(readlink %{_prefix}/src/linux%{versuffix}%{_alt_kernel})" = "linux%{versuffix}%{_alt_kernel}-%{version}" ]; then
+ rm -f %{_prefix}/src/linux%{versuffix}%{_alt_kernel}
fi
fi
fi