1 | %define _noVersionedDependencies 1 |
---|
2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
3 | |
---|
4 | Name: scim-bridge-el |
---|
5 | Version: 0.7.4 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Source0: http://www11.atwiki.jp/s-irie/pub/emacs/scim-bridge/scim-bridge.el-%{version}.tar.gz |
---|
8 | Source1: %{name}-install.sh |
---|
9 | Source2: %{name}-remove.sh |
---|
10 | Source3: %{name}-init.el |
---|
11 | Source4: vine-default-%{name}.el |
---|
12 | |
---|
13 | ## http://www11.atwiki.jp/s-irie/pages/12.html をテキスト選択して保存したもの |
---|
14 | Source10: 12.txt |
---|
15 | |
---|
16 | License: GPLv2+ |
---|
17 | URL: http://www11.atwiki.jp/s-irie/pages/12.html |
---|
18 | Group: Applications/Editors/Emacs |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | Summary: SCIM-Bridge client for GNU Emacs |
---|
21 | Summary(ja): GNU EmacsのSCIM-Bridgeクライアント |
---|
22 | BuildArch: noarch |
---|
23 | |
---|
24 | PreReq: emacsen |
---|
25 | %prereq_ge emacsen-common |
---|
26 | BuildRequires: emacsen-common |
---|
27 | |
---|
28 | Distribution: Vine Linux |
---|
29 | Vendor: Project Vine |
---|
30 | Packager: munepi |
---|
31 | |
---|
32 | %description |
---|
33 | The Smart Common Input Method platform (SCIM) is an input |
---|
34 | method (IM) platform containing support for more than thirty |
---|
35 | languages (CJK and many European languages) for POSIX-style |
---|
36 | operating systems including Linux and BSD. |
---|
37 | |
---|
38 | This program is SCIM-Bridge client for GNU Emacs. It is, however, |
---|
39 | not part of official SCIM-Bridge. |
---|
40 | |
---|
41 | |
---|
42 | %description -l ja |
---|
43 | The Smart Common Input Method platform (SCIM) は、 |
---|
44 | Linux や BSD を含むPOSIX-styleオペレーティングシステムに対する |
---|
45 | 30より多くの言語(CJK や多くのヨーロッパ系言語)をサポートしている |
---|
46 | インプットメソッド(IM)プラットフォームです。 |
---|
47 | |
---|
48 | このプログラムは、GNU Emacs の SCIM-Bridge クライアントです。 |
---|
49 | しかしながら、公式な SCIM-Bridge の一部ではありません。 |
---|
50 | |
---|
51 | |
---|
52 | %prep |
---|
53 | %setup -q -n scim-bridge.el-%{version} |
---|
54 | %__cp %{SOURCE10} . |
---|
55 | |
---|
56 | %build |
---|
57 | |
---|
58 | |
---|
59 | %install |
---|
60 | |
---|
61 | [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT} |
---|
62 | |
---|
63 | %__mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name} |
---|
64 | %__mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install |
---|
65 | %__mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove |
---|
66 | |
---|
67 | |
---|
68 | # |
---|
69 | # install el files |
---|
70 | # |
---|
71 | |
---|
72 | %__cp -a scim-bridge.el ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name} |
---|
73 | %__cp -ra localization ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name} |
---|
74 | %__cp -a %{SOURCE3} %{SOURCE4} \ |
---|
75 | ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/ |
---|
76 | |
---|
77 | # remove unpackaged files |
---|
78 | %__rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/l10n-dev |
---|
79 | |
---|
80 | |
---|
81 | # |
---|
82 | # install script (bytecompile el and install elc, remove) |
---|
83 | # |
---|
84 | |
---|
85 | %_installemacsenscript %{name} %{SOURCE1} |
---|
86 | |
---|
87 | %_removeemacsenscript %{name} %{SOURCE2} |
---|
88 | |
---|
89 | |
---|
90 | %clean |
---|
91 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
92 | |
---|
93 | |
---|
94 | %post |
---|
95 | # |
---|
96 | # bytecompile and install |
---|
97 | # |
---|
98 | |
---|
99 | if [ "$1" = 2 ] ; then |
---|
100 | |
---|
101 | %_emacsenPackageRemove %{name} |
---|
102 | |
---|
103 | fi |
---|
104 | |
---|
105 | %_addemacsenlist %{name} |
---|
106 | |
---|
107 | %_emacsenPackageInstall %{name} |
---|
108 | |
---|
109 | |
---|
110 | %preun |
---|
111 | |
---|
112 | if [ "$1" = 0 ]; then |
---|
113 | |
---|
114 | %_emacsenPackageRemove %{name} |
---|
115 | |
---|
116 | %_removeemacsenlist %{name} |
---|
117 | |
---|
118 | fi |
---|
119 | |
---|
120 | |
---|
121 | %files |
---|
122 | %defattr(-,root,root) |
---|
123 | %doc 12.txt |
---|
124 | %{_datadir}/emacs/site-lisp/%{name}/ |
---|
125 | %{emacsen_pkgdir}/install/%{name} |
---|
126 | %{emacsen_pkgdir}/remove/%{name} |
---|
127 | |
---|
128 | |
---|
129 | %changelog |
---|
130 | * Fri Jan 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.7.4-1 |
---|
131 | - initial build |
---|