Compare commits
10 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8154d2c61 | ||
|
|
a4298effe4 | ||
|
|
fd02dc1fe4 | ||
|
|
caa64fa557 | ||
|
|
d37a171811 | ||
|
|
6bacf7b613 | ||
|
|
84073da10d | ||
|
|
2c07c621eb | ||
|
|
fed8d1d3ad | ||
|
|
41e3a1d93a |
7 changed files with 99058 additions and 119 deletions
1
.cvsignore → .gitignore
vendored
1
.cvsignore → .gitignore
vendored
|
|
@ -36,3 +36,4 @@ anthy-9100b.tar.gz
|
|||
alt-cannadic-070918.tar.bz2
|
||||
anthy-9100d.tar.gz
|
||||
anthy-9100e.tar.gz
|
||||
anthy-9100h.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: anthy
|
||||
# $Id: Makefile,v 1.1 2005/07/29 05:34:35 tagoh Exp $
|
||||
NAME := anthy
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attempt a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
diff -pruN anthy-9100e.orig/src-splitter/metaword.c anthy-9100e/src-splitter/metaword.c
|
||||
--- anthy-9100e.orig/src-splitter/metaword.c 2007-06-18 08:27:38.000000000 +0900
|
||||
+++ anthy-9100e/src-splitter/metaword.c 2008-06-27 11:53:55.000000000 +0900
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <anthy/record.h>
|
||||
#include <anthy/splitter.h>
|
||||
+#include <anthy/xchar.h>
|
||||
#include <anthy/xstr.h>
|
||||
#include <anthy/segment.h>
|
||||
#include <anthy/segclass.h>
|
||||
@@ -158,6 +159,18 @@ get_surrounding_text(struct splitter_con
|
||||
xs_post->len = post_len;
|
||||
}
|
||||
|
||||
+static int
|
||||
+count_vu(xstr *xs)
|
||||
+{
|
||||
+ int i, r = 0;
|
||||
+ for (i = 0; i < xs->len; i++) {
|
||||
+ if (xs->str[i] == KK_VU) {
|
||||
+ r++;
|
||||
+ }
|
||||
+ }
|
||||
+ return r;
|
||||
+}
|
||||
+
|
||||
/*
|
||||
* 複合語であるwlからn番めの部分を取り出してmwにする
|
||||
*/
|
||||
@@ -177,8 +190,12 @@ make_compound_nth_metaword(struct splitt
|
||||
get_surrounding_text(sc, wl, &xs_pre, &xs_post);
|
||||
|
||||
for (i = 0; i <= nth; ++i) {
|
||||
+ xstr part;
|
||||
from += len;
|
||||
len = anthy_compound_get_nth_segment_len(ce, i);
|
||||
+ part.str = sc->ce[from].c;
|
||||
+ part.len = len;
|
||||
+ len -= count_vu(&part);
|
||||
if (i == 0) {
|
||||
len += xs_pre.len;
|
||||
}
|
||||
@@ -742,7 +759,11 @@ make_metaword_with_depchar(struct splitt
|
||||
int len = mw ? mw->len : 0;
|
||||
|
||||
/* metawordの直後の文字の種類を調べる */
|
||||
- int type = anthy_get_xchar_type(*sc->ce[from + len].c);
|
||||
+ int type;
|
||||
+ if (sc->char_count <= from + len) {
|
||||
+ return;
|
||||
+ }
|
||||
+ type = anthy_get_xchar_type(*sc->ce[from + len].c);
|
||||
if (!(type & XCT_SYMBOL) &&
|
||||
!(type & XCT_PART)) {
|
||||
return;
|
||||
98736
anthy-corpus.patch
Normal file
98736
anthy-corpus.patch
Normal file
File diff suppressed because it is too large
Load diff
118
anthy-fix-typo-in-dict.patch
Normal file
118
anthy-fix-typo-in-dict.patch
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
diff -pruN anthy-9100h.orig/mkworddic/compound.t anthy-9100h/mkworddic/compound.t
|
||||
--- anthy-9100h.orig/mkworddic/compound.t 2009-02-07 21:15:36.000000000 +0900
|
||||
+++ anthy-9100h/mkworddic/compound.t 2009-08-28 17:19:20.000000000 +0900
|
||||
@@ -8,7 +8,6 @@
|
||||
あいしゃせいしん #T35 #_4愛社_4精神
|
||||
あいしょうしんだん #T35 #_5相性_4診断
|
||||
あいしょうめい #T35 #_5愛称_2名
|
||||
-あいずしっき #T35 #_3会津_3漆器
|
||||
あいぜんしゅたっと #CN アイゼンシュタット
|
||||
あいぞうげき #T35 #_4愛憎_2劇
|
||||
あいちいだい #T35 #_3愛知_3医大
|
||||
@@ -20,6 +19,7 @@
|
||||
あいちこうじょう #T35 #_3愛知_5工場
|
||||
あいちこうだい #T35 #_3愛知_4工大
|
||||
あいちしゅっしん #T35 #_3愛知_5出身
|
||||
+あいづしっき #T35 #_3会津_3漆器
|
||||
あいづだいがく #T35 #_3会津_4大学
|
||||
あいづてつどう #T35 #_3会津_4鉄道
|
||||
あいづてつどうせん #T35 #_3会津_6鉄道線
|
||||
@@ -9714,7 +9714,6 @@
|
||||
かんじんずもう #T35 #_4勧進_3相撲
|
||||
かんじんちょう #T35 #_4勧進_3帳
|
||||
かんすいかしょ #T35 #_4冠水_3箇所
|
||||
-かんすいきんぞく #T35 #_4関水_4金属
|
||||
かんすいぎょ #T35 #_4寒水_2魚
|
||||
かんすいばしょ #T35 #_4冠水_3場所
|
||||
かんすうかいせき #T35 #_4関数_4解析
|
||||
@@ -19234,7 +19233,7 @@
|
||||
げんかんぐち #T35 #_4玄関_2口
|
||||
げんかんげんぞう #T35 #_2減_2感_4現像
|
||||
げんかんさき #T35 #_4玄関_2先
|
||||
-げんかんしょうめい #T35 #_4玄関_5証明
|
||||
+げんかんしょうめい #T35 #_4玄関_5照明
|
||||
げんかんすう #T35 #_2原_4関数
|
||||
げんかんまえ #T35 #_4玄関_2前
|
||||
げんかんりにん #T35 #_2現_3管理_2人
|
||||
@@ -20163,7 +20162,7 @@
|
||||
こうかいとうろん #T35 #_4公開_4討論
|
||||
こうかいなまほうそう #T35 #_4公開_2生_4放送
|
||||
こうかいはん #T35 #_4航海_2班
|
||||
-こうかいはんてい #T35 #_4高階_4判定
|
||||
+こうかいはんてい #T35 #_4公開_4判定
|
||||
こうかいばん #T35 #_4公開_2版
|
||||
こうかいび #T35 #_4公開_1日
|
||||
こうかいほうそう #T35 #_4公開_4放送
|
||||
@@ -30752,7 +30751,6 @@
|
||||
しゅんじゅうせんごくじだい #T35 #_6春秋_4戦国_3時代
|
||||
しゅんじゅうのま #T35 #_7春秋の_1間
|
||||
しゅんていたいさく #T35 #_5瞬停_4対策
|
||||
-しゅんとうぐん #T35 #_5駿東_2郡
|
||||
しゅんぱつりょく #T35 #_5瞬発_3力
|
||||
しゅんぱつりょくしょうぶ #T35 #_5瞬発_3力_4勝負
|
||||
しゅんびんせい #T35 #_5俊敏_2性
|
||||
@@ -30839,7 +30837,7 @@
|
||||
しょうかへい #T35 #_3小_3花柄
|
||||
しょうかぼう #T35 #_4裳華_2房
|
||||
しょうかよういん #T35 #_4消化_4要員
|
||||
-しょうかようすい #T35 #_4消化_4用水
|
||||
+しょうかようすい #T35 #_4消火_4用水
|
||||
しょうかりょく #T35 #_4消化_3力
|
||||
しょうかんきかん #T35 #_5償還_3期間
|
||||
しょうかんきげん #T35 #_5償還_3期限
|
||||
@@ -40405,6 +40403,7 @@
|
||||
せきしょくとう #T35 #_5赤色_2灯
|
||||
せきじひょう #T35 #_3席次_3表
|
||||
せきじゅうじき #T35 #_6赤十字_1旗
|
||||
+せきすいきんぞく #KK #_4関水_4金属
|
||||
せきずいしょう #T35 #_4脊髄_3症
|
||||
せきずいそんしょう #T35 #_4脊髄_5損傷
|
||||
せきずいはんしゃ #T35 #_4脊髄_4反射
|
||||
@@ -41942,7 +41941,7 @@
|
||||
ぜんきょくすう #T35 #_5全曲_2数
|
||||
ぜんきょくちゅう #T35 #_5全曲_3中
|
||||
ぜんきょくばん #T35 #_5全曲_2版
|
||||
-ぜんきょくろくおん #T35 #_5歩道_4整備
|
||||
+ぜんきょくろくおん #T30 #_5全曲_4録音
|
||||
ぜんきんあんていせい #T35 #_4漸近_6安定性
|
||||
ぜんきんせん #T35 #_4漸近_2線
|
||||
ぜんきんせんじょう #T35 #_6漸近線_3上
|
||||
@@ -57562,11 +57561,11 @@
|
||||
ひなんごや #T35 #_3避難_2小屋
|
||||
ひなんさき #T35 #_3避難_2先
|
||||
ひなんしえん #T35 #_3避難_3支援
|
||||
-ひなんじゃくしゃ #T35 #_3非難_5弱者
|
||||
+ひなんじゃくしゃ #T35 #_3避難_5弱者
|
||||
ひなんじゅうみん #T35 #_3避難_5住民
|
||||
ひなんじょ #T35 #_3避難_2所
|
||||
ひなんせいかつ #T35 #_3避難_4生活
|
||||
-ひなんたいろ #T35 #_3非難_3退路
|
||||
+ひなんたいろ #T35 #_3避難_3退路
|
||||
ひなんつうろ #T35 #_3避難_3通路
|
||||
ひなんばしょ #T35 #_3避難_3場所
|
||||
ひなんゆうどう #T35 #_3避難_4誘導
|
||||
@@ -62585,6 +62584,7 @@
|
||||
ほとけさま #T35 #_3仏_2様
|
||||
ほどうがわ #T35 #_3歩道_2側
|
||||
ほどうじょう #T35 #_3歩道_3上
|
||||
+ほどうせいび #T30 #_3歩道_3整備
|
||||
ほどうれき #T35 #_3補導_2歴
|
||||
ほにゅうどうぶつ #T35 #_4哺乳_4動物
|
||||
ほにゅうびん #T35 #_4哺乳_2瓶
|
||||
@@ -66264,7 +66264,6 @@
|
||||
ゆそうき #T35 #_3輸送_1機
|
||||
ゆそうきかん #T35 #_3輸送_3機関
|
||||
ゆそうきち #T35 #_3輸送_2基地
|
||||
-ゆそうきど #T35 #_3輸送_2輝度
|
||||
ゆそうきょり #T35 #_3輸送_3距離
|
||||
ゆそうぎょうしゃ #T35 #_3輸送_5業者
|
||||
ゆそうけいかく #T35 #_3輸送_4計画
|
||||
@@ -66351,7 +66350,7 @@
|
||||
ゆびさしかくにん #T35 #_4指差し_4確認
|
||||
ゆびもじ #T35 #_2指_2文字
|
||||
ゆびわものがたり #T35 #_3指輪_5物語
|
||||
-ゆまくいじょう #T35 #_3油膜_4以上
|
||||
+ゆまくいじょう #T35 #_3油膜_4異常
|
||||
ゆまくけいせいりょく #T35 #_3油膜_4形成_3力
|
||||
ゆむらおんせん #T35 #_3湯村_4温泉
|
||||
ゆめかかく #T35 #_2夢_3価格
|
||||
243
anthy.spec
243
anthy.spec
|
|
@ -1,17 +1,40 @@
|
|||
%define use_utf8_dict 1
|
||||
%define pkg anthy
|
||||
|
||||
%if %($(pkg-config emacs); echo $?)
|
||||
%define emacs_version 22.1
|
||||
%define emacs_lispdir %{_datadir}/emacs/site-lisp
|
||||
%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
|
||||
%else
|
||||
%define emacs_version %(pkg-config emacs --modversion)
|
||||
%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
||||
%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
||||
%endif
|
||||
|
||||
%if %($(pkg-config xemacs); echo $?)
|
||||
%define xemacs_version 21.5
|
||||
%define xemacs_lispdir %{_datadir}/xemacs/site-packages
|
||||
%define xemacs_startdir %{_datadir}/emacs/site-packages/site-start.d
|
||||
%else
|
||||
%define xemacs_version %(pkg-config xemacs --modversion)
|
||||
%define xemacs_lispdir %(pkg-config xemacs --variable sitepkglispdir)
|
||||
%define xemacs_startdir %(pkg-config xemacs --variable sitestartdir)
|
||||
%endif
|
||||
|
||||
Name: anthy
|
||||
Version: 9100e
|
||||
Release: 3%{?dist}
|
||||
Version: 9100h
|
||||
Release: 8%{?dist}
|
||||
# The entire source code is LGPLv2+ and dictionaries is GPLv2.
|
||||
License: LGPLv2+ and GPLv2
|
||||
URL: http://sourceforge.jp/projects/anthy/
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: automake autoconf
|
||||
BuildRequires: emacs
|
||||
BuildRequires: emacs emacs-el
|
||||
BuildRequires: xemacs
|
||||
|
||||
Source0: http://prdownloads.sourceforge.jp/anthy/29142/anthy-%{version}.tar.gz
|
||||
Source0: http://osdn.dl.sourceforge.jp/anthy/37336/anthy-%{version}.tar.gz
|
||||
Source1: anthy-init.el
|
||||
Patch0: anthy-9100e-fix-segfault-vu.patch
|
||||
Patch0: anthy-fix-typo-in-dict.patch
|
||||
Patch1: anthy-corpus.patch
|
||||
|
||||
Summary: Japanese character set input library
|
||||
Group: System Environment/Libraries
|
||||
|
|
@ -27,36 +50,126 @@ So Anthy is secure than other conversion server.
|
|||
Summary: Header files and library for developing programs which uses Anthy
|
||||
Group: Development/Libraries
|
||||
Requires: anthy = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
%description devel
|
||||
The anthy-devel package contains the development files which is needed to build
|
||||
the programs which uses Anthy.
|
||||
|
||||
%package el
|
||||
Summary: Emacs Lisp files to use Anthy on Emacs
|
||||
%package -n emacs-%{pkg}
|
||||
Summary: Compiled elisp files to run Anthy under GNU Emacs
|
||||
Group: System Environment/Libraries
|
||||
Requires: emacs
|
||||
Requires: emacs(bin) >= %{emacs_version}
|
||||
Requires: anthy = %{version}-%{release}
|
||||
%description el
|
||||
The anthy-el package contains the emacs lisp to be able to input Japanese
|
||||
character set on Emacs.
|
||||
Obsoletes: anthy-el < 9100g-1
|
||||
Provides: anthy-el = %{version}-%{release}
|
||||
|
||||
%package el-xemacs
|
||||
Summary: Emacs Lisp files to use Anthy on XEmacs
|
||||
%description -n emacs-%{pkg}
|
||||
This package contains the byte compiled elisp packages to run Anthy with GNU
|
||||
Emacs.
|
||||
|
||||
%package -n emacs-%{pkg}-el
|
||||
Summary: Elisp source files for Anthy under GNU Emacs
|
||||
Group: System Environment/Libraries
|
||||
Requires: xemacs
|
||||
Requires: emacs-%{pkg} = %{version}-%{release}
|
||||
|
||||
%description -n emacs-%{pkg}-el
|
||||
This package contains the elisp source files for Anthy under GNU Emacs. You
|
||||
do not need to install this package to run Anthy. Install the emacs-%{pkg}
|
||||
package to use Anthy with GNU Emacs.
|
||||
|
||||
%package -n xemacs-%{pkg}
|
||||
Summary: Compiled elisp files to run Anthy under XEmacs
|
||||
Group: System Environment/Libraries
|
||||
Requires: xemacs(bin) >= %{xemacs_version}
|
||||
Requires: anthy = %{version}-%{release}
|
||||
%description el-xemacs
|
||||
The anthy-el-xemacs package contains the emacs lisp to be able to input Japanese
|
||||
character set on XEmacs.
|
||||
Obsoletes: anthy-el-xemacs < 9100g-1
|
||||
Provides: anthy-el-xemacs = %{version}-%{release}
|
||||
|
||||
%description -n xemacs-%{pkg}
|
||||
This package contains the byte compiled elisp packages to use Anthy with
|
||||
XEmacs.
|
||||
|
||||
%package -n xemacs-%{pkg}-el
|
||||
Summary: Elisp source files for Anthy under XEmacs
|
||||
Group: System Environment/Libraries
|
||||
Requires: xemacs-%{pkg} = %{version}-%{release}
|
||||
|
||||
%description -n xemacs-%{pkg}-el
|
||||
This package contains the elisp source files for Anthy under XEmacs. You do
|
||||
not need to install this package to run Anthy. Install the xemacs-%{pkg}
|
||||
package to use Anthy with XEmacs.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q #-a 2
|
||||
%patch0 -p1 -b 0-vu
|
||||
#cp alt-cannadic-%{altcannadicver}/* alt-cannadic/
|
||||
%patch0 -p1 -b .0-typo
|
||||
%patch1 -p1 -b .1-corpus
|
||||
|
||||
%if %{use_utf8_dict}
|
||||
function normalize_extra_dict() {
|
||||
sed -e 's/^\([^ ]*\)t[ ]*\(#[A-Z0-9\*]*\)[ ]*\([^ ]*\)$/\1 \2 \3/g' $1 > $1.norm
|
||||
}
|
||||
function dict_conv() {
|
||||
iconv -f euc-jp -t utf-8 $1 > $1.utf8
|
||||
}
|
||||
function gen_dict_args() {
|
||||
if ! test -f $RPM_BUILD_DIR/%{name}-%{version}/mkworddic/dict.args.in-orig; then
|
||||
cp -a $RPM_BUILD_DIR/%{name}-%{version}/mkworddic/dict.args.in{,-orig}
|
||||
fi
|
||||
cat <<_EOF_ >> $RPM_BUILD_DIR/%{name}-%{version}/mkworddic/dict.args.in
|
||||
# Generated by rpm script
|
||||
set_input_encoding utf8
|
||||
read @top_srcdir@/alt-cannadic/gcanna.ctd.utf8
|
||||
read @top_srcdir@/alt-cannadic/gcannaf.ctd.utf8
|
||||
read @top_srcdir@/alt-cannadic/gtankan.ctd.utf8
|
||||
read @top_srcdir@/alt-cannadic/extra/g-jiritu-34.t.norm
|
||||
read @top_srcdir@/alt-cannadic/extra/gc-fullname-34.t.norm
|
||||
read @top_srcdir@/alt-cannadic/extra/gt-tankanji_kanji-34.t.norm
|
||||
read @top_srcdir@/alt-cannadic/extra/gt-tankanji_hikanji-34.t.norm
|
||||
read @top_srcdir@/alt-cannadic/extra/gf-fuzoku-34.t.norm
|
||||
read @top_srcdir@/mkworddic/adjust.t.utf8
|
||||
read @top_srcdir@/mkworddic/compound.t.utf8
|
||||
read @top_srcdir@/mkworddic/extra.t.utf8
|
||||
read @top_srcdir@/alt-cannadic/g_fname.t
|
||||
#
|
||||
build_reverse_dict
|
||||
set_dict_encoding utf8
|
||||
read_uc @top_srcdir@/mkworddic/udict
|
||||
write anthy.wdic
|
||||
done
|
||||
_EOF_
|
||||
touch -r $RPM_BUILD_DIR/%{name}-%{version}/mkworddic/dict.args.in{-orig,}
|
||||
}
|
||||
|
||||
(
|
||||
cd alt-cannadic
|
||||
for i in gcanna.ctd gcannaf.ctd gtankan.ctd; do
|
||||
dict_conv $i
|
||||
done
|
||||
cd extra
|
||||
for i in g-jiritu-34.t gc-fullname-34.t gf-fuzoku-34.t gt-tankanji_hikanji-34.t gt-tankanji_kanji-34.t; do
|
||||
normalize_extra_dict $i
|
||||
done
|
||||
);(
|
||||
cd mkworddic
|
||||
for i in adjust.t compound.t extra.t udict zipcode.t; do
|
||||
dict_conv $i
|
||||
done
|
||||
)
|
||||
gen_dict_args
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
# fix rpath issue
|
||||
sed -ie 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' libtool
|
||||
LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/src-main/.libs:$RPM_BUILD_DIR/%{name}-%{version}/src-worddic/.libs make %{?_smp_mflags}
|
||||
#LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/src-main/.libs:$RPM_BUILD_DIR/%{name}-%{version}/src-worddic/.libs make %{?_smp_mflags} update_params0
|
||||
#LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/src-main/.libs:$RPM_BUILD_DIR/%{name}-%{version}/src-worddic/.libs make %{?_smp_mflags} update_params
|
||||
#LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/src-main/.libs:$RPM_BUILD_DIR/%{name}-%{version}/src-worddic/.libs make %{?_smp_mflags} update_params2
|
||||
#LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/src-main/.libs:$RPM_BUILD_DIR/%{name}-%{version}/src-worddic/.libs make %{?_smp_mflags} update_params2
|
||||
#LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/src-main/.libs:$RPM_BUILD_DIR/%{name}-%{version}/src-worddic/.libs make %{?_smp_mflags} update_params2
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
|
@ -64,19 +177,19 @@ rm -rf $RPM_BUILD_ROOT
|
|||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
# remove unnecessary files
|
||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.{la,a}
|
||||
|
||||
## for anthy-el
|
||||
%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
|
||||
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
|
||||
## for emacs-anthy
|
||||
%__mkdir_p $RPM_BUILD_ROOT%{emacs_startdir}
|
||||
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{emacs_startdir}
|
||||
|
||||
## for anthy-el-xemacs
|
||||
%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/site-start.d
|
||||
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/site-start.d
|
||||
## for xemacs-anthy
|
||||
%__mkdir_p $RPM_BUILD_ROOT%{xemacs_startdir}
|
||||
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{xemacs_startdir}
|
||||
pushd $RPM_BUILD_DIR/%{name}-%{version}/src-util
|
||||
make clean
|
||||
make EMACS=xemacs lispdir="\${datadir}/xemacs/xemacs-packages/lisp/anthy"
|
||||
make install-lispLISP DESTDIR=$RPM_BUILD_ROOT EMACS=xemacs lispdir="\${datadir}/xemacs/xemacs-packages/lisp/anthy"
|
||||
make EMACS=xemacs lispdir="%{xemacs_lispdir}/%{pkg}"
|
||||
make install-lispLISP DESTDIR=$RPM_BUILD_ROOT EMACS=xemacs lispdir="%{xemacs_lispdir}/%{pkg}"
|
||||
popd
|
||||
|
||||
%clean
|
||||
|
|
@ -87,7 +200,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr (-, root, root)
|
||||
%defattr (-, root, root, -)
|
||||
%doc AUTHORS COPYING ChangeLog DIARY NEWS README
|
||||
%{_bindir}/*
|
||||
%{_sysconfdir}/*
|
||||
|
|
@ -95,25 +208,73 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_datadir}/anthy/
|
||||
|
||||
%files devel
|
||||
%defattr (-, root, root)
|
||||
%defattr (-, root, root, -)
|
||||
%doc doc/DICLIB doc/DICUTIL doc/GLOSSARY doc/GRAMMAR doc/GUIDE.english doc/ILIB doc/LEARNING doc/LIB doc/MISC doc/POS doc/SPLITTER doc/TESTING doc/protocol.txt
|
||||
%{_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
%{_libdir}/pkgconfig
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%files el
|
||||
%defattr (-, root, root)
|
||||
%files -n emacs-%{pkg}
|
||||
%defattr(-, root, root, -)
|
||||
%doc doc/ELISP
|
||||
%{_datadir}/emacs/site-lisp/anthy/
|
||||
%{_datadir}/emacs/site-lisp/site-start.d/anthy-init.el
|
||||
%{emacs_lispdir}/%{pkg}/*.elc
|
||||
%{emacs_startdir}/*.el
|
||||
%dir %{emacs_lispdir}/%{pkg}
|
||||
|
||||
%files el-xemacs
|
||||
%defattr (-, root, root)
|
||||
%files -n emacs-%{pkg}-el
|
||||
%defattr(-, root, root, -)
|
||||
%{emacs_lispdir}/%{pkg}/*.el
|
||||
|
||||
%files -n xemacs-%{pkg}
|
||||
%defattr(-, root, root, -)
|
||||
%doc doc/ELISP
|
||||
%{_datadir}/xemacs/xemacs-packages/lisp/anthy/
|
||||
%{_datadir}/xemacs/site-packages/lisp/site-start.d/anthy-init.el
|
||||
%{xemacs_lispdir}/%{pkg}/*.elc
|
||||
%{xemacs_startdir}/*.el
|
||||
%dir %{xemacs_lispdir}/%{pkg}
|
||||
|
||||
%files -n xemacs-%{pkg}-el
|
||||
%defattr(-, root, root, -)
|
||||
%{xemacs_lispdir}/%{pkg}/*.el
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Aug 28 2009 Akira TAGOH <tagoh@redhat.com> - 9100h-8
|
||||
- Fix more typos in dictionary. (#519769)
|
||||
|
||||
* Thu Aug 20 2009 Akira TAGOH <tagoh@redhat.com> - 9100h-7
|
||||
- Stop updating corpus at the build time to avoid creating different dictionary
|
||||
among arch. (#816563)
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9100h-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Jul 8 2009 Akira TAGOH <tagoh@redhat.com> - 9100h-5
|
||||
- Update the corpus.
|
||||
- Fix typos in dictionary. (#509534)
|
||||
|
||||
* Mon May 11 2009 Akira TAGOH <tagoh@redhat.com> - 9100h-4
|
||||
- Take off the ownership of %%{_libdir}/pkgconfig. (#499663)
|
||||
- Add R: pkgconfig to -devel.
|
||||
|
||||
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9100h-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue Feb 10 2009 Akira TAGOH <tagoh@redhat.com> - 9100h-1
|
||||
- New upstream release.
|
||||
|
||||
* Fri Feb 6 2009 Akira TAGOH <tagoh@redhat.com> - 9100g-2
|
||||
- Apply a patch reported upstream to fix dictionary's indexing.
|
||||
|
||||
* Wed Feb 4 2009 Akira TAGOH <tagoh@redhat.com> - 9100g-1
|
||||
- New upstream release.
|
||||
- convert all words in dictionaries to UTF-8.
|
||||
- Rename anthy-el and anthy-el-xemacs to emacs-anthy{,-el} and xemacs-anthy{,-el}.
|
||||
- Fix RPATH issue.
|
||||
- Support words for JIS X 0213:2004 in dictionary. (#195437)
|
||||
|
||||
* Fri Nov 21 2008 Akira TAGOH <tagoh@redhat.com> - 9100e-4
|
||||
- Fix a source URL.
|
||||
|
||||
* Fri Jun 27 2008 Akira TAGOH <tagoh@redhat.com> - 9100e-3
|
||||
- Fix a segfault with some words containing vu. (#452779)
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
1c328986005e61f503adc118909e12ac anthy-9100e.tar.gz
|
||||
1f558ff7ed296787b55bb1c6cf131108 anthy-9100h.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue