[521] | 1 | %define _noVersionedDependencies 1 |
---|
| 2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
| 3 | |
---|
| 4 | %define tgnusver 6_15_4-09 |
---|
| 5 | |
---|
| 6 | Summary: T-gnus - a branch of Gnus (SEMI compatible) for FSF Emacs 20.x |
---|
| 7 | Summary(ja): T-gnus - SEMI Âбþ¤Î Gnus (Emacs20 ÍÑ) |
---|
| 8 | Name: t-gnus |
---|
| 9 | Version: 6.15.4.09 |
---|
| 10 | Release: 0vl2 |
---|
| 11 | License: GPL |
---|
| 12 | Source0: ftp://ftp.jpl.org/pub/elisp/t-gnus-6.14/snapshots/t-gnus-%{tgnusver}-quimby.tar.gz |
---|
| 13 | Source1: t-gnus-install.sh |
---|
| 14 | Source2: t-gnus-remove.sh |
---|
| 15 | Patch0: t-gnus-%{tgnusver}-info.patch |
---|
| 16 | Group: Applications/Editors/Emacs |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildArch: noarch |
---|
| 19 | |
---|
| 20 | PreReq: emacsen |
---|
| 21 | %prereq_ge emacsen-common |
---|
| 22 | %prereq_ge semi |
---|
| 23 | BuildRequires: emacsen-common, semi |
---|
| 24 | Obsoletes: t-gnus-xemacs |
---|
| 25 | |
---|
| 26 | Vendor: Project Vine |
---|
| 27 | Distribution: Vine Linux |
---|
| 28 | Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | T-gnus is a variation of Gnus and SEMI-capable. |
---|
| 33 | It is a replacement for Gnus with gnus-mime combination. |
---|
| 34 | |
---|
| 35 | Install t-gnus package if you want to use T-gnus on Emacs 20.x. |
---|
| 36 | |
---|
| 37 | %description -l ja |
---|
| 38 | T-gnus ¤Ï SEMI Âбþ¤Î Gnus ¤Î1¤Ä¤Ç¤¹¡¥ |
---|
| 39 | gnus-mime ¤È Gnus ¤ÎÁȹ礻¤òÃÖ¤´¹¤¨¤ë¤â¤Î¤Ç¤¹¡¥ |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %prep |
---|
| 43 | %setup -q -n t-gnus-%{tgnusver}-quimby |
---|
| 44 | %patch0 -p1 |
---|
| 45 | |
---|
| 46 | cd texi |
---|
| 47 | |
---|
| 48 | # change info filename to avoid conflict with Gnus of emacs-20.4 |
---|
| 49 | # |
---|
| 50 | sed -e 's/@c @direntry/@direntry/' \ |
---|
| 51 | -e 's/@c \* Emacs MIME/\* Emacs MIME/' \ |
---|
| 52 | -e 's/@c @end direntry/@end direntry/' \ |
---|
| 53 | emacs-mime.texi > emacs-mime-new.texi |
---|
| 54 | mv emacs-mime-new.texi emacs-mime.texi |
---|
| 55 | |
---|
| 56 | sed -e 's/@c @direntry/@direntry/' \ |
---|
| 57 | -e 's/@c \* Gnus-ja/\* Gnus-ja/' \ |
---|
| 58 | -e 's/@c @end direntry/@end direntry/' \ |
---|
| 59 | -e 's/@setfilename gnus-ja/@setfilename t-gnus-ja/' \ |
---|
| 60 | -e 's/Gnus-ja: (gnus-ja)/T-Gnus-ja: (t-gnus-ja)/' \ |
---|
| 61 | gnus-ja.texi > t-gnus-ja.texi |
---|
| 62 | |
---|
| 63 | sed -e 's/@c @direntry/@direntry/' \ |
---|
| 64 | -e 's/@c \* Gnus/\* Gnus/' \ |
---|
| 65 | -e 's/@c @end direntry/@end direntry/' \ |
---|
| 66 | -e 's/@setfilename gnus/@setfilename t-gnus/' \ |
---|
| 67 | -e 's/Gnus: (gnus)/T-Gnus: (t-gnus)/' \ |
---|
| 68 | gnus.texi > t-gnus.texi |
---|
| 69 | |
---|
| 70 | sed -e 's/@c @direntry/@direntry/' \ |
---|
| 71 | -e 's/@c \* Message/\* Message/' \ |
---|
| 72 | -e 's/@c @end direntry/@end direntry/' \ |
---|
| 73 | -e 's/@setfilename message-ja/@setfilename t-gnus-message-ja/' \ |
---|
| 74 | -e 's/Message-ja: (message-ja)/T-Gnus-Message-ja: (t-gnus-message-ja)/' \ |
---|
| 75 | message-ja.texi > t-gnus-message-ja.texi |
---|
| 76 | |
---|
| 77 | sed -e 's/@c @direntry/@direntry/' \ |
---|
| 78 | -e 's/@c \* Message/\* Message/' \ |
---|
| 79 | -e 's/@c @end direntry/@end direntry/' \ |
---|
| 80 | -e 's/@setfilename message/@setfilename t-gnus-message/' \ |
---|
| 81 | -e 's/Message: (message)/T-Gnus-Message: (t-gnus-message)/' \ |
---|
| 82 | message.texi > t-gnus-message.texi |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %build |
---|
| 86 | |
---|
| 87 | ./configure |
---|
| 88 | make clean |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %install |
---|
| 92 | |
---|
| 93 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 94 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
---|
| 95 | |
---|
| 96 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name} |
---|
| 97 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install |
---|
| 98 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | # |
---|
| 102 | # install el files |
---|
| 103 | # |
---|
| 104 | |
---|
| 105 | cp -a Makefile* aclocal.m4 config* etc install-sh lisp mkinstalldirs texi \ |
---|
| 106 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name} |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | # |
---|
| 110 | # format info files and install them |
---|
| 111 | # |
---|
| 112 | |
---|
| 113 | mkdir -p ${RPM_BUILD_ROOT}%{_infodir} |
---|
| 114 | |
---|
| 115 | ( cd texi; |
---|
| 116 | make all-info ja-info |
---|
| 117 | install -m 644 *.info* ${RPM_BUILD_ROOT}%{_infodir}/. |
---|
| 118 | ) |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | # |
---|
| 122 | # install script (bytecompile el and install elc, remove) |
---|
| 123 | # |
---|
| 124 | |
---|
| 125 | %_installemacsenscript %{name} %{SOURCE1} |
---|
| 126 | |
---|
| 127 | %_removeemacsenscript %{name} %{SOURCE2} |
---|
| 128 | |
---|
| 129 | |
---|
| 130 | %post |
---|
| 131 | |
---|
| 132 | # |
---|
| 133 | # bytecompile and install |
---|
| 134 | # |
---|
| 135 | |
---|
| 136 | if [ "$1" = 2 ] ; then |
---|
| 137 | |
---|
| 138 | %_emacsenPackageRemove %{name} |
---|
| 139 | |
---|
| 140 | fi |
---|
| 141 | |
---|
| 142 | %_addemacsenlist %{name} |
---|
| 143 | |
---|
| 144 | %_emacsenPackageInstall %{name} |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | /sbin/install-info %{_infodir}/emacs-mime.info.gz %{_infodir}/dir \ |
---|
| 148 | --section="MIME Interface" |
---|
| 149 | /sbin/install-info %{_infodir}/sieve.info.gz %{_infodir}/dir \ |
---|
| 150 | --section="Newsreader" |
---|
| 151 | /sbin/install-info %{_infodir}/t-gnus.info.gz %{_infodir}/dir \ |
---|
| 152 | --section="Newsreader" |
---|
| 153 | /sbin/install-info %{_infodir}/t-gnus-ja.info.gz %{_infodir}/dir \ |
---|
| 154 | --section="Newsreader" |
---|
| 155 | /sbin/install-info %{_infodir}/t-gnus-message.info.gz %{_infodir}/dir \ |
---|
| 156 | --section="Newsreader" |
---|
| 157 | /sbin/install-info %{_infodir}/t-gnus-message-ja.info.gz %{_infodir}/dir \ |
---|
| 158 | --section="Newsreader" |
---|
| 159 | |
---|
| 160 | |
---|
| 161 | %preun |
---|
| 162 | if [ "$1" = 0 ]; then |
---|
| 163 | |
---|
| 164 | %_emacsenPackageRemove %{name} |
---|
| 165 | |
---|
| 166 | %_removeemacsenlist %{name} |
---|
| 167 | |
---|
| 168 | /sbin/install-info --delete %{_infodir}/emacs-mime.info.gz %{_infodir}/dir |
---|
| 169 | /sbin/install-info --delete %{_infodir}/sieve.info.gz %{_infodir}/dir |
---|
| 170 | /sbin/install-info --delete %{_infodir}/t-gnus.info.gz %{_infodir}/dir |
---|
| 171 | /sbin/install-info --delete %{_infodir}/t-gnus-ja.info.gz %{_infodir}/dir |
---|
| 172 | /sbin/install-info --delete %{_infodir}/t-gnus-message.info.gz \ |
---|
| 173 | %{_infodir}/dir |
---|
| 174 | /sbin/install-info --delete %{_infodir}/t-gnus-message-ja.info.gz \ |
---|
| 175 | %{_infodir}/dir |
---|
| 176 | fi |
---|
| 177 | |
---|
| 178 | |
---|
| 179 | %clean |
---|
| 180 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 181 | |
---|
| 182 | |
---|
| 183 | %files |
---|
| 184 | %defattr(-,root,root) |
---|
| 185 | %doc ChangeLog* GNUS-NEWS Mule23@1934* |
---|
| 186 | %doc README* TODO* contrib sample.lpath.el todo |
---|
| 187 | |
---|
| 188 | %{_infodir}/* |
---|
| 189 | %{_datadir}/emacs/site-lisp/%{name}/ |
---|
| 190 | %{_libdir}/emacsen-common/packages/install/%{name} |
---|
| 191 | %{_libdir}/emacsen-common/packages/remove/%{name} |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | %changelog |
---|
| 195 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.15.4.09-0vl2 |
---|
| 196 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
| 197 | - s/Copyright/License/ |
---|
| 198 | |
---|
| 199 | * Fri Dec 28 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 6.15.4.09-0vl1 |
---|
| 200 | - now emacsen-common aware |
---|
| 201 | - updated to new upstream release |
---|
| 202 | |
---|
| 203 | * Thu Jul 12 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> |
---|
| 204 | - 6.15.3.02-0vl1 |
---|
| 205 | - update to 6_14_5-02 |
---|
| 206 | - fix t-gnus-info.patch, and modify building function of info for emacs |
---|
| 207 | |
---|
| 208 | * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 209 | - 6.14.5.04-0vl2 |
---|
| 210 | - rebuilt with apel-10.3, flim-1.14.3, semi-1.14.3 |
---|
| 211 | |
---|
| 212 | * Mon Sep 25 2000 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 213 | - 6.14.5.04-0vl1 |
---|
| 214 | - updated to 6_14_5-04 snapshot release |
---|
| 215 | - now both emacs/xemacs packages are merged into one srpm |
---|
| 216 | - modified for brp-redhat |
---|
| 217 | |
---|
| 218 | * Wed May 10 2000 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 219 | - 6.14.1.01-1vl1 |
---|
| 220 | - rebuild with apel-10.2 |
---|
| 221 | |
---|
| 222 | * Fri Jan 07 2000 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 223 | - 6.14.1.01-1 |
---|
| 224 | - updated to 6.14.1.01 |
---|
| 225 | |
---|
| 226 | * Tue Dec 28 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 227 | - 6.14.0.14-1 |
---|
| 228 | - updated to 6.14.0.14 |
---|
| 229 | |
---|
| 230 | * Sat Dec 4 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 231 | - 6.13.4.01-1 |
---|
| 232 | - updated to 6.13.4.01 |
---|
| 233 | |
---|
| 234 | * Sat Nov 27 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 235 | - 6.13.3.06-1 |
---|
| 236 | - updated to 6.13.3.06 for semi-1.13.7 |
---|
| 237 | |
---|
| 238 | * Sat Nov 27 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 239 | - 6.12.0-2 |
---|
| 240 | - now info file is converted into EUC format |
---|
| 241 | - %post and %preun section fixed |
---|
| 242 | |
---|
| 243 | * Tue Sep 21 1999 MATSUBAYASHI 'Shaolin' Kohji |
---|
| 244 | - 6.12.0-1 |
---|
| 245 | - first rpm package for Vine 1.9 |
---|
| 246 | - changed info filename from gnus-* to t-gnus-* |
---|
| 247 | (to avoid conflicts with Gnus info that comes with emacs-20.4) |
---|