fix rpm mv command when rpm stashes the package in a subdirectory

This commit is contained in:
Lee Thompson committed 2012-12-04 16:29:01 -06:00
1 parent 277249ffe6
commit 76c8706145
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ rpm: jq jq_test
mkdir -p rpm/SOURCES rpm/BUILD rpm/BUILDROOT rpm/RPMS rpm/SPECS
cp jq-$$(cat VERSION).tar.gz rpm/SOURCES/
rpmbuild -tb --define "_topdir ${PWD}/rpm" --define "_prefix ${HOME}" --define "version $$(cat VERSION)" --define "release ${RELEASE}" rpm/SOURCES/jq-$$(cat VERSION).tar.gz
mv rpm/RPMS/* ./
find rpm/RPMS/ -name "*.rpm" -exec mv {} ./ \;
rm -rf rpm
dist-clean-local: