suggestion:

```python
if spec in unbuilt_specs:
  ans = 'done'
else:
  ans = 'todo'
print dry_run_fmt % (ans, spec['spec'])
```

Yes, it's one line longer, but I think I prefer this over repeating the common part.