-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-glibc-devel.spec
63 lines (52 loc) · 2.09 KB
/
linux-glibc-devel.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Summary: Headers describing the kernel ABI
Name: linux-glibc-devel
License: GPLv2
URL: http://www.kernel.org/
%define kversion 3.18.136
Version: %{kversion}
Release: 2
Provides: kernel-headers = %{kversion}
Obsoletes: kernel-headers <= %{kversion}
#
# A note about versions and patches.
# This package is supposed to provide the official, stable kernel ABI, as specified
# by the kernels released by Linus Torvalds. Release candidate kernels do not
# have a stable ABI yet, and should thus not be in this package.
#
# Likewise, if there are distro patches in the kernel package that would have the
# unfortunate side effect of extending the kernel ABI, these extensions are unofficial
# and applications should not depend on these extensions, and hence, these extensions
# should not be part of this package.
#
# Applications that want headers from the kernel that are not in this package need
# to realize that what they are using is not a stable ABI, and also need to include
# a provide a copy of the header they are interested in into their own package/source
# code.
#
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-%{kversion}.tar.xz
Patch0: api-fix-compatibility-of-linux-in.h-with-netinet-in.patch
BuildRequires: findutils, make >= 3.78, diffutils, gawk
%description
The linux-glibc-devel package contains the header files that describe
the kernel ABI. This package is mostly used by the C library and some
low level system software, and is only used indirectly by regular
applications.
%prep
%setup -q -n linux-%{kversion}
# api-fix-compatibility-of-linux-in.h-with-netinet-in.patch
%patch0 -p1
%build
make allyesconfig
%install
make INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
# glibc provides scsi headers for itself, for now
find $RPM_BUILD_ROOT/usr/include -name ".install" | xargs rm -f
find $RPM_BUILD_ROOT/usr/include -name "..install.cmd" | xargs rm -f
rm -rf $RPM_BUILD_ROOT/usr/include/scsi
rm -f $RPM_BUILD_ROOT/usr/include/asm*/atomic.h
rm -f $RPM_BUILD_ROOT/usr/include/asm*/io.h
rm -f $RPM_BUILD_ROOT/usr/include/asm*/irq.h
%files
%defattr(-,root,root)
%license COPYING
/usr/include/*