source: projects/specs/trunk/i/ibus-el/ibus-el-vl.spec @ 5644

Revision 5644, 3.8 KB checked in by munepi, 12 years ago (diff)

updated ibus-el-vl.spec

Line 
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
4%define origver  0.3.0
5
6Summary:      a IBus client for GNU Emacs
7Summary(ja):  GNU Emacs 用 IBus クライアント
8Name:         %{origname}
9Version:      %{origver}
10Release:      3%{?_dist_release}
11
12# http://launchpad.net/ibus.el
13Source0:      ibus-el-%{version}.tar.gz
14Source1:      %{origname}-install.sh
15Source2:      %{origname}-remove.sh
16Source3:      vine-default-%{origname}.el
17Source4:      %{origname}-init.el
18
19#
20Patch0:       ibus-el-0.2.1-emacs-24.0.90.patch
21Patch1:       ibus-el-0.3.0-disable-surrounding-text.patch
22
23License:      GPLv3
24Group:        Applications/Editors/Emacs
25URL:          http://www11.atwiki.jp/s-irie/pages/21.html
26BuildRoot:    %{_tmppath}/%{name}-%{version}-root
27BuildArch:    noarch
28
29Requires:     emacsen
30PreReq:       emacsen
31%prereq_ge    emacsen-common
32Requires:     python >= 2.5
33Requires:     ibus >= 1.2
34Requires:     python-xlib
35
36Distribution: Vine Linux
37Vendor:       Project Vine
38Packager:     iwaim, munepi
39
40%description
41ibus.el is a IBus client for GNU Emacs. This program allows users
42on-the-spot style input with IBus. The input statuses are individually
43kept for each buffer, and prefix-keys such as C-x and C-c can be used
44even if IBus is active. So you can input various languages fast and
45comfortably by using it.
46
47%prep
48
49%setup -q -n %{origname}-%{origver}
50
51#%patch0 -p1 -b .emacs24
52%if %{?_dist_release} == "vl6"
53%patch1 -p1 -b .surrounding
54%endif
55
56%build
57
58%install
59[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
60[ "%{buildroot}" != "/" ] && mkdir -p %{buildroot}
61
62mkdir -p %{buildroot}%{_datadir}/%{name}
63install -m 0755 ibus-el-agent %{buildroot}%{_datadir}/%{name}
64
65mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages
66mkdir -p %{buildroot}%{emacsen_pkgdir}/install
67mkdir -p %{buildroot}%{emacsen_pkgdir}/remove
68
69#
70# install el files
71#
72
73cp -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#
92if [ "$1" = 2 ]; then
93
94%_emacsenPackageRemove %{origname}
95
96fi
97
98%_addemacsenlist %{origname}
99
100%_emacsenPackageInstall %{origname}
101
102
103%preun
104if [ "$1" = 0 ]; then
105
106%_emacsenPackageRemove %{origname}
107
108%_removeemacsenlist %{origname}
109
110fi
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
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
126* Mon Feb 13 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-2
127- fix a typo in ibus-el-init.el
128
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
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
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
142* Wed Nov 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1
143- new upstream release
144
145* Tue Aug 31 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.0-1
146- new upstream release
147
148* Sat Jun 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.1-1
149- new upstream release
150
151* Mon Jun  7 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.0-1
152- first release for Vine Linux
Note: See TracBrowser for help on using the repository browser.