3
kversion=@kversion@.@kpatchlevel@.@ksublevel@@kextraversion@
5
version=`cat $source/../version`
6
package=$source/../../alsa-driver-$version.tar.bz2
7
xpackages=/usr/src/redhat
8
test -d /usr/src/packages && xpackages=/usr/src/packages
10
rpmbuild --usage 2> /dev/null > /dev/null && xbuildrpm=rpmbuild
12
if [ -z "$TARGET_KERNEL" ]; then
13
export TARGET_KERNEL="$kversion"
18
if [ ! -r $package ]; then
19
echo "Error: wrong package: $package"
23
cp -fv $package $xpackages/SOURCES
25
if [ ! -r $source/buildrpm ]; then
26
echo "Error: invalid directory: $source"
30
if [ ! -d $xpackages ]; then
31
echo "Error: $xpackages directory not found"
35
if [ ! -r $source/alsa-driver.spec ]; then
41
cp -fv $source/alsa-driver.spec $xpackages/SPECS
43
$xbuildrpm -ba alsa-driver.spec