diff --git a/Makefile.am b/Makefile.am index 1213b6b..729c283 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,3 +3,9 @@ SUBDIRS=include alsactl alsamixer amixer aplay utils rpm: dist $(MAKE) -C $@ + +pack: clean-recursive + chown -R root.root ../alsa-utils + mv ../alsa-utils ../alsa-utils-$(VERSION) + tar --exclude=CVS -cvz -C .. -f ../alsa-utils-$(VERSION).tar.gz alsa-utils-$(VERSION) + mv ../alsa-utils-$(VERSION) ../alsa-utils diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am index 419630a..0ebd56e 100644 --- a/alsactl/Makefile.am +++ b/alsactl/Makefile.am @@ -1,4 +1,4 @@ -bin_PROGRAMS=alsactl +sbin_PROGRAMS=alsactl noinst_HEADERS=alsactl.h man_MANS=alsactl.1 diff --git a/utils/alsa-utils.spec.in b/utils/alsa-utils.spec.in index f740679..71633c0 100644 --- a/utils/alsa-utils.spec.in +++ b/utils/alsa-utils.spec.in @@ -1,4 +1,4 @@ -%define ver @SND_UTIL_VERSION@ +%define ver @VERSION@ %define rel 1 %define prefix / diff --git a/utils/buildrpm b/utils/buildrpm index 1898f1c..408cdd3 100644 --- a/utils/buildrpm +++ b/utils/buildrpm @@ -4,7 +4,7 @@ source=. version=`cat $source/../version` package=$source/../../alsa-utils-$version.tar.gz -make -C .. dist +make -C .. pack if [ ! -r $package ]; then echo "Error: wrong package: $package"