use of %%dir in spec file

devzero2000 pinto.elia at gmail.com
Thu Jan 14 11:40:37 UTC 2010


On Thu, Jan 14, 2010 at 1:26 AM, Todd Rinaldo <toddr at cpanel.net> wrote:

> 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?
>
>
> With something like this for example

%{__find} $RPM_BUILD_ROOT%{basedir} -type d -printf "%%%%dir %%p\n"

hth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100114/a1e4c910/attachment.htm>


More information about the Rpm-list mailing list