[521] | 1 | %define _noVersionedDependencies 1 |
---|
| 2 | %define _libdir %{_prefix}/lib |
---|
| 3 | |
---|
| 4 | %define cvs 1 |
---|
| 5 | |
---|
[3604] | 6 | # from (emacs-w3m-version) in w3m.el |
---|
| 7 | %define origver 1.4.437 |
---|
[521] | 8 | %define origname w3m |
---|
[3604] | 9 | %define rel 1 |
---|
| 10 | %define cvsdate 20110421 |
---|
[521] | 11 | |
---|
| 12 | Summary: an simple interface program of w3m, which works on Emacsen |
---|
| 13 | Summary(ja): Emacsen 用の w3m インタフェースプログラム |
---|
| 14 | Name: %{origname}-el |
---|
| 15 | Version: %{origver} |
---|
| 16 | %if %{cvs} |
---|
| 17 | Release: %{rel}.cvs%{cvsdate}%{?_dist_release} |
---|
| 18 | %else |
---|
| 19 | Release: %{rel}%{?_dist_release} |
---|
| 20 | %endif |
---|
| 21 | URL: http://emacs-w3m.namazu.org/ |
---|
| 22 | %if %{cvs} |
---|
| 23 | Source0: emacs-%{origname}-%{origver}cvs%{cvsdate}.tar.gz |
---|
| 24 | %else |
---|
| 25 | Source0: http://emacs-w3m.namazu.org/emacs-%{origname}-%{origver}.tar.gz |
---|
| 26 | %endif |
---|
| 27 | Source1: %{origname}-install.sh |
---|
| 28 | Source2: %{origname}-remove.sh |
---|
| 29 | Source3: %{origname}-init.el |
---|
| 30 | |
---|
| 31 | %define w3m_info_list \\\ |
---|
| 32 | emacs-w3m-ja.info \\\ |
---|
| 33 | emacs-w3m.info |
---|
| 34 | |
---|
| 35 | Patch10: %{origname}-icon-directory.diff |
---|
| 36 | |
---|
| 37 | License: Freely distributable |
---|
| 38 | Group: Applications/Editors/Emacs |
---|
| 39 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 40 | BuildArch: noarch |
---|
| 41 | |
---|
[3604] | 42 | Requires(post): emacsen emacsen-common |
---|
[521] | 43 | Requires(post): autoconf |
---|
[3604] | 44 | Requires(post): apel flim w3m |
---|
[521] | 45 | ##Requires(post): texinfo tetex |
---|
| 46 | BuildRequires: w3m |
---|
| 47 | BuildRequires: emacs |
---|
| 48 | BuildRequires: texinfo |
---|
[3604] | 49 | BuildRequires: texlive |
---|
[521] | 50 | |
---|
| 51 | Vendor: Project Vine |
---|
| 52 | Distribution: Vine Linux |
---|
[3604] | 53 | Packager: shaolin |
---|
[521] | 54 | |
---|
| 55 | |
---|
| 56 | %description |
---|
| 57 | a simple Emacs interface of w3m |
---|
| 58 | This package contains a interface program of w3m, which is a pager |
---|
| 59 | with WWW capability. It can be used as lightweight WWW browser on emacsen. |
---|
| 60 | This is also known as emacs-w3m. http://emacs-w3m.namazu.org/ |
---|
| 61 | |
---|
| 62 | %description -l ja |
---|
| 63 | w3m を Emacsen 上で動作させるインターフェースです。 |
---|
| 64 | このパッケージは、w3m のインターフェースと WWW ページャを含みます。 |
---|
| 65 | Emacsen 上で WWW ブラウザとして動作します。 |
---|
| 66 | emacs-w3m の名称で知られています。http://emacs-w3m.namazu.org/ |
---|
| 67 | を参照下さい。 |
---|
| 68 | |
---|
| 69 | Emacs/XEmacs 起動時に以下の設定ファイルを読み込みます。 |
---|
| 70 | M-x w3m で起動します。 |
---|
| 71 | |
---|
| 72 | /etc/emacs-??.?/site-start.d/53w3m-init.el |
---|
| 73 | /etc/xemacs-??.?.??/site-start.d/53w3m-init.el |
---|
| 74 | |
---|
| 75 | ユーザー単位で設定ファイルに変更を加えたい場合は、上記設定ファイルを |
---|
| 76 | ~/ へコピーして ~/.emacs.my.el から読み込む等してください。 |
---|
| 77 | |
---|
| 78 | %prep |
---|
| 79 | %if %{cvs} |
---|
| 80 | %setup -n emacs-%{origname}-%{origver}cvs%{cvsdate} |
---|
| 81 | %else |
---|
| 82 | %setup -n emacs-%{origname}-%{origver} |
---|
| 83 | %endif |
---|
| 84 | |
---|
| 85 | %patch10 -p1 |
---|
| 86 | |
---|
| 87 | %build |
---|
| 88 | |
---|
| 89 | autoconf |
---|
| 90 | chmod 755 ./configure* |
---|
| 91 | ./configure --prefix=%{_prefix} --infodir=%{_infodir} |
---|
| 92 | rm -f config.cache |
---|
| 93 | |
---|
| 94 | # create info files |
---|
| 95 | make info |
---|
| 96 | |
---|
| 97 | %install |
---|
| 98 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 99 | [ "${RPM_BUILD_ROOT}" != "/" ] && %__mkdir_p ${RPM_BUILD_ROOT} |
---|
| 100 | |
---|
| 101 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 102 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/attic |
---|
| 103 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/shimbun |
---|
| 104 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/doc |
---|
| 105 | %__mkdir_p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install |
---|
| 106 | %__mkdir_p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove |
---|
| 107 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{origname}-el |
---|
| 108 | %__mkdir_p ${RPM_BUILD_ROOT}%{_infodir} |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | # |
---|
| 112 | # install el files et al |
---|
| 113 | # |
---|
| 114 | |
---|
| 115 | install -m 644 *.el ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 116 | install -m 644 attic/*.el \ |
---|
| 117 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/attic |
---|
| 118 | install -m 644 shimbun/*.el \ |
---|
| 119 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/shimbun |
---|
| 120 | |
---|
| 121 | install -m 644 icons30/*.xpm ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/w3m-el |
---|
| 122 | |
---|
| 123 | install -m 644 Makefile* aclocal.m4 config* install-sh mkinstalldirs %{SOURCE3} \ |
---|
| 124 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 125 | install -m 755 config.status configure \ |
---|
| 126 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 127 | |
---|
| 128 | install -m 755 doc/* \ |
---|
| 129 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/doc |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | # |
---|
| 133 | # install info files |
---|
| 134 | # |
---|
| 135 | |
---|
| 136 | make install-info infodir=%{buildroot}%{_infodir} |
---|
| 137 | |
---|
| 138 | # |
---|
| 139 | # install script( bytecompile el and install elc , remove ) |
---|
| 140 | # |
---|
| 141 | |
---|
| 142 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
| 143 | |
---|
| 144 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | %post |
---|
| 148 | |
---|
| 149 | # |
---|
| 150 | # bytecompile and install |
---|
| 151 | # |
---|
| 152 | |
---|
| 153 | if [ "$1" = 2 ]; then |
---|
| 154 | |
---|
| 155 | %_emacsenPackageRemove %{origname} |
---|
| 156 | |
---|
| 157 | fi |
---|
| 158 | |
---|
| 159 | |
---|
| 160 | %_addemacsenlist %{origname} |
---|
| 161 | |
---|
| 162 | %_emacsenPackageInstall %{origname} |
---|
| 163 | |
---|
| 164 | for i in %{w3m_info_list}; do |
---|
| 165 | if [ -f %{_infodir}/${i}.gz ]; then |
---|
| 166 | /sbin/install-info %{_infodir}/${i}.gz %{_infodir}/dir \ |
---|
| 167 | --section="Emacs" |
---|
| 168 | fi |
---|
| 169 | done |
---|
| 170 | |
---|
| 171 | |
---|
| 172 | %preun |
---|
| 173 | |
---|
| 174 | if [ "$1" = 0 ]; then |
---|
| 175 | |
---|
| 176 | %_emacsenPackageRemove %{origname} |
---|
| 177 | |
---|
| 178 | %_removeemacsenlist %{origname} |
---|
| 179 | |
---|
| 180 | for i in %{w3m_info_list}; do |
---|
| 181 | if [ -f %{_infodir}/${i}.gz ]; then |
---|
| 182 | /sbin/install-info --delete %{_infodir}/${i}.gz %{_infodir}/dir \ |
---|
| 183 | --section="Emacs" |
---|
| 184 | fi |
---|
| 185 | done |
---|
| 186 | |
---|
| 187 | fi |
---|
| 188 | |
---|
| 189 | |
---|
| 190 | %clean |
---|
| 191 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | %files |
---|
| 195 | %defattr(-,root,root) |
---|
| 196 | #%doc COPYING ChangeLog FAQ* README* TIPS* |
---|
| 197 | %doc COPYING ChangeLog README* |
---|
| 198 | |
---|
| 199 | %{_datadir}/pixmaps/w3m-el |
---|
| 200 | %{_datadir}/emacs/site-lisp/%{origname}/ |
---|
| 201 | %{_libdir}/emacsen-common/packages/install/%{origname} |
---|
| 202 | %{_libdir}/emacsen-common/packages/remove/%{origname} |
---|
| 203 | %{_infodir}/*.info* |
---|
| 204 | |
---|
| 205 | |
---|
| 206 | %changelog |
---|
[3604] | 207 | * Thu Apr 21 2011 IWAI, Masaharu <iwai@alib.jp> 1.4.437-1.cvs20110421 |
---|
| 208 | - new upstream cvs head |
---|
| 209 | - add Requires: apel: <BTS:VineLinux:1014> |
---|
| 210 | - replace BuildRequires: tetex to texlive |
---|
| 211 | - drop defining prereq_ge macro: using Requires(post) tag |
---|
| 212 | - update Packager syntax |
---|
| 213 | |
---|
[521] | 214 | * Fri Feb 19 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.148-7.cvs20100124 |
---|
| 215 | - update %%files: politely for info files |
---|
| 216 | |
---|
| 217 | * Thu Feb 4 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.148-6.cvs20100124 |
---|
| 218 | - drop info files: Source20-26 |
---|
| 219 | - create info files in %%build section |
---|
| 220 | - update %%install section: using "install-info" target for Makefile |
---|
| 221 | - add BuildRequires: texinfo tetex |
---|
| 222 | |
---|
| 223 | * Mon Jan 25 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.148-5.cvs20100124 |
---|
| 224 | - update from CVS |
---|
| 225 | - update w3m-install.sh |
---|
| 226 | - change target for Makefile: 'make lisp' and 'make install-lisp' |
---|
| 227 | - drop no-make-info patch (Patch20) |
---|
| 228 | - copying doc directory |
---|
| 229 | |
---|
| 230 | * Sat Jan 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.4.148-4 |
---|
| 231 | - added %%patch20 -p1 -b .info in %%setup |
---|
| 232 | - In fact, for 1.4.148-3, emacs-w3m-1.4.148-no-make-info.patch was NOT applied |
---|
| 233 | - updated emacs-w3m-1.4.148-no-make-info.patch |
---|
| 234 | - dropped doc/Makefile from AC_OUTPUT in configure.in |
---|
| 235 | - do not copy doc/* files (info) |
---|
| 236 | - updated w3m-install.sh |
---|
| 237 | - removed autom4te.cache directory |
---|
| 238 | |
---|
| 239 | * Fri Dec 04 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.4.148-3 |
---|
| 240 | - dropped Requires(post): texinfo tetex |
---|
| 241 | - applied emacs-w3m-1.4.148-no-make-info.patch |
---|
| 242 | - contained info files |
---|
| 243 | - modified w3m-install.el |
---|
| 244 | |
---|
| 245 | * Sun Jul 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.4.148-2 |
---|
| 246 | - s/BuildPreReq/BuildRequires/ |
---|
| 247 | - added Requires(post): texinfo |
---|
| 248 | - added Requires(post): tetex |
---|
| 249 | - added BuildRequires: emacs |
---|
| 250 | |
---|
| 251 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.148-1vl5 |
---|
| 252 | - applied new versioning policy, spec in utf-8 |
---|
| 253 | - added %%define _libdir %%{_prefix}/lib |
---|
| 254 | |
---|
| 255 | * Sun Jan 14 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.148-0vl2 |
---|
| 256 | - update(CVS) |
---|
| 257 | - Modded w3m-install.sh(mv w3m-bitmap.el w3m-bitmap.el.BAK) |
---|
| 258 | |
---|
| 259 | * Wed Jan 10 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.148-0vl1 |
---|
| 260 | - update(CVS) |
---|
| 261 | - use autoconf |
---|
| 262 | - Modded w3m-install.sh(rm -rm %%{ELDIR}/*.elc, and exec autoconf) |
---|
| 263 | - w3m-bitmap.el is rename on compile(oldfile) |
---|
| 264 | |
---|
| 265 | * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.4-0vl3 |
---|
| 266 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
| 267 | |
---|
| 268 | * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-0vl2 |
---|
| 269 | - modified w3m-{install,remove}.sh |
---|
| 270 | |
---|
| 271 | * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-0vl1 |
---|
| 272 | - new upstream release |
---|
| 273 | |
---|
| 274 | * Mon Dec 13 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.3-0vl2 |
---|
| 275 | - rebuilt for flim-1.14.7 |
---|
| 276 | |
---|
| 277 | * Wed Sep 1 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.3-0vl1 |
---|
| 278 | - updated to new upstream version |
---|
| 279 | - patch for Vinelinux Errata3x |
---|
| 280 | |
---|
| 281 | * Thu Jul 15 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.2-0vl1 |
---|
| 282 | - updated to new upstream version |
---|
| 283 | |
---|
| 284 | * Thu Jul 8 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.1-0vl1 |
---|
| 285 | - updated to new upstream version |
---|
| 286 | - add %{description} -l ja |
---|
| 287 | |
---|
| 288 | * Tue Jun 29 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.1-0vl0.rc1 |
---|
| 289 | - updated to new upstream version(1.4.1rc1) |
---|
| 290 | - Modded w3m-install.sh for XEmacs(add --with-addpath=${APELPATH}) |
---|
| 291 | - Use icons30 |
---|
| 292 | |
---|
| 293 | * Sat Jul 19 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.3.6-0vl1 |
---|
| 294 | - updated to new upstream version |
---|
| 295 | |
---|
| 296 | * Sun Jul 13 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.3.5-0vl2 |
---|
| 297 | - Modified w3m-remove.sh |
---|
| 298 | |
---|
| 299 | * Wed Jul 9 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.3.5-0vl1 |
---|
| 300 | - updated to new upstream version |
---|
| 301 | - Add %{SOURCE3} |
---|
| 302 | |
---|
| 303 | * Tue Dec 10 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.3-0vl1 |
---|
| 304 | - updated to new upstream version |
---|
| 305 | |
---|
| 306 | * Fri Sep 13 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.1-0vl1 |
---|
| 307 | - updated to new upstream version |
---|
| 308 | |
---|
| 309 | * Mon Mar 18 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.6-0vl1 |
---|
| 310 | - updated to new upstream version |
---|
| 311 | |
---|
| 312 | * Sat Jan 19 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.4-0vl1 |
---|
| 313 | - updated to new upstream version |
---|
| 314 | |
---|
| 315 | * Wed Jan 02 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.3-0vl2 |
---|
| 316 | - installing shimbun directory under w3m directory is no good, |
---|
| 317 | especially for xemacs. Now w3m-{install,remove}.sh rewritten to |
---|
| 318 | conventional style. |
---|
| 319 | |
---|
| 320 | * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.3-0vl1 |
---|
| 321 | - updated to new upstream release |
---|
| 322 | |
---|
| 323 | * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.2-0vl3 |
---|
| 324 | - w3m-install.sh modified a little (echo messages, emu directory et al) |
---|
| 325 | - added Patch10 to set default icon directory (if null) |
---|
| 326 | |
---|
| 327 | * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.2-0vl2 |
---|
| 328 | - PreReq flim-el -> flim |
---|
| 329 | - spec file cleaned up |
---|
| 330 | |
---|
| 331 | * Sun Dec 9 2001 Kazuhisa TAKEI<takei@vinelinux.org> 1.2.2-0vl1 |
---|
| 332 | - add %doc |
---|
| 333 | - upstream upgrade |
---|
| 334 | |
---|
| 335 | * Sun Dec 9 2001 Kazuhisa TAKEI<takei@vinelinux.org> |
---|
| 336 | - initial package |
---|