# Maintainer: Eric Naim %define _default_patch_fuzz 2 %define _disable_source_fetch 0 %define debug_package %{nil} Name: kernel-headers Summary: Header files for the Linux kernel for use by glibc - patched with NTSYNCv7 Version: 6.13 Release: 1%{?dist} License: GPL-2.0-only URL: https://www.gnu.org/software/libc BuildRequires: gcc BuildRequires: make BuildRequires: rsync Obsoletes: glibc-kernheaders < 3.0-46 Obsoletes: kernel-headers < %{version}-%{release} Provides: glibc-kernheaders = 3.0-46 Provides: kernel-headers = %{version}-%{release} Source0: https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-%{version}.tar.xz Patch0: https://github.com/CachyOS/CachyOS-PKGBUILDS/raw/refs/heads/master/toolchain/linux-api-headers/ntsync.patch %description Kernel-headers includes the C header files that specify the interface between the Linux kernel and userspace libraries and programs. The header files define structures and constants that are needed for building most standard programs and are also needed for rebuilding the glibc package. %prep %autosetup -p1 -n linux-%{version} %build %make_build mrproper %install %make_build ARCH=%{_target_cpu} INSTALL_HDR_PATH=%{buildroot}/usr headers_install find %{buildroot}/%{_includedir} \ \( -name .install -o -name .check -o \ -name ..install.cmd -o -name ..check.cmd \) -delete %files %{_includedir}