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