summaryrefslogtreecommitdiffstats
path: root/builddsrpm.sh
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-03-31 23:36:29 +0000
committerRich Megginson <rmeggins@redhat.com>2005-03-31 23:36:29 +0000
commitca62e232f4eb03812cf0884e31c8a0ba9016f44d (patch)
tree350adce63e447857faca7cfb77f8289bc63bffec /builddsrpm.sh
parent12efac13b9043e382f02a7397f2942f2ab913852 (diff)
downloadds-ca62e232f4eb03812cf0884e31c8a0ba9016f44d.tar.gz
ds-ca62e232f4eb03812cf0884e31c8a0ba9016f44d.tar.xz
ds-ca62e232f4eb03812cf0884e31c8a0ba9016f44d.zip
--macros seems not to work - using --define to define our macro on the command line
Diffstat (limited to 'builddsrpm.sh')
-rwxr-xr-xbuilddsrpm.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/builddsrpm.sh b/builddsrpm.sh
index b4f74ae1..0532efc7 100755
--- a/builddsrpm.sh
+++ b/builddsrpm.sh
@@ -49,11 +49,6 @@ tar cfh - $flavor-ds-$VERSION | gzip > $flavor-ds-$VERSION.tar.gz
rm -rf $flavor-ds-$VERSION
cd $rootdir
-macrosfile=/tmp/macros.$$
-trap "rm -f $macrosfile" 0 1 2 3 15
-
-echo "%_topdir $rootdir" > $macrosfile
-
echo "Executing rpmbuild . . ."
-rpmbuild --macros=$macrosfile -ba $flavor-ds.spec
+rpmbuild --define "_topdir $rootdir" -ba $flavor-ds.spec
echo "Finished doing rpmbuild $flavor-ds.spec"