| 1 | %define _noVersionedDependencies 1 |
|---|
| 2 | |
|---|
| 3 | %define origver 10.3 |
|---|
| 4 | %define origname apel |
|---|
| 5 | |
|---|
| 6 | Summary: A Portable Emacs Library |
|---|
| 7 | Summary(ja): Emacs ÍѤΠ´ðÁÃŪ¤Ê´Ø¿ô¤òÄ󶡤¹¤ë¥é¥¤¥Ö¥é¥ê |
|---|
| 8 | Name: %{origname}-el |
|---|
| 9 | Version: %{origver} |
|---|
| 10 | Release: 0vl3.3 |
|---|
| 11 | |
|---|
| 12 | Source0: ftp://ftp.m17n.org/pub/mule/apel/apel-%{origver}.tar.gz |
|---|
| 13 | Source1: apel-install.sh |
|---|
| 14 | Source2: apel-remove.sh |
|---|
| 15 | |
|---|
| 16 | Copyright: 1993-1999 Free Software Foundation, Inc., Dan Rich, Morioka Tomohiko, Kobayashi Shuhei |
|---|
| 17 | Group: Applications/Editors/EmacsLisp |
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-buildroot |
|---|
| 19 | BuildArch: noarch |
|---|
| 20 | |
|---|
| 21 | Requires: emacsen |
|---|
| 22 | Requires: emacsen-common |
|---|
| 23 | Provides: %{origname} = %{origver} |
|---|
| 24 | Obsoletes: tm, apel, flim |
|---|
| 25 | |
|---|
| 26 | Vendor: Project Vine |
|---|
| 27 | Distribution: Vine Linux |
|---|
| 28 | Packager: Kazuhisa TAKEI <takei@vinelinux.org> |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | %description |
|---|
| 32 | This package contains following .el files for emacsen: |
|---|
| 33 | |
|---|
| 34 | APEL %{origver} |
|---|
| 35 | |
|---|
| 36 | APEL stands for "A Portable Emacs Library". |
|---|
| 37 | It provides basic functions and macros for emacsen. |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | After installation, you must modify your ~/.emacs file to contain |
|---|
| 41 | at least: |
|---|
| 42 | |
|---|
| 43 | (setq load-path |
|---|
| 44 | (append (list |
|---|
| 45 | "/usr/share/emacs/site-lisp/apel" |
|---|
| 46 | ) |
|---|
| 47 | load-path)) |
|---|
| 48 | |
|---|
| 49 | (require 'path-util) |
|---|
| 50 | |
|---|
| 51 | Note: in order to rebuild this SRPM package, you need |
|---|
| 52 | emacsen installed. |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | %description -l ja |
|---|
| 56 | ¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ï GNU Emacs %{emacsver} ¾å¤Ç»ÈÍѤ¹¤ë |
|---|
| 57 | °Ê²¼¤Î elisp ¤ò¼ý¤á¤Æ¤¤¤Þ¤¹. |
|---|
| 58 | |
|---|
| 59 | APEL %{origver} |
|---|
| 60 | |
|---|
| 61 | APEL ¤Ï "A Portable Emacs Library" ¤Îά¤Ç¤¹¡¥ |
|---|
| 62 | Emacs ´Ä¶¤Î¤¿¤á¤Î´ðÁÃŪ¤Ê´Ø¿ô¤ä¥Þ¥¯¥í¤òÄ󶡤·¤Þ¤¹¡¥ |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | ¥¤¥ó¥¹¥È¡¼¥ë¸å¡¢~/.emacs ¤ËºÇÄã¤Ç¤â°Ê²¼¤Îµ½Ò¤òÄɲ䷤Ʋ¼¤µ¤¤: |
|---|
| 66 | |
|---|
| 67 | (setq load-path |
|---|
| 68 | (append (list |
|---|
| 69 | "/usr/share/emacs/site-lisp/apel" |
|---|
| 70 | ) |
|---|
| 71 | load-path)) |
|---|
| 72 | |
|---|
| 73 | (require 'path-util) |
|---|
| 74 | |
|---|
| 75 | Ãí°Õ¡§¤³¤Î SRPM ¥Ñ¥Ã¥±¡¼¥¸¤ò rebuild ¤¹¤ë¤Ë¤Ï¡¢emacsen ¤¬ |
|---|
| 76 | ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡¥ |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | %prep |
|---|
| 80 | |
|---|
| 81 | rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver} |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | %setup -n %{origname}-%{origver} |
|---|
| 85 | |
|---|
| 86 | ## %patch1 -p1 |
|---|
| 87 | |
|---|
| 88 | |
|---|
| 89 | %install |
|---|
| 90 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
|---|
| 91 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
|---|
| 92 | |
|---|
| 93 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname} |
|---|
| 94 | mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/install |
|---|
| 95 | mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/remove |
|---|
| 96 | |
|---|
| 97 | # |
|---|
| 98 | # install el files |
|---|
| 99 | # |
|---|
| 100 | |
|---|
| 101 | cp Makefile EMU-* APEL-* *.el ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname} |
|---|
| 102 | |
|---|
| 103 | # |
|---|
| 104 | # install script( bytecompile el and install elc , remove ) |
|---|
| 105 | # |
|---|
| 106 | |
|---|
| 107 | %_installemacsenscript %{origname} %{SOURCE1} |
|---|
| 108 | |
|---|
| 109 | %_removeemacsenscript %{origname} %{SOURCE2} |
|---|
| 110 | |
|---|
| 111 | # |
|---|
| 112 | # install info file |
|---|
| 113 | # |
|---|
| 114 | |
|---|
| 115 | mkdir -p ${RPM_BUILD_ROOT}/usr/info |
|---|
| 116 | |
|---|
| 117 | |
|---|
| 118 | %post |
|---|
| 119 | # |
|---|
| 120 | # bytecompile and install |
|---|
| 121 | # |
|---|
| 122 | |
|---|
| 123 | if [ "$1" = 2 ]; then |
|---|
| 124 | |
|---|
| 125 | %_emacsenPackageRemove %{origname} |
|---|
| 126 | |
|---|
| 127 | fi |
|---|
| 128 | |
|---|
| 129 | %_addemacsenlist %{origname} |
|---|
| 130 | |
|---|
| 131 | %_emacsenPackageInstall %{origname} |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | # /sbin/install-info /usr/info/mime-ui-ja.info /usr/info/dir \ |
|---|
| 135 | # --section="MIME Interface" |
|---|
| 136 | # /sbin/install-info /usr/info/mime-ui-en.info /usr/info/dir \ |
|---|
| 137 | # --section="MIME Interface" |
|---|
| 138 | |
|---|
| 139 | |
|---|
| 140 | %preun |
|---|
| 141 | |
|---|
| 142 | if [ "$1" = 0 ]; then |
|---|
| 143 | |
|---|
| 144 | %_emacsenPackageRemove %{origname} |
|---|
| 145 | |
|---|
| 146 | %_removeemacsenlist %{origname} |
|---|
| 147 | |
|---|
| 148 | fi |
|---|
| 149 | # /sbin/install-info --delete /usr/info/mime-ui-ja.info /usr/info/dir \ |
|---|
| 150 | # --section="MIME Interface" |
|---|
| 151 | # /sbin/install-info --delete /usr/info/mime-ui-en.info /usr/info/dir \ |
|---|
| 152 | # --section="MIME Interface" |
|---|
| 153 | |
|---|
| 154 | |
|---|
| 155 | %clean |
|---|
| 156 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
|---|
| 157 | |
|---|
| 158 | rm -rf ${RPM_BUILD_DIR}/apel-%{apelver} |
|---|
| 159 | |
|---|
| 160 | |
|---|
| 161 | %files |
|---|
| 162 | %defattr(-,root,root) |
|---|
| 163 | # %doc ../semi-%{semiver}/apel-%{apelver} |
|---|
| 164 | # %doc ../semi-%{semiver}/flim-%{flimver} |
|---|
| 165 | #%doc ../semi-%{semiver}/clime-%{climever} |
|---|
| 166 | # %doc ../semi-%{semiver}/semi-%{semiver} |
|---|
| 167 | # %doc ../semi-%{semiver}/emh-%{emhver} |
|---|
| 168 | # %doc ../semi-%{semiver}/rmail-mime-%{rmailmimever} |
|---|
| 169 | ## /usr/info/mime-ui-en.info* |
|---|
| 170 | ## /usr/info/mime-ui-ja.info* |
|---|
| 171 | /usr/share/emacs/site-lisp/%{origname}/ |
|---|
| 172 | /usr/lib/emacsen-common/packages/install/%{origname} |
|---|
| 173 | /usr/lib/emacsen-common/packages/remove/%{origname} |
|---|
| 174 | |
|---|
| 175 | |
|---|
| 176 | |
|---|
| 177 | %changelog |
|---|
| 178 | * Wed Jul 18 2001 Kazuhisa TAKEI <takei@vinelinux.org> |
|---|
| 179 | - emacsenize |
|---|
| 180 | |
|---|
| 181 | * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
|---|
| 182 | - 1.14.3-0vl2 |
|---|
| 183 | - back to Requires: emacs = 20.7 -> emacs >= 20.7 (for emacs-beta) |
|---|
| 184 | |
|---|
| 185 | * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
|---|
| 186 | - 1.14.3-0vl1 |
|---|
| 187 | - updated to apel-10.3, flim-1.14.3, semi-1.14.3, emh-1.14.1 |
|---|
| 188 | |
|---|
| 189 | * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 190 | - 1.13.7-8 |
|---|
| 191 | - added %define _noVersionedDependencies 1 |
|---|
| 192 | |
|---|
| 193 | * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 194 | - 1.13.7-7 |
|---|
| 195 | - modified %files section to handle compressed man page(s) |
|---|
| 196 | |
|---|
| 197 | * Wed May 10 2000 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 198 | - 1.13.7-6 |
|---|
| 199 | - apel updated to 10.2 |
|---|
| 200 | |
|---|
| 201 | * Mon Jan 24 2000 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 202 | - 1.13.7-5 |
|---|
| 203 | - added patch (see emacs-mime-ja: 00303) to format texinfo correctly |
|---|
| 204 | |
|---|
| 205 | * Thu Dec 24 1999 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 206 | - 1.13.7-4 |
|---|
| 207 | - updated in sync with apel-10.0 / clime-1.13.6 release |
|---|
| 208 | |
|---|
| 209 | * Wed Dec 1 1999 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 210 | - 1.13.7-3 |
|---|
| 211 | - change Group to Applications/Editors/EmacsLisp |
|---|
| 212 | |
|---|
| 213 | * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 214 | - 1.13.7-2 |
|---|
| 215 | - added patches (see emacs-mime-ja:00183, emacs-mime-ja:00184) |
|---|
| 216 | - now emh-1.10.1 and rmail-mime-1.13.0 are also included |
|---|
| 217 | - documentation files are properly stored under /usr/doc directory |
|---|
| 218 | |
|---|
| 219 | * Wed Nov 3 1999 MATSUBAYASHI 'Shaolin' Kohji |
|---|
| 220 | - 1.13.7-1 |
|---|
| 221 | - updated to apel-9.23 / clime-1.13.5 / semi-1.13.7 release |
|---|
| 222 | - added Japanese / English info files to be installed |
|---|