| 1 | %define _noVersionedDependencies 1 |
|---|
| 2 | |
|---|
| 3 | %define origver 1.2.5 |
|---|
| 4 | %define origname rail |
|---|
| 5 | %define emacsen_pkgdir /usr/lib/emacsen-common/packages |
|---|
| 6 | |
|---|
| 7 | Name: %{origname} |
|---|
| 8 | Version: %{origver} |
|---|
| 9 | Release: 2%{?_dist_release} |
|---|
| 10 | Summary: rail - Replace Agent-string Internal Library for emacsen |
|---|
| 11 | Summary(ja): rail - emacsen 用 Agent 名変換ライブラリ |
|---|
| 12 | |
|---|
| 13 | Source0: ftp://ftp.fan.gr.jp/pub/elisp/rail/rail-%{version}.tar.bz2 |
|---|
| 14 | Source1: semi-1.14.6-VERSION |
|---|
| 15 | Source2: flim-1.14.9-VERSION |
|---|
| 16 | Source10: %{origname}-install.sh |
|---|
| 17 | Source11: %{origname}-remove.sh |
|---|
| 18 | Source12: %{origname}-init.el |
|---|
| 19 | |
|---|
| 20 | License: GPL |
|---|
| 21 | Group: Applications/Editors/Emacs |
|---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 23 | BuildArch: noarch |
|---|
| 24 | |
|---|
| 25 | Requires: emacsen semi |
|---|
| 26 | Requires(post): emacsen emacsen-common semi |
|---|
| 27 | Obsoletes: rail-xemacs |
|---|
| 28 | Conflicts: %{origname}-el |
|---|
| 29 | |
|---|
| 30 | Vendor: Project Vine |
|---|
| 31 | Distribution: Vine Linux |
|---|
| 32 | Packager: shaolin |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | %description |
|---|
| 36 | rail is a nifty elisp, that translates codenames with latin chars |
|---|
| 37 | of flim/semi/XEmacs/UTF-2000-Mule/Meadow to Japanese characters. |
|---|
| 38 | It also provides a function compatible with genjis.el (a part |
|---|
| 39 | of tm, that converts mule-version to Japanese characters). |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | %description -l ja |
|---|
| 43 | rail は,flim/semi/XEmacs/UTF-2000-Mule/Meadow のコードネームを |
|---|
| 44 | 日本語化し,User-Agent: フィールドに適用するための elsp です. |
|---|
| 45 | tm の genjis.el 互換機能 (mule-version の日本語化) も備えています. |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | %prep |
|---|
| 49 | %setup -n %{origname}-%{version} |
|---|
| 50 | |
|---|
| 51 | ## install newer codename file for semi |
|---|
| 52 | cp %{SOURCE1} contrib/SEMI_VERSION |
|---|
| 53 | cp %{SOURCE2} contrib/FLIM_VERSION |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | %install |
|---|
| 57 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
|---|
| 58 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
|---|
| 59 | |
|---|
| 60 | mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname} |
|---|
| 61 | #mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/install |
|---|
| 62 | #mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/remove |
|---|
| 63 | mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/install |
|---|
| 64 | mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/remove |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | ## install el files |
|---|
| 68 | |
|---|
| 69 | cp -a Makefile contrib *.el \ |
|---|
| 70 | ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname} |
|---|
| 71 | |
|---|
| 72 | # 2004.12.13 add Irokawa |
|---|
| 73 | cp -a %{SOURCE12} \ |
|---|
| 74 | ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname} |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | ## install script (bytecompile el and install elc, remove elc) |
|---|
| 78 | |
|---|
| 79 | %_installemacsenscript %{origname} %{SOURCE10} |
|---|
| 80 | |
|---|
| 81 | %_removeemacsenscript %{origname} %{SOURCE11} |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | %clean |
|---|
| 85 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | %post |
|---|
| 89 | |
|---|
| 90 | ## bytecompile el and install elc |
|---|
| 91 | |
|---|
| 92 | if [ "$1" = 2 ] ; then |
|---|
| 93 | |
|---|
| 94 | %_emacsenPackageRemove %{origname} |
|---|
| 95 | |
|---|
| 96 | fi |
|---|
| 97 | |
|---|
| 98 | %_addemacsenlist %{origname} |
|---|
| 99 | |
|---|
| 100 | %_emacsenPackageInstall %{origname} |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | %preun |
|---|
| 104 | |
|---|
| 105 | if [ "$1" = 0 ] ; then |
|---|
| 106 | |
|---|
| 107 | %_emacsenPackageRemove %{origname} |
|---|
| 108 | |
|---|
| 109 | %_removeemacsenlist %{origname} |
|---|
| 110 | |
|---|
| 111 | fi |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | %files |
|---|
| 115 | %defattr(-,root,root) |
|---|
| 116 | %doc 00README 00FAQ CHANGELOG contrib |
|---|
| 117 | %{_datadir}/emacs/site-lisp/%{origname} |
|---|
| 118 | #%{_libdir}/emacsen-common/packages/install/%{origname} |
|---|
| 119 | #%{_libdir}/emacsen-common/packages/remove/%{origname} |
|---|
| 120 | %{emacsen_pkgdir}/install/%{origname} |
|---|
| 121 | %{emacsen_pkgdir}/remove/%{origname} |
|---|
| 122 | |
|---|
| 123 | |
|---|
| 124 | %changelog |
|---|
| 125 | * Thu Apr 21 2011 IWAI, Masaharu <iwai@alib.jp> 1.2.5-2 |
|---|
| 126 | - drop defining prereq_ge macro: using Requires(post) tag |
|---|
| 127 | - add Requires: emacsen semi |
|---|
| 128 | - update Packager syntax |
|---|
| 129 | |
|---|
| 130 | * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.5-1vl5 |
|---|
| 131 | - applied new versioning policy, spec in utf-8 |
|---|
| 132 | - added macro %%emacsen_pkgdir |
|---|
| 133 | |
|---|
| 134 | * Fri Dec 7 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl12 |
|---|
| 135 | - added %%{SOURCE2} for flim-1.14.9 |
|---|
| 136 | |
|---|
| 137 | * Wed Jan 10 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.2.5-0vl11 |
|---|
| 138 | - added %%{SOURCE2} for flim-1.14.8 |
|---|
| 139 | |
|---|
| 140 | * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-0vl10 |
|---|
| 141 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
|---|
| 142 | |
|---|
| 143 | * Mon Dec 13 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.2.5-0vl9 |
|---|
| 144 | - added %%{SOURCE2} for flim-1.14.7 |
|---|
| 145 | - added %%{SOURCE12} for use /etc/$FLAVOR/site-start.d/ |
|---|
| 146 | |
|---|
| 147 | * Wed Dec 24 2003 MATSUBAYASHI <shaolin@vinelinux.org> 1.2.5-0vl8 |
|---|
| 148 | - added %%{SOURCE1} and %%{SOURCE2} for flim-1.14.6 / semi-1.14.6 |
|---|
| 149 | |
|---|
| 150 | * Wed May 21 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.2.5-0vl7 |
|---|
| 151 | - Modded %%{SOURCE2} for flim-1.14.5 |
|---|
| 152 | |
|---|
| 153 | * Sat Dec 07 2002 MATSUBAYASHI <shaolin@vinelinux.org> 1.2.5-0vl6 |
|---|
| 154 | - added %%{SOURCE1} for semi-1.14.5 |
|---|
| 155 | |
|---|
| 156 | * Mon Jun 03 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl5 |
|---|
| 157 | - added Source2 (for flim-1.14.4) |
|---|
| 158 | |
|---|
| 159 | * Fri Dec 28 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl4 |
|---|
| 160 | - package name changed rail-el -> rail again |
|---|
| 161 | |
|---|
| 162 | * Thu Dec 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl3 |
|---|
| 163 | - rail is now rail-el, thus emacsen-common aware :) |
|---|
| 164 | |
|---|
| 165 | * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
|---|
| 166 | - 1.2.5-0vl2 |
|---|
| 167 | - added %%{SOURCE1} for semi-1.14.3 |
|---|
| 168 | |
|---|
| 169 | * Tue Jan 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
|---|
| 170 | - 1.2.5-0vl1 |
|---|
| 171 | - updated to 1.2.5 release |
|---|
| 172 | - now rail-xemacs is a sub-package |
|---|
| 173 | - use better macros (%%{_tmppath}) |
|---|
| 174 | |
|---|
| 175 | * Tue Mar 28 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
|---|
| 176 | - 1.2.4-0vl1 |
|---|
| 177 | - updated in sync with 1.2.4 release |
|---|
| 178 | |
|---|
| 179 | * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp> |
|---|
| 180 | - 1.0.2-2 |
|---|
| 181 | - Requires: apel, flim removed |
|---|
| 182 | |
|---|
| 183 | * Tue Nov 16 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp> |
|---|
| 184 | - 1.0.2-1 |
|---|
| 185 | - updated in sync wih 1.0.2 release |
|---|
| 186 | |
|---|
| 187 | * Tue Oct 26 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp> |
|---|
| 188 | - 0.8-1 |
|---|
| 189 | - updated in sync wih 0.8 release |
|---|
| 190 | - added newer FLIM_VERSION file for newest CLIME release |
|---|
| 191 | |
|---|
| 192 | * Wed Oct 13 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp> |
|---|
| 193 | - 0.7-1 |
|---|
| 194 | - updated in sync wih 0.7 release |
|---|
| 195 | |
|---|
| 196 | * Mon Oct 4 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp> |
|---|
| 197 | - 0.6-1 |
|---|
| 198 | - updated in sync wih 0.6 release |
|---|
| 199 | |
|---|
| 200 | * Fri Oct 1 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp> |
|---|
| 201 | - 0.5-2 |
|---|
| 202 | - added newer FLIM_VERSION file for newest CLIME release |
|---|
| 203 | |
|---|
| 204 | * Wed Sep 29 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp> |
|---|
| 205 | - 0.5-1 |
|---|
| 206 | - first rpm release |
|---|