remove version from filenames

This commit is contained in:
Pratham Patel 2023-11-09 13:14:51 +05:30
parent 539f6237d1
commit d2fac7ecc6
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View File

@ -225,8 +225,8 @@ BuildConflicts: rhbuildsys(DiskFree) < 500Mb
###
Source0: https://www.kernel.org/pub/linux/kernel/v6.x/linux-%{LKAver}.tar.xz
Source2: config-%{version}-x86_64
Source4: config-%{version}-aarch64
Source2: config-x86_64
Source4: config-aarch64
Source20: mod-denylist.sh
Source21: mod-sign.sh
@ -575,7 +575,7 @@ cp -a %{SOURCE4} .
sed -i "s@^EXTRAVERSION.*@EXTRAVERSION = -%{release}.%{_target_cpu}@" Makefile
%ifarch x86_64 || aarch64
cp config-%{version}-%{_target_cpu} .config
cp config-%{_target_cpu} .config
%{__make} -s ARCH=%{bldarch} listnewconfig | grep -E '^CONFIG_' > newoptions-el9-%{_target_cpu}.txt || true
if [ -s newoptions-el9-%{_target_cpu}.txt ]; then
cat newoptions-el9-%{_target_cpu}.txt
@ -589,17 +589,17 @@ rm -f newoptions-el9-%{_target_cpu}.txt
openssl x509 -inform der -in %{SOURCE100} -out rheldup3.pem
openssl x509 -inform der -in %{SOURCE101} -out rhelkpatch1.pem
cat rheldup3.pem rhelkpatch1.pem > certs/rhel.pem
for i in config-%{version}-*; do
for i in config-*; do
sed -i 's@CONFIG_SYSTEM_TRUSTED_KEYS="*"@CONFIG_SYSTEM_TRUSTED_KEYS="certs/rhel.pem"@' $i
done
%else
for i in config-%{version}-*; do
for i in config-*; do
sed -i 's@CONFIG_SYSTEM_TRUSTED_KEYS="*"@CONFIG_SYSTEM_TRUSTED_KEYS=""@' $i
done
%endif
# Adjust the FIPS module name for RHEL9.
for i in config-%{version}-*; do
for i in config-*; do
sed -i 's@CONFIG_CRYPTO_FIPS_NAME=.*@CONFIG_CRYPTO_FIPS_NAME="Red Hat Enterprise Linux 9 - Kernel Cryptographic API"@' $i
done
@ -611,7 +611,7 @@ popd > /dev/null
pushd linux-%{KVERREL} > /dev/null
%ifarch x86_64 || aarch64
cp config-%{version}-%{_target_cpu} .config
cp config-%{_target_cpu} .config
%{__make} -s ARCH=%{bldarch} oldconfig