Bump for 5.0

This commit is contained in:
Laura Abbott 2019-01-07 06:55:50 -08:00
parent 4479cba924
commit ab28abb0b2
1 changed files with 15 additions and 15 deletions

View File

@ -60,7 +60,7 @@ Summary: The Linux kernel
%define stablerev %{stable_update} %define stablerev %{stable_update}
%define stable_base %{stable_update} %define stable_base %{stable_update}
%endif %endif
%define rpmversion 4.%{base_sublevel}.%{stable_update} %define rpmversion 5%{base_sublevel}.%{stable_update}
## The not-released-kernel case ## ## The not-released-kernel case ##
%else %else
@ -71,7 +71,7 @@ Summary: The Linux kernel
# The git snapshot level # The git snapshot level
%define gitrev 7 %define gitrev 7
# Set rpm version accordingly # Set rpm version accordingly
%define rpmversion 4.%{upstream_sublevel}.0 %define rpmversion 5.%{upstream_sublevel}.0
%endif %endif
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below. # Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
@ -162,7 +162,7 @@ Summary: The Linux kernel
%endif %endif
# The kernel tarball/base version # The kernel tarball/base version
%define kversion 4.%{base_sublevel} %define kversion 5.%{base_sublevel}
%define make_target bzImage %define make_target bzImage
%define image_install_path boot %define image_install_path boot
@ -422,7 +422,7 @@ BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
%define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu- %define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu-
%endif %endif
Source0: https://www.kernel.org/pub/linux/kernel/v4.x/linux-%{kversion}.tar.xz Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{kversion}.tar.xz
Source11: x509.genkey Source11: x509.genkey
Source12: remove-binary-diff.pl Source12: remove-binary-diff.pl
@ -469,7 +469,7 @@ Source1000: kernel-local
# For a stable release kernel # For a stable release kernel
%if 0%{?stable_update} %if 0%{?stable_update}
%if 0%{?stable_base} %if 0%{?stable_base}
%define stable_patch_00 patch-4.%{base_sublevel}.%{stable_base}.xz %define stable_patch_00 patch-5.%{base_sublevel}.%{stable_base}.xz
Source5000: %{stable_patch_00} Source5000: %{stable_patch_00}
%endif %endif
@ -478,14 +478,14 @@ Source5000: %{stable_patch_00}
# near the top of this spec file. # near the top of this spec file.
%else %else
%if 0%{?rcrev} %if 0%{?rcrev}
Source5000: patch-4.%{upstream_sublevel}-rc%{rcrev}.xz Source5000: patch-5.%{upstream_sublevel}-rc%{rcrev}.xz
%if 0%{?gitrev} %if 0%{?gitrev}
Source5001: patch-4.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz Source5001: patch-5.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
%endif %endif
%else %else
# pre-{base_sublevel+1}-rc1 case # pre-{base_sublevel+1}-rc1 case
%if 0%{?gitrev} %if 0%{?gitrev}
Source5000: patch-4.%{base_sublevel}-git%{gitrev}.xz Source5000: patch-5.%{base_sublevel}-git%{gitrev}.xz
%endif %endif
%endif %endif
%endif %endif
@ -875,7 +875,7 @@ ApplyPatch()
exit 1 exit 1
fi fi
if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
if [ "${patch:0:8}" != "patch-4." ] ; then if [ "${patch:0:8}" != "patch-5." ] ; then
echo "ERROR: Patch $patch not listed as a source patch in specfile" echo "ERROR: Patch $patch not listed as a source patch in specfile"
exit 1 exit 1
fi fi
@ -908,20 +908,20 @@ ApplyOptionalPatch()
# Update to latest upstream. # Update to latest upstream.
%if 0%{?released_kernel} %if 0%{?released_kernel}
%define vanillaversion 4.%{base_sublevel} %define vanillaversion 5.%{base_sublevel}
# non-released_kernel case # non-released_kernel case
%else %else
%if 0%{?rcrev} %if 0%{?rcrev}
%define vanillaversion 4.%{upstream_sublevel}-rc%{rcrev} %define vanillaversion 5.%{upstream_sublevel}-rc%{rcrev}
%if 0%{?gitrev} %if 0%{?gitrev}
%define vanillaversion 4.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev} %define vanillaversion 5.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
%endif %endif
%else %else
# pre-{base_sublevel+1}-rc1 case # pre-{base_sublevel+1}-rc1 case
%if 0%{?gitrev} %if 0%{?gitrev}
%define vanillaversion 4.%{base_sublevel}-git%{gitrev} %define vanillaversion 5.%{base_sublevel}-git%{gitrev}
%else %else
%define vanillaversion 4.%{base_sublevel} %define vanillaversion 5.%{base_sublevel}
%endif %endif
%endif %endif
%endif %endif
@ -934,7 +934,7 @@ ApplyOptionalPatch()
# Build a list of the other top-level kernel tree directories. # Build a list of the other top-level kernel tree directories.
# This will be used to hardlink identical vanilla subdirs. # This will be used to hardlink identical vanilla subdirs.
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-4.*' \ sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-5.*' \
| grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||: | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
# Delete all old stale trees. # Delete all old stale trees.