<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 1, 2009, at 12:20 AM, Mattias Ellert wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>mån 2009-08-31 klockan 23:07 -0700 skrev Scott Frankel:<br>The %build section must not create files or directories in the<br>$RPM_BUILD_ROOT. That must only be done in the %install section.<br><br>The Fedora packaging guidelines says that the first command in the<br>%install section must be "rm -rf $RPM_BUILD_ROOT". If you are using a<br>recent RPM version this will be enforced automatically, which is what<br>happens in this case.<br><br>%build<br><br>%install<br>rm -rf $RPM_BUILD_ROOT<br>mkdir $RPM_BUILD_ROOT<br>mkdir $RPM_BUILD_ROOT/opt<br>mkdir $RPM_BUILD_ROOT/opt/foo<br>cp -r schema $RPM_BUILD_ROOT/opt/foo<br></div></blockquote><div><br></div><div>Thanks for the information!</div><div>Scott</div><div><br></div><div><br></div><div><br></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-size: medium;"><br></span></span></font></div></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></body></html>