Description of problem: Up until version 0.1.6.-3 included, builddep was able to parse files that didn't end with .src.rpm, .rpm or .spec and parse them if they were spec file format compliant and install the dependencies (For example <package-name>.spec.in template). Was this a bug/dropped intentionally? Would it be possible to reintroduce such functionality using some kind of a switch (such as --format=[spec|srpm|name])? Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
I don't agree with the "regression" tag since the documentation never promised that it should work.
I've got your point. You're probably dealing with chicken-egg problem. You don't have satisfied dependencies so you can't generate spec file from spec.in. We had these issues in our projects too but we have solved it with scripts and tito.
The problem is the spec.in is not a valid spec file which is parsed by rpm API - rpm.spec(<file>), rpm.ds(spec.sourceHeader, 'requires'). I'd advice you to figure out how to fix it in your project setup first. Parsing invalid file seems to me hacky. What's your view on that Florian? How can RPM handle parsing of partial spec files?
Our current 'hack' around it is something like awk '/BuildRequires/ { print $2 }' <file.spec.in> | xargs dnf install -y This has different issues though sometimes.
Proposed fix in https://github.com/rpm-software-management/dnf-plugins-core/pull/102
dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23 has been submitted as an update for Fedora 23. https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23
dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22
Package dnf-plugins-core-0.1.10-1.fc22, dnf-1.1.0-1.fc22, hawkey-0.6.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.10-1.fc22 dnf-1.1.0-1.fc22 hawkey-0.6.0-1.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-13162/dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22 then log in and leave karma (feedback).
dnf-plugins-core-0.1.10-1.fc22, hawkey-0.6.0-1.fc22, dnf-1.1.0-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
dnf-plugins-core-0.1.10-1.fc23, hawkey-0.6.0-1.fc23, dnf-1.1.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
> What's your view on that Florian? How can RPM handle parsing of partial spec files? Poorly!