ALT Linux repositórios
Group :: Desenvolvimento/Kernel
RPM: glibc-kernheaders
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: glibc-kernheaders
Version: 2.6.24
Release: alt4
Summary: Linux kernel C header files for use by glibc and other userspace software
License: GPL
Group: Development/Kernel
Url: ftp://ftp.kernel.org/pub/linux/kernel/v2.6
Packager: Linux Kernel Development Team <kernel at packages.altlinux.org>
Patch: %name-%version-%release.patch
Provides: kernel-headers = %version-%release
Provides: linux-libc-headers = %version-%release
Obsoletes: linux-libc-headers
BuildRequires: kernel-build-tools >= 0.8, kernel-source-%version
ExclusiveOS: Linux
%ifarch %ix86 x86_64
%define base_arch x86
%else
%define base_arch %_target_cpu
%endif
%description
This package 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
%setup -qcT
rm -rf kernel-source-%version
tar -xjf %kernel_src/kernel-source-%version.tar.bz2
%setup -qDT -n %name-%version/kernel-source-%version
%patch -p1
%install
make headers_install ARCH=%base_arch \
INSTALL_HDR_PATH=%buildroot%_includedir/linux-default
d="$PWD"
pushd %buildroot%_includedir/linux-default/include
for f in {asm,linux}/*.h; do
printf '#include <%%s>\n' "$f" |
%__cc %optflags -xc -c -I"$PWD" -o/dev/null - ||
echo "$f"
done >"$d/fail.log"
popd
%pre
if [ -L %_includedir/linux-default/include/asm ]; then
rm -f %_includedir/linux-default/include/asm
fi
%files
%_includedir/linux-default
%doc fail.log
%changelog
…
Todas as alterações você pod ver aqui
Version: 2.6.24
Release: alt4
Summary: Linux kernel C header files for use by glibc and other userspace software
License: GPL
Group: Development/Kernel
Url: ftp://ftp.kernel.org/pub/linux/kernel/v2.6
Packager: Linux Kernel Development Team <kernel at packages.altlinux.org>
Patch: %name-%version-%release.patch
Provides: kernel-headers = %version-%release
Provides: linux-libc-headers = %version-%release
Obsoletes: linux-libc-headers
BuildRequires: kernel-build-tools >= 0.8, kernel-source-%version
ExclusiveOS: Linux
%ifarch %ix86 x86_64
%define base_arch x86
%else
%define base_arch %_target_cpu
%endif
%description
This package 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
%setup -qcT
rm -rf kernel-source-%version
tar -xjf %kernel_src/kernel-source-%version.tar.bz2
%setup -qDT -n %name-%version/kernel-source-%version
%patch -p1
%install
make headers_install ARCH=%base_arch \
INSTALL_HDR_PATH=%buildroot%_includedir/linux-default
d="$PWD"
pushd %buildroot%_includedir/linux-default/include
for f in {asm,linux}/*.h; do
printf '#include <%%s>\n' "$f" |
%__cc %optflags -xc -c -I"$PWD" -o/dev/null - ||
echo "$f"
done >"$d/fail.log"
popd
%pre
if [ -L %_includedir/linux-default/include/asm ]; then
rm -f %_includedir/linux-default/include/asm
fi
%files
%_includedir/linux-default
%doc fail.log
%changelog
…
Todas as alterações você pod ver aqui