-
Notifications
You must be signed in to change notification settings - Fork 3
/
kernel-headers.spec.in
33 lines (25 loc) · 955 Bytes
/
kernel-headers.spec.in
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
Summary: RISC-V kernel headers interim package
Name: kernel-headers
Version: @KERNEL_VERSION@
Release: 1.fc27
License: GPLv2
BuildArch: noarch
Provides: glibc-kernheaders = 3.0-46
%description
This is an interim kernel-headers package generated for the
Fedora/RISC-V stage3 bootstrap.
Eventually we will build this from the real kernel package,
but for now we need this to satisfy dependencies in glibc RPM.
%install
mkdir -p $RPM_BUILD_ROOT%{_includedir}
cp -a @ROOT@/kernel-headers/usr/include/* $RPM_BUILD_ROOT%{_includedir}/
find $RPM_BUILD_ROOT%{_includedir} -name .install -delete
find $RPM_BUILD_ROOT%{_includedir} -name ..install.cmd -delete
# Avoids conflicts with librdmacm-devel package over trivial
# permissions differences.
chmod -R g-w $RPM_BUILD_ROOT%{_includedir}
# This has to match the mode of glibc-headers, else you get file conflicts.
chmod 0755 $RPM_BUILD_ROOT%{_includedir}/scsi
%files
%{_includedir}/*
%changelog