You can do the define on the command line. I use, on some automated
builds (from svn sources):
rpmbuild -ba \
--define "_rpmdir /tmp" \
--define "_srcrpmdir /tmp" \
--define "_topdir $TMPD" \
--define "_rpmfilename %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm" \
$TMPD/$NAME.spec
You can define your own variables, btw (--define "other /usr/src/other").
--
lfr
0/0
Hi.
Thanks for the answer. It sort of does what I want but not quite, but
perhaps it's just me who don't do it right.
I tried the examples given above but that didn't quite do what I
wanted. It does reset the builddir to something else through the
command line, just what I wanted, but I also wanted to break out of the
"SOURCES", "SPECS" and "BUILD" structure. Is it at all possible to get
rpmbuild to look for sources in a directory not called "SOURCES"?
Oscar
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list