[1163] | 1 | %define _noVersionedDependencies 1 |
---|
| 2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
| 3 | %define origname ibus-el |
---|
[2309] | 4 | %define origver 0.2.1 |
---|
[1163] | 5 | |
---|
| 6 | Summary: a IBus client for GNU Emacs |
---|
| 7 | Summary(ja): GNU Emacs 用 IBus クライアント |
---|
| 8 | Name: %{origname} |
---|
| 9 | Version: %{origver} |
---|
[3305] | 10 | Release: 2%{?_dist_release} |
---|
[1163] | 11 | |
---|
| 12 | # http://launchpad.net/ibus.el |
---|
| 13 | Source0: ibus-el-%{version}.tar.gz |
---|
| 14 | Source1: %{origname}-install.sh |
---|
| 15 | Source2: %{origname}-remove.sh |
---|
| 16 | Source3: vine-default-%{origname}.el |
---|
| 17 | Source4: %{origname}-init.el |
---|
| 18 | |
---|
| 19 | License: GPLv3 |
---|
| 20 | Group: Applications/Editors/Emacs |
---|
| 21 | URL: http://www11.atwiki.jp/s-irie/pages/21.html |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 23 | BuildArch: noarch |
---|
| 24 | |
---|
| 25 | Requires: emacsen |
---|
| 26 | PreReq: emacsen |
---|
| 27 | %prereq_ge emacsen-common |
---|
| 28 | Requires: python >= 2.5 |
---|
| 29 | Requires: ibus >= 1.2 |
---|
| 30 | Requires: python-xlib |
---|
| 31 | |
---|
| 32 | Distribution: Vine Linux |
---|
| 33 | Vendor: Project Vine |
---|
| 34 | Packager: iwaim |
---|
| 35 | |
---|
| 36 | %description |
---|
| 37 | ibus.el is a IBus client for GNU Emacs. This program allows users |
---|
| 38 | on-the-spot style input with IBus. The input statuses are individually |
---|
| 39 | kept for each buffer, and prefix-keys such as C-x and C-c can be used |
---|
| 40 | even if IBus is active. So you can input various languages fast and |
---|
| 41 | comfortably by using it. |
---|
| 42 | |
---|
| 43 | %prep |
---|
| 44 | |
---|
| 45 | %setup -q -n %{origname}-%{origver} |
---|
| 46 | |
---|
| 47 | %build |
---|
| 48 | |
---|
| 49 | %install |
---|
| 50 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 51 | [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot} |
---|
| 52 | |
---|
| 53 | mkdir -p %{buildroot}%{_datadir}/%{name} |
---|
| 54 | install -m 0755 ibus-el-agent %{buildroot}%{_datadir}/%{name} |
---|
| 55 | |
---|
| 56 | mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 57 | mkdir -p %{buildroot}%{emacsen_pkgdir}/install |
---|
| 58 | mkdir -p %{buildroot}%{emacsen_pkgdir}/remove |
---|
| 59 | |
---|
| 60 | # |
---|
| 61 | # install el files |
---|
| 62 | # |
---|
| 63 | |
---|
| 64 | cp -p *.el %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | # |
---|
| 68 | # install script (bytecompile el and install elc , remove) |
---|
| 69 | # |
---|
| 70 | |
---|
| 71 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
| 72 | |
---|
| 73 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %clean |
---|
| 77 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 78 | |
---|
| 79 | %post |
---|
| 80 | # |
---|
| 81 | # bytecompile and install |
---|
| 82 | # |
---|
| 83 | if [ "$1" = 2 ]; then |
---|
| 84 | |
---|
| 85 | %_emacsenPackageRemove %{origname} |
---|
| 86 | |
---|
| 87 | fi |
---|
| 88 | |
---|
| 89 | %_addemacsenlist %{origname} |
---|
| 90 | |
---|
| 91 | %_emacsenPackageInstall %{origname} |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %preun |
---|
| 95 | if [ "$1" = 0 ]; then |
---|
| 96 | |
---|
| 97 | %_emacsenPackageRemove %{origname} |
---|
| 98 | |
---|
| 99 | %_removeemacsenlist %{origname} |
---|
| 100 | |
---|
| 101 | fi |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | %files |
---|
| 105 | %defattr(-,root,root) |
---|
| 106 | %doc README doc/COPYING doc/ChangeLog |
---|
| 107 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
| 108 | %{emacsen_pkgdir}/install/%{origname} |
---|
| 109 | %{emacsen_pkgdir}/remove/%{origname} |
---|
| 110 | %dir %{_datadir}/%{name} |
---|
| 111 | %{_datadir}/%{name}/ibus-el-agent |
---|
| 112 | |
---|
| 113 | %changelog |
---|
[3305] | 114 | * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 0.2.1-2vl6 |
---|
| 115 | - fix <BTS:VineLinux:1117> |
---|
| 116 | - update vine-default-ibus-el.el (Source3): sync [VineSeed:22997] |
---|
| 117 | |
---|
[2309] | 118 | * Wed Nov 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1 |
---|
| 119 | - new upstream release |
---|
| 120 | |
---|
[1755] | 121 | * Tue Aug 31 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.0-1 |
---|
| 122 | - new upstream release |
---|
| 123 | |
---|
[1189] | 124 | * Sat Jun 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.1-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
[1163] | 127 | * Mon Jun 7 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.0-1 |
---|
| 128 | - first release for Vine Linux |
---|