mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:45:41 +01:00
Some patches for clean compilation...
This commit is contained in:
parent
288c349c33
commit
2580bda460
3 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -57,5 +57,5 @@ cvsclean: mrproper
|
|||
pack: mrproper
|
||||
chown -R root.root ../alsa-utils
|
||||
mv ../alsa-utils ../alsa-utils-$(SND_UTIL_VERSION)
|
||||
tar cvz -C .. -f ../alsa-utils-$(SND_UTIL_VERSION).tar.gz alsa-utils-$(SND_UTIL_VERSION)
|
||||
tar --exclude=CVS -cvz -C .. -f ../alsa-utils-$(SND_UTIL_VERSION).tar.gz alsa-utils-$(SND_UTIL_VERSION)
|
||||
mv ../alsa-utils-$(SND_UTIL_VERSION) ../alsa-utils
|
||||
|
|
|
@ -58,7 +58,7 @@ Features
|
|||
make
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/usr/man/man1
|
||||
|
||||
make prefix="$RPM_BUILD_ROOT/usr" install
|
||||
|
||||
|
@ -68,7 +68,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%files
|
||||
%defattr(-, root, root)
|
||||
|
||||
%doc CHANGELOG COPYING README config.status
|
||||
%doc ChangeLog COPYING README config.status
|
||||
|
||||
%{prefix}/usr/sbin/*
|
||||
%{prefix}/usr/bin/*
|
||||
|
|
|
@ -4,13 +4,13 @@ source=.
|
|||
version=`cat $source/../version`
|
||||
package=$source/../../alsa-utils-$version.tar.gz
|
||||
|
||||
make -C .. pack
|
||||
|
||||
if [ ! -r $package ]; then
|
||||
echo "Error: wrong package: $package"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -C .. pack
|
||||
|
||||
cp -fv $package /usr/src/redhat/SOURCES
|
||||
|
||||
if [ ! -r $source/buildrpm ]; then
|
||||
|
|
Loading…
Reference in a new issue