[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 origname html-helper-mode |
---|
| 4 | %define origver 2.19.1.1 |
---|
[5689] | 5 | %define release 8 |
---|
[521] | 6 | |
---|
| 7 | # Main |
---|
| 8 | Summary: Major mode for editing HTML (for Emacsen) |
---|
| 9 | Name: %{origname} |
---|
| 10 | Version: %{origver} |
---|
[866] | 11 | Release: %{release}%{?_dist_release} |
---|
[756] | 12 | License: GPLv2+ |
---|
[521] | 13 | Group: Applications/Editors/Emacs |
---|
| 14 | URL: http://www.santafe.edu/~nelson/tools/ |
---|
| 15 | Source0: http://www.santafe.edu/~nelson/hhm-beta/html-helper-mode.el |
---|
| 16 | Source1: http://www.santafe.edu/~nelson/hhm-beta/tempo.el |
---|
| 17 | Source2: http://www.santafe.edu/~nelson/hhm-beta/index.html |
---|
| 18 | Source3: http://www.santafe.edu/~nelson/tools/configuring.html |
---|
| 19 | Source4: http://www.santafe.edu/~nelson/tools/differences.html |
---|
| 20 | Source5: http://www.santafe.edu/~nelson/tools/documentation.html |
---|
| 21 | Source6: http://www.santafe.edu/~nelson/tools/keybindings.html |
---|
| 22 | Source7: hhm.dot.emacs |
---|
| 23 | Source8: HHM-MK |
---|
| 24 | Source9: html-helper-mode-install.sh |
---|
| 25 | Source10: html-helper-mode-remove.sh |
---|
[756] | 26 | Source11: vine-default-%{origname}.el |
---|
| 27 | Source12: %{origname}-init.el |
---|
[521] | 28 | Buildroot: %{_tmppath}/%{name}-root |
---|
| 29 | PreReq: emacsen |
---|
| 30 | Requires: emacsen |
---|
| 31 | %prereq_ge emacsen-common |
---|
| 32 | |
---|
| 33 | BuildArchitectures: noarch |
---|
| 34 | #Obsoletes: %{name}-2.19.1.1-3 |
---|
| 35 | |
---|
| 36 | Vendor: Project Vine |
---|
| 37 | Distribution: Vine Linux |
---|
| 38 | |
---|
| 39 | %description |
---|
| 40 | html-helper-mode makes it easier to write HTML documents. |
---|
| 41 | This mode handles inserting HTML codes in a variety of ways |
---|
| 42 | (keybindings, completion in the buffer). |
---|
| 43 | It also supports indentation, timestamps, skeletons for new documents, |
---|
| 44 | hilit19 patterns, and a variety of other things. |
---|
| 45 | |
---|
| 46 | Initialization |
---|
| 47 | =============== |
---|
| 48 | Please refer the following file: |
---|
[756] | 49 | "%{_docdir}/%{name}-%{version}/hhm.dot.emacs" |
---|
| 50 | "%{_docdir}/%{name}-%{version}/*.html" |
---|
[521] | 51 | |
---|
| 52 | %description -l ja |
---|
| 53 | html-helper-mode は、HTML ドキュメントの作成を簡単にします。 |
---|
| 54 | このモードでは、HTML コードの挿入に多様な方法が使えます。 |
---|
| 55 | また、INDENTATION、タイムスタンプ等をサポートします。 |
---|
| 56 | |
---|
| 57 | 初期設定 |
---|
| 58 | ========= |
---|
| 59 | 下記を参考にしてください: |
---|
[756] | 60 | "%{_docdir}/%{name}-%{version}/hhm.dot.emacs" |
---|
| 61 | "%{_docdir}/%{name}-%{version}/*.html" |
---|
[521] | 62 | |
---|
| 63 | # ' |
---|
| 64 | %prep |
---|
| 65 | %setup -q -T -c %{name}-%{version} |
---|
| 66 | cp %SOURCE0 ./ |
---|
| 67 | cp %SOURCE1 ./ |
---|
| 68 | cp %SOURCE2 ./ |
---|
| 69 | cp %SOURCE3 ./ |
---|
| 70 | cp %SOURCE4 ./ |
---|
| 71 | cp %SOURCE5 ./ |
---|
| 72 | cp %SOURCE6 ./ |
---|
| 73 | cp %SOURCE7 ./ |
---|
| 74 | cp %SOURCE8 ./ |
---|
| 75 | |
---|
| 76 | %build |
---|
| 77 | # byte-compile |
---|
| 78 | #emacs-%{emacsver} -batch -l HHM-MK |
---|
| 79 | |
---|
| 80 | %install |
---|
| 81 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 82 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
---|
| 83 | |
---|
[756] | 84 | mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 85 | mkdir -p %{buildroot}%{emacsen_pkgdir}/install |
---|
| 86 | mkdir -p %{buildroot}%{emacsen_pkgdir}/remove |
---|
[521] | 87 | |
---|
| 88 | # |
---|
| 89 | # install el files |
---|
| 90 | # |
---|
[775] | 91 | cp -a html-helper-mode.el tempo.el HHM-MK %{SOURCE11} %{SOURCE12} \ |
---|
[521] | 92 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 93 | |
---|
| 94 | # |
---|
| 95 | # install script( bytecompile el and install elc , remove ) |
---|
| 96 | # |
---|
| 97 | %_installemacsenscript %{origname} %{SOURCE9} |
---|
| 98 | |
---|
| 99 | %_removeemacsenscript %{origname} %{SOURCE10} |
---|
| 100 | |
---|
| 101 | %post |
---|
| 102 | # |
---|
| 103 | # bytecompile and install |
---|
| 104 | # |
---|
| 105 | |
---|
| 106 | if [ "$1" = 2 ]; then |
---|
| 107 | |
---|
| 108 | %_emacsenPackageRemove %{origname} |
---|
| 109 | |
---|
| 110 | fi |
---|
| 111 | |
---|
| 112 | %_addemacsenlist %{origname} |
---|
| 113 | |
---|
| 114 | %_emacsenPackageInstall %{origname} |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | %preun |
---|
| 118 | if [ "$1" = 0 ]; then |
---|
| 119 | |
---|
| 120 | %_emacsenPackageRemove %{origname} |
---|
| 121 | |
---|
| 122 | %_removeemacsenlist %{origname} |
---|
| 123 | |
---|
| 124 | fi |
---|
| 125 | |
---|
| 126 | %clean |
---|
| 127 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 128 | |
---|
| 129 | rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver} |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | %files |
---|
| 133 | %defattr(-,root,root) |
---|
| 134 | %doc *.html hhm.dot.emacs |
---|
[756] | 135 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
| 136 | %{emacsen_pkgdir}/install/%{origname} |
---|
| 137 | %{emacsen_pkgdir}/remove/%{origname} |
---|
[521] | 138 | |
---|
| 139 | %changelog |
---|
[5689] | 140 | * Sun Feb 19 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.19.1.1-8 |
---|
| 141 | - updated html-helper-mode-init.el |
---|
| 142 | |
---|
[866] | 143 | * Mon Apr 19 2010 IWAI, Masaharu <iwai@alib.jp> 2.19.1.1-7 |
---|
| 144 | - fix html-helper-mode-install.sh: installing vine-default file |
---|
| 145 | |
---|
[756] | 146 | * Wed Apr 7 2010 IWAI, Masaharu <iwai@alib.jp> 2.19.1.1-6 |
---|
| 147 | - apply vine-default |
---|
| 148 | - add vine-default (Source11) |
---|
| 149 | - add init.el (Source12) |
---|
[775] | 150 | - update html-helper-mode-{install,removce}.sh for init.el file |
---|
[756] | 151 | - using %%{emacsen_pkgdir} macro |
---|
| 152 | - update %%description |
---|
| 153 | |
---|
[521] | 154 | * Wed May 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.19.1.1-5 |
---|
| 155 | - spec in utf8 |
---|
| 156 | - applied new versioning policy |
---|
| 157 | |
---|
| 158 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.19.1.1-4vl3 |
---|
| 159 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
| 160 | - s/Copyright/License/ |
---|
| 161 | |
---|
| 162 | * Wed Jan 2 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 2.19.1.1-4vl2 |
---|
| 163 | - emacsenize |
---|
| 164 | - rewrite Summary and %%description for emacesnize |
---|
| 165 | |
---|
| 166 | * Sun Oct 15 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 167 | - 2.19.1.1-4vl1 |
---|
| 168 | - rebuid for Vine Linux 2.1/emacs-20.7 |
---|
| 169 | |
---|
| 170 | * Mon Apr 17 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 171 | - rebuid for Vine Linux 2.0 |
---|
| 172 | |
---|
| 173 | * Fri Dec 17 1999 Ushio Tadaaki <t-ushio@fb3.so-net.ne.jp> |
---|
| 174 | - Released as version "html-helper-mode-emacs20-2.19.1.1-3". |
---|
| 175 | |
---|
| 176 | Changed from "html-helper-mode-emacs20-2.19.1.1-2". |
---|
| 177 | - Changed emacs version, "20.4" => "20.5". |
---|
| 178 | - Revised some, the definition part of data. |
---|
| 179 | |
---|
| 180 | * Thu Dec 2 1999 Ushio Tadaaki <t-ushio@fb3.so-net.ne.jp> |
---|
| 181 | - Released as version "html-helper-mode-emacs20-2.19.1.1-2". |
---|
| 182 | |
---|
| 183 | Changed from "html-helper-mode-emacs20-2.19.1.1-1". |
---|
| 184 | - Added source file, "HHM-MK". |
---|
| 185 | - Revised some, the definition part of data. |
---|
| 186 | - Revised some, part of "%description, %build". |
---|
| 187 | |
---|
| 188 | * Thu Nov 25 1999 Ushio Tadaaki <t-ushio@fb3.so-net.ne.jp> |
---|
| 189 | - Released as version "html-helper-mode-emacs20-2.19.1.1-1". |
---|
| 190 | |
---|
| 191 | # $Id: html-helper-mode-emacs20-2.19.1.1.spec,v 1.7 1999-12-17 17:50:58+09 ushio Exp $ |
---|