ALT Linux Bugzilla – #1099
more specialized BuildRequires
Last modified: 2014-12-20 16:27:53
You need to
before you can comment on or make changes to this bug.
According to <a
rpm allows BuildRequires-specialization for sections. I suggest to use it in
the output of buildreq.
I have a reason for this: now, when BuildRequires are not specialized, rpmbuild
often doesn\'t want to proceed with some action like \"--clean\"
because some of the BuildRequires are not there. This is inconvenient because
in most cases the packages listed in BuildRequires are not really required for
%clean or a certain other action.
I suggest that buildreq generates three kinds of build-dependencies:
first, it traces something like \'rpmbuild -bE\' and sees what is required to
preprocess the spec; these dependencies are written as BuildPreReq. Then it
traces %prep and writes BuildRequires(prep) and then it traces %build and
Isn't it better to fix --clean? The thing is, rpmbuild -bs usually won't need
BuildRequires either (might need BuildPreReq though) and still one would cope
with --nodeps just to wrap up an srpm.