[Groonga-commit] groonga/groonga [master] yum: update the version of MeCab (0.98 -> 0.994)

Back to archive index

HAYASHI Kentaro null+****@clear*****
Tue Aug 21 16:30:25 JST 2012


HAYASHI Kentaro	2012-08-21 16:30:25 +0900 (Tue, 21 Aug 2012)

  New Revision: 0a9dded06dd9f6d2245441de94804a2da1371dea
  https://github.com/groonga/groonga/commit/0a9dded06dd9f6d2245441de94804a2da1371dea

  Log:
    yum: update the version of MeCab (0.98 -> 0.994)
    
    refs #1455

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

  Modified: packages/yum/build-rpm.sh (+8 -4)
===================================================================
--- packages/yum/build-rpm.sh    2012-08-21 14:22:06 +0900 (279f1ea)
+++ packages/yum/build-rpm.sh    2012-08-21 16:30:25 +0900 (7488ed0)
@@ -85,7 +85,8 @@ if ! rpm -q mecab-devel > /dev/null; then
     cat <<EOF > $BUILD_SCRIPT
 #!/bin/sh
 
-base=http://download.fedoraproject.org/pub/fedora/linux/releases/15/Everything/source/SRPMS
+base=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/source/SRPMS/m
+update=http://download.fedoraproject.org/pub/fedora/linux/updates/17/SRPMS
 srpm=\$1
 
 cat <<EOM > ~/.rpmmacros
@@ -105,6 +106,9 @@ mkdir -p dependencies/SRPMS
 mkdir -p tmp
 cd tmp
 wget \$base/\$srpm
+if [ \$? -ne 0 ]; then
+  wget \$update/\$srpm
+fi
 rpm2cpio \$srpm | cpio -id
 rm \$srpm
 mv *.spec ~/rpmbuild/SPECS/
@@ -118,9 +122,9 @@ cp -p rpmbuild/SRPMS/*.rpm dependencies/SRPMS/
 EOF
 
     run chmod +x $BUILD_SCRIPT
-    for rpm in mecab-0.98-1.fc15.src.rpm \
-               mecab-ipadic-2.7.0.20070801-4.fc15.1.src.rpm \
-               mecab-jumandic-5.1.20070304-5.fc15.src.rpm; do
+    for rpm in mecab-0.994-1.fc17.src.rpm \
+               mecab-ipadic-2.7.0.20070801-5.fc17.1.src.rpm \
+               mecab-jumandic-5.1.20070304-6.fc17.src.rpm; do
 	run su - $USER_NAME $BUILD_SCRIPT $rpm
 	run rpm -Uvh /home/$USER_NAME/rpmbuild/RPMS/*/*.rpm
     done
-------------- next part --------------
HTML����������������������������...
Download 



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