1 | %define srcdate 20110227 |
---|
2 | %define srcname cmigemo-default-src |
---|
3 | %define use_git 1 |
---|
4 | %define githash 5e5f9810 |
---|
5 | |
---|
6 | Summary: C implementation of migemo |
---|
7 | Summary(ja): Migemo の C 言語による実装 |
---|
8 | Name: cmigemo |
---|
9 | Version: 1.3e |
---|
10 | %if %{use_git} |
---|
11 | Release: 2.git%{githash}%{?_dist_release} |
---|
12 | Source0: %{name}-git%{githash}.tar.gz |
---|
13 | %else |
---|
14 | Release: 1%{?_dist_release} |
---|
15 | Source0: http://cmigemo.googlecode.com/files/%{srcname}-%{srcdate}.zip |
---|
16 | %endif |
---|
17 | Patch0: cmigemo-include-fix.patch |
---|
18 | Patch2: cmigemo-git_no-http.patch |
---|
19 | License: MIT/distributable (see README files for detail) |
---|
20 | Group: System Environment/Libraries |
---|
21 | URL: http://www.kaoriya.net/software/cmigemo |
---|
22 | |
---|
23 | #Requires: |
---|
24 | BuildRequires: ctags |
---|
25 | BuildRequires: unzip |
---|
26 | BuildRequires: nkf |
---|
27 | #BuildRequires: curl |
---|
28 | BuildRequires: skkdic |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | |
---|
31 | Vendor: Project Vine |
---|
32 | Distribution: Vine Linux |
---|
33 | |
---|
34 | Packager: kazutaka |
---|
35 | |
---|
36 | %description |
---|
37 | C/Migemo is a C implementation of Migemo(Ruby/Migemo). |
---|
38 | With this library, It is possible to implement incremantal search |
---|
39 | function for japanese using roman letter input. |
---|
40 | |
---|
41 | %description -l ja |
---|
42 | C/MigemoはMigemo(Ruby/Migemo)をC言語で実装したものです。C/Migemo |
---|
43 | ライブラリを利用するソフトウェアは「ローマ字のまま日本語を(インク |
---|
44 | リメンタルに)検索する」機能を持つことが可能になります。 |
---|
45 | |
---|
46 | |
---|
47 | %prep |
---|
48 | %if %{use_git} |
---|
49 | %setup -q -n %{name}-git%{githash} |
---|
50 | %else |
---|
51 | %setup -q -n %{srcname} |
---|
52 | %endif |
---|
53 | %patch0 -p1 -b .include |
---|
54 | %patch2 -p1 -b .no-http |
---|
55 | |
---|
56 | # fix execution bit for configure |
---|
57 | %{__chmod} +x ./configure |
---|
58 | |
---|
59 | |
---|
60 | %build |
---|
61 | %configure --prefix=$RPM_BUILD_ROOT/%{_prefix} |
---|
62 | %{__make} gcc |
---|
63 | %{__make} gcc-dict |
---|
64 | |
---|
65 | |
---|
66 | %install |
---|
67 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
68 | %{__make} gcc-install DESTDIR=$RPM_BUILD_ROOT |
---|
69 | |
---|
70 | # fix library install location for x86_64 |
---|
71 | %ifarch x86_64 |
---|
72 | %{__mv} $RPM_BUILD_ROOT/%{_prefix}/lib/ $RPM_BUILD_ROOT/%{_prefix}/lib64 |
---|
73 | %endif |
---|
74 | |
---|
75 | # remove unnecessary files |
---|
76 | %{__rm} -rf $RPM_BUILD_ROOT/%{_datadir}/migemo/cp932/ |
---|
77 | %{__rm} -rf $RPM_BUILD_ROOT/%{_datadir}/migemo/euc-jp/ |
---|
78 | %{__rm} -rf $RPM_BUILD_ROOT/%{_prefix}/doc/migemo/README_j.txt |
---|
79 | |
---|
80 | |
---|
81 | %post -p /sbin/ldconfig |
---|
82 | |
---|
83 | |
---|
84 | %postun -p /sbin/ldconfig |
---|
85 | |
---|
86 | |
---|
87 | %clean |
---|
88 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
89 | |
---|
90 | |
---|
91 | %files |
---|
92 | %defattr(-,root,root) |
---|
93 | %doc README.txt doc/ |
---|
94 | %{_bindir}/%{name} |
---|
95 | %{_includedir}/migemo.h |
---|
96 | %{_libdir}/libmigemo* |
---|
97 | %{_datadir}/migemo/ |
---|
98 | |
---|
99 | |
---|
100 | %changelog |
---|
101 | * Sun Jan 26 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.3e-2.git5e5f9810 |
---|
102 | - update to Git 5e5f9810 |
---|
103 | - drop unneccesary UTF-8 dictionary patch (Patch1) |
---|
104 | - add no HTTP patch (Patch2) |
---|
105 | - add BuildRequires: skkdic |
---|
106 | |
---|
107 | * Mon Jun 20 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.3e-1 |
---|
108 | - initial build for Vine Linux |
---|