Rebuilding from src.rpm presents interactive dialogues asking for passphrases. This breaks non-interactive building.
Thanks for your report.
This is caused by bug 842074.
When building from a console I find it valuable to manually enter passphrases in the dialogs to verify that the code actually works.
The package does build fine in mock, though; is that not insufficient for your purpose?
For me personally it's OK either way, but this will halt any mass-rebuild not in mock and it might also confuse people building the invidual package. Then again, if you think it makes more sense to keep it this way, I won't argue against.
Thanks for the respponse, closing WONTFIX for now (it's not really a duplicate of bug 842047, but we are stuck trying to make the best of a problematic situation that will be resolved there.)
FWIW with a recent pinentry even the mock builds don't work, so I have removed the %check section.
*** This bug has been marked as a duplicate of bug 1064349 ***