Browse Source

cmigemo 1.3e-2.git5e5f9810

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8232 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 10 years ago
parent
commit
6178d691c6
1 changed files with 20 additions and 6 deletions
  1. 20 6
      c/cmigemo/cmigemo-vl.spec

+ 20 - 6
c/cmigemo/cmigemo-vl.spec

@@ -1,16 +1,21 @@
 %define	srcdate	20110227
 %define	srcname	cmigemo-default-src
+%define use_git 1
+%define githash 5e5f9810
 
 Summary:	C implementation of migemo
 Summary(ja): 	Migemo の C 言語による実装
 Name:		cmigemo
 Version:	1.3e
+%if %{use_git}
+Release: 	2.git%{githash}%{?_dist_release}
+Source0:	%{name}-git%{githash}.tar.gz
+%else
 Release: 	1%{?_dist_release}
 Source0:	http://cmigemo.googlecode.com/files/%{srcname}-%{srcdate}.zip
-# include dict file and diasble downloading at complie time.
-Source1:	http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.L.gz
+%endif
 Patch0:		cmigemo-include-fix.patch
-Patch1:		cmigemo-utf8-dict.patch
+Patch2:		cmigemo-git_no-http.patch
 License:	MIT/distributable (see README files for detail)
 Group:		System Environment/Libraries
 URL:		http://www.kaoriya.net/software/cmigemo
@@ -20,6 +25,7 @@ BuildRequires:	ctags
 BuildRequires:	unzip
 BuildRequires:	nkf
 #BuildRequires:	curl
+BuildRequires:	skkdic
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 
 Vendor:		Project Vine
@@ -39,15 +45,17 @@ C/MigemoはMigemo(Ruby/Migemo)をC言語で実装したものです。C/Migemo
 
 
 %prep
+%if %{use_git}
+%setup -q -n %{name}-git%{githash}
+%else
 %setup -q -n %{srcname}
+%endif
 %patch0 -p1 -b .include
-%patch1 -p1 -b .utf8-dict
+%patch2 -p1 -b .no-http
 
 # fix execution bit for configure
 %{__chmod} +x ./configure
 
-# locate SKK-JISYO.L
-%{__cp} %{SOURCE1} dict/
 
 %build
 %configure --prefix=$RPM_BUILD_ROOT/%{_prefix}
@@ -90,5 +98,11 @@ C/MigemoはMigemo(Ruby/Migemo)をC言語で実装したものです。C/Migemo
 
 
 %changelog
+* Sun Jan 26 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.3e-2.git5e5f9810
+- update to Git 5e5f9810
+- drop unneccesary UTF-8 dictionary patch (Patch1)
+- add no HTTP patch (Patch2)
+- add BuildRequires: skkdic
+
 * Mon Jun 20 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.3e-1
 - initial build for Vine Linux