[521] | 1 | %define _noVersionedDependencies 1 |
---|
| 2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
| 3 | %define emacsen_pkgdir /usr/lib/emacsen-common/packages |
---|
| 4 | %define origname lookup |
---|
[749] | 5 | %define origver 1.4.1 |
---|
[521] | 6 | |
---|
[598] | 7 | Summary: a Search Interface for Emacsen |
---|
[521] | 8 | Summary(ja): Emacs 系のエディタで利用できる辞書検索インターフェース |
---|
| 9 | Name: %{origname} |
---|
| 10 | Version: %{origver} |
---|
[749] | 11 | Release: 1%{?_dist_release} |
---|
[521] | 12 | |
---|
| 13 | Source0: http://openlab.jp/edict/lookup/dist/lookup-%{version}.tar.gz |
---|
| 14 | Source1: %{origname}-install.sh |
---|
| 15 | Source2: %{origname}-remove.sh |
---|
[598] | 16 | Source10: lookup-sample.dotemacs |
---|
| 17 | Source11: lookup-init.el |
---|
| 18 | Source12: vine-default-lookup.el |
---|
[521] | 19 | |
---|
| 20 | License: GPL |
---|
| 21 | Group: Applications/Editors/Emacs |
---|
| 22 | URL: http://openlab.jp/edict/lookup/ |
---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version} |
---|
| 24 | BuildArch: noarch |
---|
| 25 | |
---|
| 26 | Requires: emacsen |
---|
[749] | 27 | PreReq: emacsen flim apel |
---|
| 28 | BuildRequires: flim apel |
---|
[521] | 29 | %prereq_ge emacsen-common |
---|
| 30 | PreReq: /sbin/install-info |
---|
| 31 | Obsoletes: lookup-emacs, lookup-xemacs |
---|
| 32 | Conflicts: %{origname}-el |
---|
| 33 | |
---|
| 34 | Distribution: Vine Linux |
---|
| 35 | Vendor: Project Vine |
---|
| 36 | Packager: Tomoya TAKA <taka@vinelinux.org> |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %description |
---|
[598] | 40 | Lookup is interface on Emacs to use some dictionaries. |
---|
[521] | 41 | Lookup is developed by OpenLab, Ring Server Project. |
---|
| 42 | |
---|
| 43 | %description -l ja |
---|
| 44 | Lookup は Emacs 系のエディタで利用できる辞書検索インターフェースです。 |
---|
| 45 | 市販のCD-ROM 辞書やネットワークの辞書サーバを始め、様々な情報源から簡単な操作 |
---|
| 46 | と設定で辞書検索が行なえます。 |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | |
---|
| 51 | %setup -q -n %{origname}-%{origver} |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %build |
---|
| 55 | |
---|
| 56 | %configure --prefix=%{_prefix} --infodir=%{_infodir} |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %install |
---|
| 60 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 61 | [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot} |
---|
| 62 | |
---|
| 63 | mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 64 | mkdir -p %{buildroot}%{emacsen_pkgdir}/install |
---|
| 65 | mkdir -p %{buildroot}%{emacsen_pkgdir}/remove |
---|
| 66 | |
---|
| 67 | # |
---|
| 68 | # install el files |
---|
| 69 | # |
---|
| 70 | |
---|
| 71 | cp -p lisp/*.el %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 72 | cp -p lisp/*.el.in %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 73 | cp -p lisp/lookup-logo.* %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 74 | cp -p packages/*.el %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 75 | cp -p packages/dict-misc/*.el %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 76 | cp -p packages/jitenban97/*.el %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
[598] | 77 | cp %{SOURCE11} %{SOURCE12} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/ |
---|
[521] | 78 | |
---|
| 79 | # |
---|
| 80 | # install script (bytecompile el and install elc , remove) |
---|
| 81 | # |
---|
| 82 | |
---|
| 83 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
| 84 | |
---|
| 85 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
| 86 | |
---|
| 87 | # |
---|
| 88 | # install info file |
---|
| 89 | # |
---|
| 90 | |
---|
| 91 | mkdir -p %{buildroot}%{_infodir} |
---|
| 92 | cp -p texi/lookup-guide.info %{buildroot}%{_infodir} |
---|
| 93 | cp -p texi/lookup.info* %{buildroot}%{_infodir} |
---|
| 94 | |
---|
| 95 | # |
---|
| 96 | # copy sample of ~/{.emacs.el,.xemacs.el} |
---|
| 97 | # |
---|
| 98 | |
---|
[598] | 99 | cp %{SOURCE10} ./sample.dotemacs |
---|
[521] | 100 | |
---|
| 101 | %clean |
---|
| 102 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 103 | |
---|
| 104 | %post |
---|
| 105 | # |
---|
| 106 | # bytecompile and install |
---|
| 107 | # |
---|
| 108 | |
---|
| 109 | if [ "$1" = 2 ]; then |
---|
| 110 | |
---|
| 111 | %_emacsenPackageRemove %{origname} |
---|
| 112 | |
---|
| 113 | fi |
---|
| 114 | |
---|
| 115 | %_addemacsenlist %{origname} |
---|
| 116 | |
---|
| 117 | %_emacsenPackageInstall %{origname} |
---|
| 118 | |
---|
| 119 | /sbin/install-info --info-dir=%{_infodir} %{_infodir}/lookup-guide.info.gz |
---|
| 120 | /sbin/install-info --info-dir=%{_infodir} %{_infodir}/lookup.info.gz |
---|
| 121 | |
---|
| 122 | %preun |
---|
| 123 | if [ "$1" = 0 ]; then |
---|
| 124 | |
---|
| 125 | %_emacsenPackageRemove %{origname} |
---|
| 126 | |
---|
| 127 | %_removeemacsenlist %{origname} |
---|
| 128 | |
---|
| 129 | /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/lookup-guide.info.gz |
---|
| 130 | /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/lookup.info.gz |
---|
| 131 | |
---|
| 132 | fi |
---|
| 133 | |
---|
| 134 | |
---|
| 135 | %files |
---|
| 136 | %defattr(-,root,root) |
---|
| 137 | %doc AUTHORS COPYING ChangeLog NEWS README VERSION |
---|
| 138 | %doc sample.dotemacs texi/*.texi |
---|
| 139 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
| 140 | %{emacsen_pkgdir}/install/%{origname} |
---|
| 141 | %{emacsen_pkgdir}/remove/%{origname} |
---|
| 142 | %{_infodir}/* |
---|
| 143 | |
---|
| 144 | |
---|
| 145 | %changelog |
---|
[749] | 146 | * Tue Mar 30 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.1-1 |
---|
| 147 | - update to 1.4.1 |
---|
| 148 | - add PreReq: apel |
---|
| 149 | - add BuildRequires: flim apel |
---|
| 150 | |
---|
[598] | 151 | * Mon Dec 14 2009 IWAI, Masaharu <iwai@alib.jp> 1.4-2 |
---|
| 152 | - apply vine-default |
---|
| 153 | - add lookup-init.el (Source11) |
---|
| 154 | - add vine-default-lookup.el (Source12) |
---|
| 155 | - update lookup-{install,remove}.sh |
---|
| 156 | - update sammary and description in English |
---|
| 157 | - rename Source10: sample.dotemacs to lookup-sample.dotemacs |
---|
| 158 | - add PreReq: flim :fixed <BTS:VineLinux:857> |
---|
| 159 | |
---|
[521] | 160 | * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.4-1vl5 |
---|
| 161 | - applied new versioning policy, spec in utf-8 |
---|
| 162 | - added %%emacsen_pkgdir macro |
---|
| 163 | |
---|
| 164 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4-0vl3 |
---|
| 165 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
| 166 | - s/Copyright/License/ |
---|
| 167 | |
---|
| 168 | * Fri Jul 2 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.4-0vl2 |
---|
| 169 | - add missing SOURCES (ndeb-binary.el, ndnmz.el) in lookup-install.sh |
---|
| 170 | |
---|
| 171 | * Tue May 4 2004 IWAI, Masaharu <iwai@alib.jp> 1.4-0vl1 |
---|
| 172 | - version up to 1.4 ( edict openlab version ) |
---|
| 173 | - update URL and Source0 tags |
---|
| 174 | - update lookup-install.sh script: value of VERSION |
---|
| 175 | |
---|
| 176 | * Mon Mar 17 2003 IWAI Masaharu <iwai@alib.jp> 1.3-0vl4 |
---|
| 177 | - rebuild |
---|
| 178 | |
---|
| 179 | * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3-0vl3 |
---|
| 180 | - lookup-el -> lookup again |
---|
| 181 | |
---|
| 182 | * Sat Dec 9 2001 Tomoya TAKA <taka@vinelinux.org> 1.3-0vl1 |
---|
| 183 | - emacsenize |
---|
| 184 | |
---|
| 185 | * Sun Jun 24 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> |
---|
| 186 | - 1.3-0vl1 |
---|
| 187 | - add Prereq: /sbin/install-info, handle info pages in %%post and %%preun |
---|
| 188 | - some fix on spec file, use rpm macros |
---|
| 189 | |
---|
| 190 | * Mon Jun 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 191 | - 1.2-0vl3 |
---|
| 192 | - BuildArch: noarch |
---|
| 193 | |
---|
| 194 | * Wed Apr 26 2000 Masaki Kawamura <kawamura@ic.sci.yamaguchi-u.ac.jp> |
---|
| 195 | - release for the Vine Linux 2.0 |
---|