LFS-RPM/SPECS/kernel.spec

114 lines
3.1 KiB
RPMSpec
Raw Normal View History

2023-04-05 21:51:08 +08:00
# no stripping
2023-04-15 10:24:06 +08:00
%global debug_package %{nil}
%global __strip /bin/true
2023-04-05 21:51:08 +08:00
# kernel tags
2023-04-15 10:24:06 +08:00
%global kseries 6.1
2023-06-05 23:20:39 +08:00
%global krel 32
2023-04-15 10:24:06 +08:00
%global localktag genesis.1
Name: kernel
Version: %{kseries}.%{krel}
Release: %{?repo}%{localktag}%{?dist}
Summary: The Linux kernel
Group: System Environment/Kernel
2023-04-27 20:08:43 +08:00
License: GPL-2.0 WITH Linux-syscall-note
2023-04-15 10:24:06 +08:00
URL: https://www.kernel.org
Source0: https://www.kernel.org/pub/linux/kernel/v6.x/linux-%{version}.tar.xz
Source1: config-%{version}-%{localktag}
Provides: linux-kernel = %{kseries}
2023-04-05 21:51:08 +08:00
#BuildRequires:
#Requires:
%description
2023-04-15 10:24:06 +08:00
This package contains the Linux kernel. You can not boot GNU/Linux
without a kernel.
2023-04-05 21:51:08 +08:00
%package modules
2023-04-15 10:24:06 +08:00
Summary: Linux Kernel Modules
Group: System Environment/Core
Requires: %{name} = %{version}-%{release}
2023-04-05 21:51:08 +08:00
%description modules
This package includes the Linux kernel modules. You *probably* can not
successfully boot your system without the proper kernel modules package
that matches the kernel.
%package doc
2023-04-15 10:24:06 +08:00
Summary: Linux Kernel Documentation
Group: Developer/Documentation
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
2023-04-05 21:51:08 +08:00
%description doc
This package contains the Linux kernel documentation.
%prep
%setup -n linux-%{version}
make mrproper
cp %{SOURCE1} ./.config
%build
make oldconfig
make %{?_smp_mflags}
%install
export INSTALL_MOD_PATH=%{buildroot}
make modules_install
rm -f %{buildroot}/lib/modules/%{version}-%{localktag}/build
rm -f %{buildroot}/lib/modules/%{version}-%{localktag}/source
install -D -m644 .config %{buildroot}/boot/config-%{version}-%{localktag}
install -m644 System.map %{buildroot}/boot/System.map-%{version}-%{localktag}
install -m644 arch/%{_arch}/boot/bzImage %{buildroot}/boot/vmlinuz-%{version}-%{localktag}
install -d %{buildroot}%{_datadir}/doc
cp -r Documentation %{buildroot}%{_datadir}/doc/linux-%{version}
%files
%defattr(-,root,root,-)
/boot/config-%{version}-%{localktag}
/boot/System.map-%{version}-%{localktag}
/boot/vmlinuz-%{version}-%{localktag}
2023-04-06 19:51:00 +08:00
%license COPYING LICENSES
2023-04-05 21:51:08 +08:00
%doc COPYING CREDITS LICENSES MAINTAINERS README
%files modules
%defattr(-,root,root,-)
/lib/modules/%{version}-%{localktag}
2023-04-06 19:51:00 +08:00
%license COPYING LICENSES
2023-04-05 21:51:08 +08:00
%doc COPYING CREDITS LICENSES MAINTAINERS README
%files doc
%defattr(-,root,root,-)
%{_datadir}/doc/linux-%{version}
%changelog
2023-06-05 23:20:39 +08:00
* Mon Jun 05 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.32-genesis.1
- Update to 6.1.32
2023-05-30 22:41:51 +08:00
* Tue May 30 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.31-genesis.1
- Update to 6.1.31
2023-05-25 01:30:34 +08:00
* Wed May 24 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.30-genesis.1
- Update to 6.1.30
2023-05-18 19:52:37 +08:00
* Thu May 18 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.29-genesis.1
- Update to 6.1.29
2023-05-12 05:09:30 +08:00
* Thu May 11 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.28-genesis.1
- Update to 6.1.28
- Prune changelog
2023-05-01 21:16:55 +08:00
* Mon May 01 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.27-genesis.1
- Update to 6.1.27
2023-04-27 20:08:43 +08:00
* Thu Apr 27 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.26-genesis.1
- Update to 6.1.26
2023-04-05 21:51:08 +08:00
* Sat Mar 11 2023 Michael A. Peters <anymouseprohet@gmail.com> - 6.1.18-genesis.1
- Initial kernel packaging