alsa-lib/utils/buildrpm

36 lines
614 B
Text
Raw Normal View History

1998-08-13 15:42:56 +00:00
#!/bin/bash
source=.
1998-11-18 20:42:09 +00:00
version=$VERSION
package=$source/../alsa-lib-$version.tar.gz
1998-08-13 15:42:56 +00:00
if [ ! -r $package ]; then
echo "Error: wrong package: $package"
exit 1
fi
1998-11-18 20:42:09 +00:00
make -C .. dist
1998-08-13 15:42:56 +00:00
cp -fv $package /usr/src/redhat/SOURCES
if [ ! -r $source/buildrpm ]; then
echo "Error: invalid directory: $source"
exit 1
fi
if [ ! -d /usr/src/redhat ]; then
echo "Error: /usr/src/redhat directory not found"
exit 1
fi
if [ ! -r $source/alsa-lib.spec ]; then
cd $source/..
./configure
cd utils
fi
cp -fv $source/alsa-lib.spec /usr/src/redhat/SPECS
cd /usr/src/redhat/SPECS
rpm -ba alsa-lib.spec
cd /usr/src/redhat