%define rel 1
%define basever 5.4
-%define postver .4
+%define postver .60
# define this to '-%{basever}' for longterm branch
-%define versuffix %{nil}
+%define versuffix -%{basever}
# __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)
# Source0-md5: ce9b2d974d27408a61c53a30d3f98fb9
%if "%{postver}" != ".0"
Patch0: https://www.kernel.org/pub/linux/kernel/v5.x/patch-%{version}.xz
-# Patch0-md5: 53540f1e73665f503cd437aca3e4cc35
+# Patch0-md5: 73c2cbbf9ad508ac53f30ef168731d46
%endif
Source1: kernel.sysconfig
# Patch creation:
# git clone git://github.com/sfjro/aufs5-standalone.git
# cd aufs5-standalone
-# git checkout -b aufs5.2 origin/aufs5.2
+# git checkout -b aufs5.4 origin/aufs5.4
# cat aufs5-kbuild.patch aufs5-base.patch aufs5-mmap.patch aufs5-standalone.patch > ~/rpm/packages/kernel/kernel-aufs5.patch
# rm -rf linux && mkdir linux; cp -a Documentation fs include linux
# diff -urN /usr/share/empty linux | filterdiff -x linux/include/uapi/linux/Kbuild >> ~/rpm/packages/kernel/kernel-aufs5.patch
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
+find -name '*.py' -print0 | \
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
+ -e '1s,/usr/bin/env python,%{__python},' \
+ -e '1s,/usr/bin/env python3,%{__python3},'
+
+%{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
+ -e '1s,/usr/bin/env python,%{__python},' \
+ -e '1s,/usr/bin/env python3,%{__python3},' \
+ drivers/staging/greybus/tools/lbtest \
+ scripts/bloat-o-meter \
+ scripts/diffconfig \
+ scripts/show_delta \
+ tools/kvm/kvm_stat/kvm_stat
+
+find -name '*.pl' -print0 | \
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+ scripts/dtc/dt_to_config \
+ scripts/cleanfile \
+ scripts/cleanpatch \
+ scripts/documentation-file-ref-check \
+ scripts/get_dvb_firmware \
+ scripts/kernel-doc \
+ scripts/stackdelta
+
%build
install -d %{objdir}
cat > %{targetobj}.mk <<'EOF'