CPackRPM doesn't escape filenames
When packaging files with '%' in the name it clashes with %macros in rpm spec files. According to (http://www.rpm.org/wiki/PackagerDocs/Spec Shell Globbing of %files Section) you can use %% instead. CPack generated spec files do not do this.