From Fedora Project Wiki
When copying stuff over from Packaging:Perl please test the section "In %prep (preferred)". For me this code only worked when I put it in the %setup section instead of %prep. I don't have permission to edit that page, or this one, so please correct both.