mkspec (ae4c4cee8110a986f5a884c5d91d137e2b994303) | mkspec (c0414419758b2521c2038847960af258c678db8d) |
---|---|
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# 9# Patched for non-x86 by Opencon (L) 2002 <opencon@rio.skydome.net> 10# 11 | 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# 9# Patched for non-x86 by Opencon (L) 2002 <opencon@rio.skydome.net> 10# 11 |
12set -eu 13 |
|
12output=$1 13 14mkdir -p "$(dirname "${output}")" 15 16exec >"${output}" 17 18if grep -q CONFIG_MODULES=y include/config/auto.conf; then 19echo '%define with_devel %{?_without_devel: 0} %{?!_without_devel: 1}' 20else 21echo '%define with_devel 0' 22fi 23 24cat<<EOF 25%define ARCH ${ARCH} 26%define KERNELRELEASE ${KERNELRELEASE} 27%define pkg_release $("${srctree}/scripts/build-version") 28EOF 29 30cat "${srctree}/scripts/package/kernel.spec" | 14output=$1 15 16mkdir -p "$(dirname "${output}")" 17 18exec >"${output}" 19 20if grep -q CONFIG_MODULES=y include/config/auto.conf; then 21echo '%define with_devel %{?_without_devel: 0} %{?!_without_devel: 1}' 22else 23echo '%define with_devel 0' 24fi 25 26cat<<EOF 27%define ARCH ${ARCH} 28%define KERNELRELEASE ${KERNELRELEASE} 29%define pkg_release $("${srctree}/scripts/build-version") 30EOF 31 32cat "${srctree}/scripts/package/kernel.spec" |