From Bugzilla Helper: User-Agent: Mozilla/4.61 [en] (OS/2; U) Description of problem: Executing rpm --rmsource --rmspec <specfile> fails when BuildRequires: are not satisfied. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. download passwd src rpm on system without pam-devel 2. rpm -Uvh passwd src rpm 3. cd /usr/src/redhat/SPECS 4. rpm --rmsource --rmspec passwd.spec Actual Results: error: failed build dependancies: pam-devel is needed by passwd-0.67-1 Expected Results: Source/spec file removed Additional info:
Add --nodeps if you don't like the behavior.