#!/bin/bash cd $1 && spectool -g --directory SOURCES $1.spec && rpmbuild --define "_topdir `pwd`" -bb $1.spec