- local TOP_DIR=$(eval $RPM $RPMOPTS --eval '%{_topdir}')
- local rpmdir=$(eval $RPM $RPMOPTS --eval '%{_rpmdir}')
- local buildir=$(eval $RPM $RPMOPTS --eval '%{_builddir}')
- local srpmdir=$(eval $RPM $RPMOPTS --eval '%{_srcrpmdir}')
+ local TOP_DIR=$(eval $RPM $RPMOPTS $RPMUSERDEFS --eval '%{_topdir}')
+ local rpmdir=$(eval $RPM $RPMOPTS $RPMUSERDEFS --eval '%{_rpmdir}')
+ local buildir=$(eval $RPM $RPMOPTS $RPMUSERDEFS --eval '%{_builddir}')
+ local srpmdir=$(eval $RPM $RPMOPTS $RPMUSERDEFS --eval '%{_srcrpmdir}')