[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 |
---|
[5546] | 4 | %define origver 0.3.0 |
---|
[1163] | 5 | |
---|
| 6 | Summary: a IBus client for GNU Emacs |
---|
| 7 | Summary(ja): GNU Emacs 用 IBus クライアント |
---|
| 8 | Name: %{origname} |
---|
| 9 | Version: %{origver} |
---|
[5644] | 10 | Release: 3%{?_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 | |
---|
[4868] | 19 | # |
---|
| 20 | Patch0: ibus-el-0.2.1-emacs-24.0.90.patch |
---|
[5644] | 21 | Patch1: ibus-el-0.3.0-disable-surrounding-text.patch |
---|
[4868] | 22 | |
---|
[1163] | 23 | License: GPLv3 |
---|
| 24 | Group: Applications/Editors/Emacs |
---|
| 25 | URL: http://www11.atwiki.jp/s-irie/pages/21.html |
---|
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 27 | BuildArch: noarch |
---|
| 28 | |
---|
| 29 | Requires: emacsen |
---|
| 30 | PreReq: emacsen |
---|
| 31 | %prereq_ge emacsen-common |
---|
| 32 | Requires: python >= 2.5 |
---|
| 33 | Requires: ibus >= 1.2 |
---|
| 34 | Requires: python-xlib |
---|
| 35 | |
---|
| 36 | Distribution: Vine Linux |
---|
| 37 | Vendor: Project Vine |
---|
[5546] | 38 | Packager: iwaim, munepi |
---|
[1163] | 39 | |
---|
| 40 | %description |
---|
| 41 | ibus.el is a IBus client for GNU Emacs. This program allows users |
---|
| 42 | on-the-spot style input with IBus. The input statuses are individually |
---|
| 43 | kept for each buffer, and prefix-keys such as C-x and C-c can be used |
---|
| 44 | even if IBus is active. So you can input various languages fast and |
---|
| 45 | comfortably by using it. |
---|
| 46 | |
---|
| 47 | %prep |
---|
| 48 | |
---|
| 49 | %setup -q -n %{origname}-%{origver} |
---|
| 50 | |
---|
[5546] | 51 | #%patch0 -p1 -b .emacs24 |
---|
[5644] | 52 | %if %{?_dist_release} == "vl6" |
---|
| 53 | %patch1 -p1 -b .surrounding |
---|
| 54 | %endif |
---|
[4868] | 55 | |
---|
[1163] | 56 | %build |
---|
| 57 | |
---|
| 58 | %install |
---|
| 59 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 60 | [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot} |
---|
| 61 | |
---|
| 62 | mkdir -p %{buildroot}%{_datadir}/%{name} |
---|
| 63 | install -m 0755 ibus-el-agent %{buildroot}%{_datadir}/%{name} |
---|
| 64 | |
---|
| 65 | mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 66 | mkdir -p %{buildroot}%{emacsen_pkgdir}/install |
---|
| 67 | mkdir -p %{buildroot}%{emacsen_pkgdir}/remove |
---|
| 68 | |
---|
| 69 | # |
---|
| 70 | # install el files |
---|
| 71 | # |
---|
| 72 | |
---|
| 73 | cp -p *.el %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | # |
---|
| 77 | # install script (bytecompile el and install elc , remove) |
---|
| 78 | # |
---|
| 79 | |
---|
| 80 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
| 81 | |
---|
| 82 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %clean |
---|
| 86 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 87 | |
---|
| 88 | %post |
---|
| 89 | # |
---|
| 90 | # bytecompile and install |
---|
| 91 | # |
---|
| 92 | if [ "$1" = 2 ]; then |
---|
| 93 | |
---|
| 94 | %_emacsenPackageRemove %{origname} |
---|
| 95 | |
---|
| 96 | fi |
---|
| 97 | |
---|
| 98 | %_addemacsenlist %{origname} |
---|
| 99 | |
---|
| 100 | %_emacsenPackageInstall %{origname} |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %preun |
---|
| 104 | if [ "$1" = 0 ]; then |
---|
| 105 | |
---|
| 106 | %_emacsenPackageRemove %{origname} |
---|
| 107 | |
---|
| 108 | %_removeemacsenlist %{origname} |
---|
| 109 | |
---|
| 110 | fi |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | %files |
---|
| 114 | %defattr(-,root,root) |
---|
| 115 | %doc README doc/COPYING doc/ChangeLog |
---|
| 116 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
| 117 | %{emacsen_pkgdir}/install/%{origname} |
---|
| 118 | %{emacsen_pkgdir}/remove/%{origname} |
---|
| 119 | %dir %{_datadir}/%{name} |
---|
| 120 | %{_datadir}/%{name}/ibus-el-agent |
---|
| 121 | |
---|
| 122 | %changelog |
---|
[5644] | 123 | * Tue Feb 14 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-3 |
---|
| 124 | - apply ibus-el-0.3.0-disable-surrounding-text.patch (for vl6) |
---|
| 125 | |
---|
[5638] | 126 | * Mon Feb 13 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-2 |
---|
| 127 | - fix a typo in ibus-el-init.el |
---|
| 128 | |
---|
[5546] | 129 | * Tue Jan 31 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-1 |
---|
| 130 | - new upstream release |
---|
| 131 | - added "munepi" in Packager tag |
---|
| 132 | |
---|
[4868] | 133 | * Mon Oct 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.1-3 |
---|
| 134 | - supported emacs-24.0.90 |
---|
| 135 | - updated ibus-el-init.el |
---|
| 136 | - output "Loading vine-default-ibus-el ..." to the buffer *Messages* |
---|
| 137 | |
---|
[3305] | 138 | * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 0.2.1-2vl6 |
---|
| 139 | - fix <BTS:VineLinux:1117> |
---|
| 140 | - update vine-default-ibus-el.el (Source3): sync [VineSeed:22997] |
---|
| 141 | |
---|
[2309] | 142 | * Wed Nov 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1 |
---|
| 143 | - new upstream release |
---|
| 144 | |
---|
[1755] | 145 | * Tue Aug 31 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.0-1 |
---|
| 146 | - new upstream release |
---|
| 147 | |
---|
[1189] | 148 | * Sat Jun 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.1-1 |
---|
| 149 | - new upstream release |
---|
| 150 | |
---|
[1163] | 151 | * Mon Jun 7 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.0-1 |
---|
| 152 | - first release for Vine Linux |
---|