Zbigniew Jędrzejewski-Szmek wrote:
Yes, this is what I was talking about too. Because rpmbuild does not
set
%_sourcedir, it may fail to load some files. Even worse, it may load *wrong*
versions, e.g. when some old version is present in the ~/rpmbuild/SOURCES/.
Personally, I have dozens of stray files there from old rpm builds there…
I've used the following in ~/.rpmmacros for many years to
have rpmbuild keep package files together, as rpkg/fedpkg
do:
%_sourcedir %{_topdir}/%{?name:%name}
%_specdir %{_sourcedir}
%_builddir %{_sourcedir}
%_srcrpmdir %{_sourcedir}
%_rpmdir %{_sourcedir}
That doesn't address the deeper issues with respect to
rpmautospec compatibility, but it does make rpmbuild much
more comfortable to use, at least for me.
--
Todd