Repository navigation
Expand file tree
/
Copy pathlinux-libc-headers.spec
More file actions
112 lines (101 loc) · 2.87 KB
/
Copy pathlinux-libc-headers.spec
File metadata and controls
112 lines (101 loc) · 2.87 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
%define basever 7.1
%define postver 0
Summary: Linux kernel headers for use with C libraries
Summary(pl.UTF-8): Nagłówki jądra Linuksa do użytku z bibliotekami C
Name: linux-libc-headers
Version: %{basever}.%{postver}
Release: 2
Epoch: 7
License: GPL v2
Group: Development
Source0: https://www.kernel.org/pub/linux/kernel/v7.x/linux-%{basever}.tar.xz
# Source0-md5: b6b169bbd9c9c19857ad16db2ddf8def
%if "%{postver}" > "0"
Source1: https://www.kernel.org/pub/linux/kernel/v7.x/patch-%{version}.xz
# Source1-md5: dac2a9e84973152d0e92cf9a887aefdb
%endif
Patch0: %{name}-esfq.patch
Patch1: %{name}-wrr.patch
Patch2: %{name}-fbsplash.patch
Patch3: %{name}-imq.patch
Patch4: %{name}-pom-set.patch
Patch5: %{name}-atm-vbr.patch
Patch6: vserver.patch
URL: https://www.kernel.org/
AutoReqProv: no
BuildRequires: perl-base
BuildRequires: rpmbuild(macros) >= 1.568
BuildRequires: rsync
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Obsoletes: alsa-driver-devel < 1.1
Obsoletes: glibc-kernel-headers < 7:2.6.2
Obsoletes: glibc-kernheaders < 2.6
Conflicts: lm_sensors-devel < 2.8.2-2
ExclusiveOS: Linux
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%ifarch ppc ppc64
%define target_arch powerpc
%else
%ifarch x32
%define target_arch x86_64
%else
%ifarch aarch64
%define target_arch arm64
%else
%define target_arch %{_target_base_arch}
%endif
%endif
%endif
# no objects to extract debug info from
%define _enable_debug_packages 0
%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.
%description -l pl.UTF-8
Ten pakiet zawiera pliki nagłówkowe C, które definiują interfejs
między jądrem Linuksa a bibliotekami i programami działającymi w
przestrzeni użytkownika. Pliki nagłówkowe definiują struktury i stałe
potrzebne do zbudowania większości standardowych programów, są także
potrzebne do przebudowania pakietu glibc.
%prep
%setup -q -c
cd linux-%{basever}
%if "%{postver}" > "0"
bzip2 -dc %{SOURCE1} | patch -p1
%endif
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
%patch -P5 -p1
%patch -P6 -p1
%install
rm -rf $RPM_BUILD_ROOT
%{__make} -C linux-%{basever} headers_install \
INSTALL_HDR_PATH=$RPM_BUILD_ROOT%{_prefix} \
ARCH=%{target_arch}
# provided by glibc-headers
%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/scsi
# currently provided by libdrm-devel
%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/drm
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%{_includedir}/asm
%{_includedir}/asm-generic
%{_includedir}/cxl
%{_includedir}/fwctl
%{_includedir}/linux
%{_includedir}/misc
%{_includedir}/mtd
%{_includedir}/rdma
%{_includedir}/regulator
%{_includedir}/sound
%{_includedir}/video
%{_includedir}/xen