[Groonga-commit] groonga/groonga [master] rpm: fix chroot architecture detection

Back to archive index

HAYASHI Kentaro null+****@clear*****
Tue Jan 22 14:53:10 JST 2013


HAYASHI Kentaro	2013-01-22 14:53:10 +0900 (Tue, 22 Jan 2013)

  New Revision: b7383beb76cad8b27ac199f8fecc4878047522c9
  https://github.com/groonga/groonga/commit/b7383beb76cad8b27ac199f8fecc4878047522c9

  Log:
    rpm: fix chroot architecture detection

  Modified files:
    packages/yum/build-rpm.sh

  Modified: packages/yum/build-rpm.sh (+9 -6)
===================================================================
--- packages/yum/build-rpm.sh    2013-01-22 13:40:51 +0900 (ba505f9)
+++ packages/yum/build-rpm.sh    2013-01-22 14:53:10 +0900 (b850cd0)
@@ -127,12 +127,15 @@ mv * ~/rpmbuild/SOURCES/
 cd ..
 rm -rf tmp
 mecab_build_options="--buildroot \$HOME/rpmbuild/BUILDROOT/\${srpm_base}"
-if [ \$architecture = "i386" ]; then
-  rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options} \
-    --define "optflags -O2 -g -march=i586"
-else
-  rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options}
-fi
+case \$architecture in
+  i386|i686)
+    rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options} \
+      --define "optflags -O2 -g -march=i586"
+    ;;
+  *)
+    rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options}
+    ;;
+esac
 
 cp -p rpmbuild/RPMS/*/*.rpm dependencies/RPMS/
 cp -p rpmbuild/SRPMS/*.rpm dependencies/SRPMS/
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index