162306a36Sopenharmony_ci#!/bin/sh
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci#	Output a simple RPM spec file.
462306a36Sopenharmony_ci#	This version assumes a minimum of RPM 4.13
562306a36Sopenharmony_ci#
662306a36Sopenharmony_ci#	The only gothic bit here is redefining install_post to avoid
762306a36Sopenharmony_ci#	stripping the symbols from files in the kernel which we want
862306a36Sopenharmony_ci#
962306a36Sopenharmony_ci#	Patched for non-x86 by Opencon (L) 2002 <opencon@rio.skydome.net>
1062306a36Sopenharmony_ci#
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciif grep -q CONFIG_MODULES=y include/config/auto.conf; then
1362306a36Sopenharmony_ciecho '%define with_devel %{?_without_devel: 0} %{?!_without_devel: 1}'
1462306a36Sopenharmony_cielse
1562306a36Sopenharmony_ciecho '%define with_devel 0'
1662306a36Sopenharmony_cifi
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_cicat<<EOF
1962306a36Sopenharmony_ci%define ARCH ${ARCH}
2062306a36Sopenharmony_ci%define KERNELRELEASE ${KERNELRELEASE}
2162306a36Sopenharmony_ci%define pkg_release $("${srctree}/init/build-version")
2262306a36Sopenharmony_ciEOF
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_cicat "${srctree}/scripts/package/kernel.spec"
25