<!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 <hayas****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2012-08-24 15:00:47 +0900 (Fri, 24 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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807">9d241ae48bf0c3be4bd35a5eef0cd536f1402807</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em">yum: use rpmbuild --target option instead of using customized .rpmrc
refs #1455</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#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, "Liberation Mono", 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 (+6 -4)</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, "Liberation Mono", 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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L93">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L95">95</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L96">96</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L97">97</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L98">98</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L99">99</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L100">100</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L101">101</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L118">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L120">120</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L121">121</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L122">122</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L123">123</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L124">124</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0L126">126</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R93">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R95">95</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R96">96</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R97">97</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R98">98</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R99">99</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R100">100</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R117">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R118">118</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R120">120</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R121">121</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R123">123</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R124">124</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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#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/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R127">127</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/9d241ae48bf0c3be4bd35a5eef0cd536f1402807#L0R128">128</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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">@@ -94,8 +94,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">cat <<EOM > ~/.rpmmacros</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> %_topdir \$HOME/rpmbuild</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> EOM</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-cat /usr/lib/rpm/rpmrc > ~/.rpmrc-for-mecab</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-sed -i'' -e 's/march=i386/march=i586/' ~/.rpmrc-for-mecab</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+architecture=\$(cut -d '-' -f 1 /etc/rpm/platform)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rm -rf rpmbuild</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mkdir -p rpmbuild/SOURCES</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -119,8 +118,11 @@ <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-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- --buildroot ~/rpmbuild/BUILDROOT/\${srpm_base}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+mecab_build_options="--buildroot \$HOME/rpmbuild/BUILDROOT/\${srpm_base}"</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+if [ \$architecture = "i386" ]; then</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mecab_build_options="\${mecab_build_options} --target i586"</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+fi</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options}</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>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>