mkspec (ca712e47054678c5ce93a0e0f686353ad5561195) | mkspec (aa7d233f45b4c549750044c9921f7afcbe50925b) |
---|---|
1#!/bin/sh 2# 3# Output a simple RPM spec file. 4# This version assumes a minimum of RPM 4.13 5# 6# The only gothic bit here is redefining install_post to avoid 7# stripping the symbols from files in the kernel which we want 8# --- 5 unchanged lines hidden (view full) --- 14 S=DEL 15 MAKE="$MAKE -f $srctree/Makefile" 16else 17 S= 18 19 mkdir -p rpmbuild/SOURCES 20 cp linux.tar.gz rpmbuild/SOURCES 21 cp "${KCONFIG_CONFIG}" rpmbuild/SOURCES/config | 1#!/bin/sh 2# 3# Output a simple RPM spec file. 4# This version assumes a minimum of RPM 4.13 5# 6# The only gothic bit here is redefining install_post to avoid 7# stripping the symbols from files in the kernel which we want 8# --- 5 unchanged lines hidden (view full) --- 14 S=DEL 15 MAKE="$MAKE -f $srctree/Makefile" 16else 17 S= 18 19 mkdir -p rpmbuild/SOURCES 20 cp linux.tar.gz rpmbuild/SOURCES 21 cp "${KCONFIG_CONFIG}" rpmbuild/SOURCES/config |
22 $(dirname $0)/gen-diff-patch rpmbuild/SOURCES/diff.patch rpmbuild/SOURCES/untracked.patch 23 touch rpmbuild/SOURCES/diff.patch rpmbuild/SOURCES/untracked.patch | 22 "${srctree}/scripts/package/gen-diff-patch" rpmbuild/SOURCES/diff.patch |
24fi 25 26if grep -q CONFIG_MODULES=y include/config/auto.conf; then 27 M= 28else 29 M=DEL 30fi 31 --- 19 unchanged lines hidden (view full) --- 51 Release: $(cat .version 2>/dev/null || echo 1) 52 License: GPL 53 Group: System Environment/Kernel 54 Vendor: The Linux Community 55 URL: https://www.kernel.org 56$S Source0: linux.tar.gz 57$S Source1: config 58$S Source2: diff.patch | 23fi 24 25if grep -q CONFIG_MODULES=y include/config/auto.conf; then 26 M= 27else 28 M=DEL 29fi 30 --- 19 unchanged lines hidden (view full) --- 50 Release: $(cat .version 2>/dev/null || echo 1) 51 License: GPL 52 Group: System Environment/Kernel 53 Vendor: The Linux Community 54 URL: https://www.kernel.org 55$S Source0: linux.tar.gz 56$S Source1: config 57$S Source2: diff.patch |
59$S Source3: untracked.patch | |
60 Provides: $PROVIDES 61$S BuildRequires: bc binutils bison dwarves 62$S BuildRequires: (elfutils-libelf-devel or libelf-devel) flex 63$S BuildRequires: gcc make openssl openssl-devel perl python3 rsync 64 65 # $UTS_MACHINE as a fallback of _arch in case 66 # /usr/lib/rpm/platform/*/macros was not included. 67 %define _arch %{?_arch:$UTS_MACHINE} --- 21 unchanged lines hidden (view full) --- 89$S$M AutoReqProv: no 90$S$M %description -n kernel-devel 91$S$M This package provides kernel headers and makefiles sufficient to build modules 92$S$M against the $__KERNELRELEASE kernel package. 93$S$M 94$S %prep 95$S %setup -q -n linux 96$S cp %{SOURCE1} .config | 58 Provides: $PROVIDES 59$S BuildRequires: bc binutils bison dwarves 60$S BuildRequires: (elfutils-libelf-devel or libelf-devel) flex 61$S BuildRequires: gcc make openssl openssl-devel perl python3 rsync 62 63 # $UTS_MACHINE as a fallback of _arch in case 64 # /usr/lib/rpm/platform/*/macros was not included. 65 %define _arch %{?_arch:$UTS_MACHINE} --- 21 unchanged lines hidden (view full) --- 87$S$M AutoReqProv: no 88$S$M %description -n kernel-devel 89$S$M This package provides kernel headers and makefiles sufficient to build modules 90$S$M against the $__KERNELRELEASE kernel package. 91$S$M 92$S %prep 93$S %setup -q -n linux 94$S cp %{SOURCE1} .config |
97$S if [ -s %{SOURCE2} ]; then 98$S patch -p1 < %{SOURCE2} 99$S fi 100$S if [ -s %{SOURCE3} ]; then 101$S patch -p1 < %{SOURCE3} 102$S fi | 95$S patch -p1 < %{SOURCE2} |
103$S 104$S %build 105$S $MAKE %{?_smp_mflags} KERNELRELEASE=$KERNELRELEASE KBUILD_BUILD_VERSION=%{release} 106$S 107 %install 108 mkdir -p %{buildroot}/boot 109 %ifarch ia64 110 mkdir -p %{buildroot}/boot/efi --- 58 unchanged lines hidden --- | 96$S 97$S %build 98$S $MAKE %{?_smp_mflags} KERNELRELEASE=$KERNELRELEASE KBUILD_BUILD_VERSION=%{release} 99$S 100 %install 101 mkdir -p %{buildroot}/boot 102 %ifarch ia64 103 mkdir -p %{buildroot}/boot/efi --- 58 unchanged lines hidden --- |