<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">HAYASHI Kentaro &lt;hayas****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2012-08-22 14:27:08 +0900 (Wed, 22 Aug 2012)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0">fb062b9772c02d5fb546ee82a317d436b51196f0</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em">yum: specify --buildroot explicitly as rpmbuild option

NOTE: This is the workaround about %install MeCab package
on CentOS 5(i386/x86_64) chroot environment.</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#diff-0">packages/yum/build-rpm.sh</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: packages/yum/build-rpm.sh (+5 -2)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L87">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L89">89</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L90">90</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L93">93</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L117">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L118">118</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L119">119</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L120">120</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L121">121</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L122">122</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L123">123</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L124">124</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L127">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L128">128</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L130">130</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L131">131</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L132">132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0L134">134</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R87">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R89">89</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R90">90</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R94">94</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R118">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R119">119</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R120">120</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R121">121</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R122">122</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R123">123</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R124">124</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R126">126</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R129">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R130">130</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R131">131</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R132">132</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R133">133</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R134">134</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R135">135</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R136">136</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb062b9772c02d5fb546ee82a317d436b51196f0#L0R137">137</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -88,6 +88,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">if ! rpm -q mecab-devel &gt; /dev/null; then</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> base=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/source/SRPMS/m</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> update=http://download.fedoraproject.org/pub/fedora/linux/updates/17/SRPMS</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> srpm=\$1</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+srpm_base=\$2</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> cat &lt;&lt;EOM &gt; ~/.rpmmacros</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> %_topdir \$HOME/rpmbuild</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -118,7 +119,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">mv *.spec ~/rpmbuild/SPECS/</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mv * ~/rpmbuild/SOURCES/</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> cd ..</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rm -rf tmp</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-rpmbuild -ba rpmbuild/SPECS/*.spec --rcfile ~/.rpmrc-for-mecab</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+rpmbuild -ba rpmbuild/SPECS/*.spec --rcfile ~/.rpmrc-for-mecab \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  --buildroot ~/rpmbuild/BUILDROOT/\${srpm_base}</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> cp -p rpmbuild/RPMS/*/*.rpm dependencies/RPMS/</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> cp -p rpmbuild/SRPMS/*.rpm dependencies/SRPMS/</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -128,7 +130,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">EOF</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     for rpm in mecab-0.994-1.fc17.src.rpm \</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                mecab-ipadic-2.7.0.20070801-5.fc17.1.src.rpm \</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                mecab-jumandic-5.1.20070304-6.fc17.src.rpm; do</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        run su - $USER_NAME $BUILD_SCRIPT $rpm</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        srpm_base=`echo $rpm | sed -e 's/\.fc17.*//g'`</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        run su - $USER_NAME $BUILD_SCRIPT $rpm $srpm_base</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         run rpm -Uvh /home/$USER_NAME/rpmbuild/RPMS/*/*.rpm</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     done</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> fi</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>