1 | %define _noVersionedDependencies 1 |
---|
2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
3 | |
---|
4 | %define origver 0.75 |
---|
5 | %define release 5%{?_dist_release} |
---|
6 | %define emacs emacs |
---|
7 | %define origname IIIMECF |
---|
8 | |
---|
9 | Summary: Internet/Intranet Input Method Emacs Client Framework |
---|
10 | Summary(ja): Emacs クライアント用 Internet/Intranet Input Method フレームワーク |
---|
11 | Name: %{origname} |
---|
12 | Version: %{origver} |
---|
13 | Release: %{release} |
---|
14 | License: GPL |
---|
15 | Group: Applications/Editors/Emacs |
---|
16 | URL: http://www.meadowy.org/~kawabata/iiimecf/ |
---|
17 | #Source: ftp://ftp.m17n.org/pub/mule/IIIM/%{origname}-%{version}.tar.gz |
---|
18 | Source: http://www.meadowy.org/~kawabata/iiimecf/%{origname}-%{version}.tar.gz |
---|
19 | Source1: %{origname}-install.sh |
---|
20 | Source2: %{origname}-remove.sh |
---|
21 | Source3: %{origname}-init.el |
---|
22 | Source4: vine-default-%{origname}.el |
---|
23 | BuildArch: noarch |
---|
24 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
25 | |
---|
26 | PreReq: emacsen, gzip |
---|
27 | %prereq_ge emacsen-common |
---|
28 | BuildRequires: emacsen-common |
---|
29 | ## 0.7.5: Emacs 21 のみ Mule-UCS が必要です |
---|
30 | # PreReq: Mule-UCS |
---|
31 | # Requires: Mule-UCS |
---|
32 | |
---|
33 | #Packager: Shoji Matsumoto <shom@vinelinux.org> |
---|
34 | Distribution: Vine Linux |
---|
35 | Vendor: Project Vine |
---|
36 | |
---|
37 | |
---|
38 | %description |
---|
39 | IIIMECF conforms IIIM Protocol Specification defined by Sun Microsystems, |
---|
40 | and consists of a library to create IIIM awared applications and a simple |
---|
41 | input method library controlled by IIIM server(s). |
---|
42 | |
---|
43 | If you use IIIMECF on Emacs 21, Mule-UCS is required. |
---|
44 | |
---|
45 | %description -l ja |
---|
46 | IIIMECFは、Sun Microsystems社の定めるIIIM Protocolに基づき、Emacs上で |
---|
47 | IIIM対応のapplicationを構築するためのlibraryと、それを用いた、Server sideで |
---|
48 | 制御されるシンプルなInput Method libraryによって構成されています。 |
---|
49 | |
---|
50 | Emacs 21 では Mule-UCS が必要です。 |
---|
51 | |
---|
52 | %prep |
---|
53 | #% setup -n %{origname}-%{version} |
---|
54 | %setup -n iiimecf |
---|
55 | |
---|
56 | %__cp -a %{SOURCE3} %{SOURCE4} . |
---|
57 | |
---|
58 | %install |
---|
59 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
60 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
---|
61 | |
---|
62 | %__mkdir_p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{origname} |
---|
63 | %__mkdir_p $RPM_BUILD_ROOT%{emacsen_pkgdir}/install |
---|
64 | %__mkdir_p $RPM_BUILD_ROOT%{emacsen_pkgdir}/remove |
---|
65 | |
---|
66 | cp -r *.el lisp ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname} |
---|
67 | |
---|
68 | # |
---|
69 | # install script( bytecompile el and install elc , remove ) |
---|
70 | # |
---|
71 | |
---|
72 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
73 | |
---|
74 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
75 | |
---|
76 | %post |
---|
77 | # |
---|
78 | # bytecompile and install |
---|
79 | # |
---|
80 | |
---|
81 | if [ "$1" = 2 ]; then |
---|
82 | |
---|
83 | %_emacsenPackageRemove %{origname} |
---|
84 | |
---|
85 | fi |
---|
86 | |
---|
87 | %_addemacsenlist %{origname} |
---|
88 | |
---|
89 | %_emacsenPackageInstall %{origname} |
---|
90 | |
---|
91 | %preun |
---|
92 | |
---|
93 | if [ "$1" = 0 ]; then |
---|
94 | |
---|
95 | %_emacsenPackageRemove %{origname} |
---|
96 | |
---|
97 | %_removeemacsenlist %{origname} |
---|
98 | |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | %clean |
---|
103 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
104 | |
---|
105 | |
---|
106 | %files |
---|
107 | %defattr(-,root,root) |
---|
108 | %doc COPYING* ChangeLog* README* lisp |
---|
109 | |
---|
110 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
111 | %{emacsen_pkgdir}/install/%{origname} |
---|
112 | %{emacsen_pkgdir}/remove/%{origname} |
---|
113 | |
---|
114 | |
---|
115 | %changelog |
---|
116 | * Sat Jul 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.75-5 |
---|
117 | - updated yatex-install.sh |
---|
118 | - *-init.el: changed from hard copy to symbolic link |
---|
119 | on /etc/emacs-XX.YY/site-start.d |
---|
120 | |
---|
121 | * Thu May 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.75-4 |
---|
122 | - fixed some STDOUT messages in IIIMECF-install.sh |
---|
123 | |
---|
124 | * Sun May 17 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.75-3 |
---|
125 | - updated vine-default-IIIMECF.el |
---|
126 | |
---|
127 | * Thu Apr 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.75-2 |
---|
128 | - added vine-default-IIIMECF.el, IIIMECF-init.el |
---|
129 | - updated wl-install.sh for vine-default-wl.el |
---|
130 | |
---|
131 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.75-1 |
---|
132 | - new upstream relase |
---|
133 | - spec in utf8 |
---|
134 | - applied new versioning policy |
---|
135 | - added URL: |
---|
136 | - added some comments about Mule-UCS in %%description |
---|
137 | - dropped Requires: Mule-UCS and BuildRequires: Mule-UCS |
---|
138 | - ONLY Emacs 21 needs Mule-UCS |
---|
139 | |
---|
140 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6-0vl5 |
---|
141 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
142 | |
---|
143 | * Sat Jul 22 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6-0vl4 |
---|
144 | - correct Summary <BTS:VineLinux:65> |
---|
145 | - add Summary(ja) |
---|
146 | - use License tag instead of CopyLight tag |
---|
147 | - change License from distibutable to GPL |
---|
148 | - rebuild for VineSeed (4.0) |
---|
149 | |
---|
150 | * Thu Nov 14 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.6-0vl2 |
---|
151 | - add Prereq: gzip |
---|
152 | - Not Support xemacs-21.1.* in IIIMECF-install.sh |
---|
153 | |
---|
154 | * Fri Oct 04 2002 Tomoya TAKA <taka@vinelinux.org> 0.6-0vl1 |
---|
155 | - add Prereq: Mule-UCS |
---|
156 | |
---|
157 | * Tue Aug 13 2002 Shoji Matsumoto <shom@vinelinux.org> 0.6-0vl0 |
---|
158 | - created |
---|