use of %%dir in spec file

Todd Rinaldo toddr at
Thu Jan 14 00:26:02 UTC 2010

I'm trying to run a find inside a specfile and in the command line, I need it to have 

(cd $RPM_BUILD_ROOT && find usr/local -type d -printf "%%dir /%p\n") >> file.list

How do I prevent the spec file interpreter from trying to interpret %dir?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Rpm-list mailing list