Skip to content

Commit

Permalink
Use cwd for all rpmbuild dirs when building src rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed May 27, 2010
1 parent 303067e commit 973746c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fedora/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,12 @@ archive: glibc.spec

rpm srpm: $(spec-nvr).src.rpm
$(spec-nvr).src.rpm: glibc.spec $(archives)
rpmbuild --define "_sourcedir `pwd`" \
--define "_specdir `pwd`" \
--define "_srcrpmdir `pwd`" \
rpmbuild --define "_topdir ." \
--define "_sourcedir %{_topdir}" \
--define "_specdir %{_topdir}" \
--define "_srcrpmdir %{_topdir}" \
--define "_rpmdir %{_topdir}" \
--define "_builddir %{_topdir}" \
--nodeps -bs $<

###
Expand Down

0 comments on commit 973746c

Please sign in to comment.