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