From: Prarit Bhargava <prarit@xxxxxxxxxx> redhat/kernel.spec.template: Fix hardcoded "kernel" There are a few places where kernel is hardcoded in the spec. Replace hardcoded "kernel" with the package name, %{name}. Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx> diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100755 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -1512,7 +1512,7 @@ mkdir configs cd configs # Drop some necessary files from the source dir into the buildroot -cp $RPM_SOURCE_DIR/kernel-*.config . +cp $RPM_SOURCE_DIR/%{name}-*.config . cp %{SOURCE80} . # merge.pl cp %{SOURCE3000} . @@ -1576,7 +1576,7 @@ for opt in %{clang_make_opts}; do OPTS="$OPTS -m $opt" done %endif -RHJOBS=$RPM_BUILD_NCPUS SPECPACKAGE_NAME=kernel ./process_configs.sh $OPTS ${specversion} +RHJOBS=$RPM_BUILD_NCPUS SPECPACKAGE_NAME=${name} ./process_configs.sh $OPTS ${specversion} cp %{SOURCE82} . RPM_SOURCE_DIR=$RPM_SOURCE_DIR ./update_scripts.sh %{primary_target} @@ -1638,7 +1638,7 @@ InitBuildVars() { Variant=$1 # Pick the right kernel config file - Config=kernel-%{version}-%{_target_cpu}${Variant:+-${Variant}}.config + Config=%{name}-%{version}-%{_target_cpu}${Variant:+-${Variant}}.config DevelDir=/usr/src/kernels/%{KVERREL}${Variant:++${Variant}} KernelVer=%{version}-%{release}.%{_target_cpu}${Variant:++${Variant}} -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2253 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue