[521] | 1 | %define _noVersionedDependencies 1 |
---|
[3493] | 2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'Requires(post):%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
[521] | 3 | %define origver 1.14.6 |
---|
| 4 | %define origname semi |
---|
| 5 | |
---|
| 6 | Summary: library to provide MIME feature for Emacsen |
---|
| 7 | Summary(ja): Emacsen 用の MIME の機能を提供するライブラリ |
---|
| 8 | Name: %{origname} |
---|
| 9 | Version: %{origver} |
---|
[9511] | 10 | Release: 3%{?_dist_release} |
---|
[521] | 11 | |
---|
[9511] | 12 | License: 1993-1999 Free Software Foundation, Inc., Dan Rich, Morioka Tomohiko, Kobayashi Shuhei |
---|
| 13 | Group: Applications/Editors/Emacs |
---|
| 14 | URL: http://git.chise.org/elisp/semi/ |
---|
| 15 | |
---|
| 16 | Source0: http://git.chise.org/elisp/dist/semi/semi-1.14-for-flim-1.14/%{name}-%{version}.tar.gz |
---|
[521] | 17 | Source1: %{origname}-install.sh |
---|
| 18 | Source2: %{origname}-remove.sh |
---|
| 19 | Source3: %{origname}-init.el |
---|
| 20 | Patch10: SEMI-CFG.emacs.patch |
---|
| 21 | Patch20: semi-info.patch |
---|
| 22 | Patch21: semi-1.14.3-makeinfo.patch |
---|
| 23 | |
---|
| 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 25 | BuildArch: noarch |
---|
| 26 | |
---|
[3493] | 27 | Requires(post): emacsen |
---|
| 28 | BuildRequires: emacsen-common, flim |
---|
[521] | 29 | %prereq_ge emacsen-common |
---|
| 30 | %prereq_ge flim |
---|
| 31 | Obsoletes: %{origname}-el |
---|
| 32 | Obsoletes: tm, wemi-xemacs |
---|
| 33 | |
---|
| 34 | Vendor: Project Vine |
---|
| 35 | Distribution: Vine Linux |
---|
| 36 | Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %description |
---|
| 40 | This package contains following .el files for emacsen: |
---|
| 41 | |
---|
| 42 | SEMI %{origver} |
---|
| 43 | |
---|
| 44 | SEMI is a library to provide MIME feature for GNU Emacs. |
---|
| 45 | SEMI has such features as MIME message viewing and composing. |
---|
| 46 | |
---|
| 47 | Note: in order to rebuild this SRPM package, you need emacsen, |
---|
| 48 | emacsen-common and flim installed. |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | %description -l ja |
---|
| 52 | このパッケージは Emacsen 上で使用する |
---|
| 53 | 以下の elisp を収めています. |
---|
| 54 | |
---|
| 55 | SEMI %{origver} |
---|
| 56 | |
---|
| 57 | SEMI は GNU Emacs に MIME の機能を提供するライブラリです. |
---|
| 58 | MIME メッセージを読んだり,作成したり出来るようになります. |
---|
| 59 | |
---|
| 60 | 注意:この SRPM パッケージを rebuild するには、emacsen と emacsen-common, |
---|
| 61 | そして flim がインストールされている必要があります. |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %prep |
---|
| 65 | |
---|
[3493] | 66 | %__rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver} |
---|
[521] | 67 | |
---|
[9511] | 68 | %setup -q -n %{origname}-%{origver} |
---|
[521] | 69 | |
---|
| 70 | %patch10 -p1 |
---|
| 71 | %patch20 -p1 |
---|
| 72 | %patch21 -p1 |
---|
| 73 | |
---|
[9511] | 74 | iconv -f iso2022jp -t utf8 -o README.ja.new README.ja |
---|
| 75 | mv README.ja.new README.ja |
---|
[521] | 76 | |
---|
| 77 | %build |
---|
[3493] | 78 | %__make info |
---|
[521] | 79 | |
---|
| 80 | |
---|
| 81 | %install |
---|
[3493] | 82 | [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT} |
---|
| 83 | [ "${RPM_BUILD_ROOT}" != "/" ] && %__mkdir_p ${RPM_BUILD_ROOT} |
---|
[521] | 84 | |
---|
[3493] | 85 | %__mkdir_p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 86 | %__mkdir_p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install |
---|
| 87 | %__mkdir_p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove |
---|
[521] | 88 | |
---|
| 89 | # |
---|
| 90 | # install el files |
---|
| 91 | # |
---|
| 92 | |
---|
[3493] | 93 | %__cp Makefile SEMI-* *.el %{SOURCE3} \ |
---|
[521] | 94 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 95 | |
---|
| 96 | # |
---|
| 97 | # install script( bytecompile el and install elc , remove ) |
---|
| 98 | # |
---|
| 99 | |
---|
| 100 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
| 101 | |
---|
| 102 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
| 103 | |
---|
| 104 | # |
---|
| 105 | # install info file |
---|
| 106 | # |
---|
| 107 | |
---|
[3493] | 108 | %__mkdir_p ${RPM_BUILD_ROOT}%{_infodir} |
---|
| 109 | %__install -m 644 *.info ${RPM_BUILD_ROOT}%{_infodir} |
---|
[521] | 110 | |
---|
| 111 | |
---|
| 112 | %post |
---|
| 113 | # |
---|
| 114 | # bytecompile and install |
---|
| 115 | # |
---|
| 116 | |
---|
| 117 | if [ "$1" = 2 ]; then |
---|
| 118 | |
---|
| 119 | %_emacsenPackageRemove %{origname} |
---|
| 120 | |
---|
| 121 | fi |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | %_addemacsenlist %{origname} |
---|
| 125 | |
---|
| 126 | %_emacsenPackageInstall %{origname} |
---|
| 127 | |
---|
| 128 | |
---|
| 129 | /sbin/install-info %{_infodir}/mime-ui-ja.info.gz %{_infodir}/dir \ |
---|
| 130 | --section="MIME Interface" |
---|
| 131 | /sbin/install-info %{_infodir}/mime-ui-en.info.gz %{_infodir}/dir \ |
---|
| 132 | --section="MIME Interface" |
---|
| 133 | |
---|
| 134 | |
---|
| 135 | %preun |
---|
| 136 | |
---|
| 137 | if [ "$1" = 0 ]; then |
---|
| 138 | |
---|
| 139 | %_emacsenPackageRemove %{origname} |
---|
| 140 | |
---|
| 141 | %_removeemacsenlist %{origname} |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | /sbin/install-info --delete %{_infodir}/mime-ui-ja.info %{_infodir}/dir \ |
---|
| 145 | --section="MIME Interface" |
---|
| 146 | /sbin/install-info --delete %{_infodir}/mime-ui-en.info %{_infodir}/dir \ |
---|
| 147 | --section="MIME Interface" |
---|
| 148 | |
---|
| 149 | fi |
---|
| 150 | |
---|
| 151 | |
---|
| 152 | %triggerpostun -- semi-el |
---|
| 153 | |
---|
| 154 | %_emacsenPackageInstall %{origname} |
---|
| 155 | |
---|
| 156 | |
---|
| 157 | %clean |
---|
[3493] | 158 | [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT} |
---|
[521] | 159 | |
---|
[3493] | 160 | %__rm -rf ${RPM_BUILD_DIR}/semi-%{origver} |
---|
[521] | 161 | |
---|
| 162 | |
---|
| 163 | %files |
---|
| 164 | %defattr(-,root,root) |
---|
| 165 | %doc ChangeLog NEWS README* TODO VERSION |
---|
| 166 | %doc *.sgml *.texi |
---|
| 167 | %{_infodir}/mime-ui*.info* |
---|
| 168 | %{_datadir}/emacs/site-lisp/%{origname}/ |
---|
[3493] | 169 | %{emacsen_pkgdir}/install/%{name} |
---|
| 170 | %{emacsen_pkgdir}/remove/%{name} |
---|
[521] | 171 | |
---|
| 172 | |
---|
| 173 | %changelog |
---|
[9511] | 174 | * Wed Apr 15 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.14.6-3 |
---|
| 175 | - rebuilt on current VineSeed |
---|
| 176 | - added URL tag |
---|
| 177 | - updated Source0 |
---|
| 178 | |
---|
[3493] | 179 | * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.14.6-2 |
---|
| 180 | - rebuilt |
---|
| 181 | |
---|
[521] | 182 | * Sun Aug 3 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.6-1 |
---|
| 183 | - applied new versioning policy |
---|
| 184 | - spec in UTF-8 |
---|
| 185 | |
---|
| 186 | * Fri Dec 7 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.6-0vl7 |
---|
| 187 | - rebuild |
---|
| 188 | |
---|
| 189 | * Wed Jan 10 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.14.6-0vl6 |
---|
| 190 | - rebuild |
---|
| 191 | |
---|
| 192 | * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.6-0vl5 |
---|
| 193 | - fixed Group name correctly... <BTS:VineLinux:163> |
---|
| 194 | |
---|
| 195 | * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.6-0vl4 |
---|
| 196 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
| 197 | - s/Copyright/License/ |
---|
| 198 | |
---|
| 199 | * Mon Dec 13 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.14.6-0vl3 |
---|
| 200 | - rebuild for flim-1.14.7 |
---|
| 201 | - add comment in semi-init.el(for use c-sig) |
---|
| 202 | |
---|
| 203 | * Wed Dec 24 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.6-0vl1 |
---|
| 204 | - updated to new upstream release 1.14.6 (Maruoka) |
---|
| 205 | |
---|
| 206 | * Mon Jun 09 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.5-0vl2 |
---|
| 207 | - increased release number for the new apel release |
---|
| 208 | |
---|
| 209 | * Sat Dec 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.5-0vl1 |
---|
| 210 | - updated to new upstream release 1.14.5 (Awara-Onsen) |
---|
| 211 | |
---|
| 212 | * Fri Jan 11 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl9 |
---|
| 213 | - Obsoletes: semi-el now, instead of Conflicts: |
---|
| 214 | - added %%triggerpostun -- semi-el |
---|
| 215 | |
---|
| 216 | * Fri Dec 28 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl8 |
---|
| 217 | - package name changed semi-el -> semi again |
---|
| 218 | - added Source3 for forthcoming site-start mechanism |
---|
| 219 | |
---|
| 220 | * Sun Dec 09 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl7 |
---|
| 221 | - info patch merged again :) |
---|
| 222 | |
---|
| 223 | * Fri Dec 07 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl6 |
---|
| 224 | - modified/fixed spec file (BuildPreReq, Obsoletes and %%description) |
---|
| 225 | - use better macros again :) |
---|
| 226 | - info files and documentations available again :) |
---|
| 227 | |
---|
| 228 | * Mon Jul 23 2001 Kazuhisa TAKEI <takei@vinelinux.org> |
---|
| 229 | - requires: emacsen-common -> prereq |
---|
| 230 | |
---|
| 231 | * Wed Jul 18 2001 Kazuhisa TAKEI <takei@vinelinux.org> |
---|
| 232 | - emacsenize |
---|
| 233 | |
---|
| 234 | * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 235 | - 1.14.3-0vl2 |
---|
| 236 | - back to Requires: emacs = 20.7 -> emacs >= 20.7 (for emacs-beta) |
---|
| 237 | |
---|
| 238 | * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 239 | - 1.14.3-0vl1 |
---|
| 240 | - updated to apel-10.3, flim-1.14.3, semi-1.14.3, emh-1.14.1 |
---|
| 241 | |
---|
| 242 | * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 243 | - 1.13.7-8 |
---|
| 244 | - added %define _noVersionedDependencies 1 |
---|
| 245 | |
---|
| 246 | * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 247 | - 1.13.7-7 |
---|
| 248 | - modified %files section to handle compressed man page(s) |
---|
| 249 | |
---|
| 250 | * Wed May 10 2000 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 251 | - 1.13.7-6 |
---|
| 252 | - apel updated to 10.2 |
---|
| 253 | |
---|
| 254 | * Mon Jan 24 2000 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 255 | - 1.13.7-5 |
---|
| 256 | - added patch (see emacs-mime-ja: 00303) to format texinfo correctly |
---|
| 257 | |
---|
| 258 | * Thu Dec 24 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 259 | - 1.13.7-4 |
---|
| 260 | - updated in sync with apel-10.0 / clime-1.13.6 release |
---|
| 261 | |
---|
| 262 | * Wed Dec 1 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 263 | - 1.13.7-3 |
---|
| 264 | - change Group to Applications/Editors/EmacsLisp |
---|
| 265 | |
---|
| 266 | * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 267 | - 1.13.7-2 |
---|
| 268 | - added patches (see emacs-mime-ja:00183, emacs-mime-ja:00184) |
---|
| 269 | - now emh-1.10.1 and rmail-mime-1.13.0 are also included |
---|
| 270 | - documentation files are properly stored under /usr/doc directory |
---|
| 271 | |
---|
| 272 | * Wed Nov 3 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 273 | - 1.13.7-1 |
---|
| 274 | - updated to apel-9.23 / clime-1.13.5 / semi-1.13.7 release |
---|
| 275 | - added Japanese / English info files to be installed |
---|