Add %{zen} to spec file

This commit is contained in:
Wizzard 2024-01-27 22:59:53 -05:00
parent b4fdbfee68
commit 89b6e0c4db
1 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,5 @@
%global debug_package %{nil} %global debug_package %{nil}
%global zen zen1
Name: linux-zen Name: linux-zen
Version: 6.7.2 Version: 6.7.2
Release: 1%{?dist} Release: 1%{?dist}
@ -6,7 +7,7 @@ Summary: Linux kernel and modules with Zen patches
License: GPL-2.0-only License: GPL-2.0-only
URL: http://www.zen-kernel.org/ URL: http://www.zen-kernel.org/
Source0: v%{version}-zen1.tar.gz Source0: v%{version}-%{zen}.tar.gz
Patch0: 0000-NTPatch.patch Patch0: 0000-NTPatch.patch
Patch1: 0001-NTPatch.patch Patch1: 0001-NTPatch.patch
Patch2: 0002-NTPatch.patch Patch2: 0002-NTPatch.patch
@ -23,7 +24,7 @@ BuildRequires: gcc, make, flex, bison, ncurses-devel, elfutils-libelf-devel, op
Linux kernel and modules with Zen patches (%{version} series) compiled with Clang. Linux kernel and modules with Zen patches (%{version} series) compiled with Clang.
%prep %prep
%setup -q -n zen-kernel-%{version}-zen1 %setup -q -n zen-kernel-%{version}-%{zen}
cp %{_sourcedir}/.config .config cp %{_sourcedir}/.config .config
%patch0 -p1 %patch0 -p1
@ -78,13 +79,13 @@ VMLINUX_PATH=%{buildroot}/boot
mkdir -p $VMLINUX_PATH mkdir -p $VMLINUX_PATH
# Navigate to the directory where vmlinux is located # Navigate to the directory where vmlinux is located
cd %{_builddir}/zen-kernel-%{version}-zen1 cd %{_builddir}/zen-kernel-%{version}-%{zen}
# Compress vmlinux and move it to the vmlinuz path # Compress vmlinux and move it to the vmlinuz path
gzip -c vmlinux > $VMLINUX_PATH/vmlinuz-%{version}-zen1 gzip -c vmlinux > $VMLINUX_PATH/vmlinuz-%{version}-%{zen}
%files %files
/boot/vmlinuz-%{version}-zen1 /boot/vmlinuz-%{version}-%{zen}
/lib/modules/* /lib/modules/*
%changelog %changelog