$ dnf builddep
needs a SPEC file or an SRPM to be passed to it. However, in yum, you could just pass the package name (like yum-builddep libvirt) which is more useful and simpler.
'dnf builddep' would be more useful if it can just take the package name to build dependencies.
Related bug #905697 -- [rfe] [plugin] yum-builddep like functionality through dnf
As James explained: this needs to be implemented by enabling the source repos and looking up the requires (=BuildRequires) there.
Giving this a lower priority now.
*** Bug 1109811 has been marked as a duplicate of this bug. ***
An important insight into this is given by Panu in bug 905697 comment 21.
Note: Ability to use SPEC file when you are trying to build package from older/newer Fedora or something like that. Plase do not remove this ability.
I'm renaming this bug to make clear that plain package name should be only additional feature and not replacement for current behavior.
Added to upstream in
dnf-plugins-core-0.1.7-1.fc22,hawkey-0.5.5-1.fc22,dnf-1.0.0-1.fc22 has been submitted as an update for Fedora 22.
Package dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.7-1.fc22 hawkey-0.5.5-1.fc22 dnf-1.0.0-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.