Navigation Menu

Skip to content

Commit

Permalink
yum: use custom .rpmrc for mecab and related package
Browse files Browse the repository at this point in the history
TODO: fix mecab %install error for CentOS 5 i386/x86_64

refs #1455
  • Loading branch information
kenhys committed Aug 21, 2012
1 parent ca4f4b4 commit 4e15952
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/yum/build-rpm.sh
Expand Up @@ -93,6 +93,9 @@ cat <<EOM > ~/.rpmmacros
%_topdir \$HOME/rpmbuild
EOM
cat /usr/lib/rpm/rpmrc > ~/.rpmrc-for-mecab
sed -i'' -e 's/march=i386/march=i586/' ~/.rpmrc-for-mecab
rm -rf rpmbuild
mkdir -p rpmbuild/SOURCES
mkdir -p rpmbuild/SPECS
Expand All @@ -115,7 +118,7 @@ mv *.spec ~/rpmbuild/SPECS/
mv * ~/rpmbuild/SOURCES/
cd ..
rm -rf tmp
rpmbuild -ba rpmbuild/SPECS/*.spec
rpmbuild -ba rpmbuild/SPECS/*.spec --rcfile ~/.rpmrc-for-mecab
cp -p rpmbuild/RPMS/*/*.rpm dependencies/RPMS/
cp -p rpmbuild/SRPMS/*.rpm dependencies/SRPMS/
Expand Down

0 comments on commit 4e15952

Please sign in to comment.