[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 | Summary: IRC Client for emacsen |
---|
| 5 | Summary(ja): emacsen ÍѤÎIRC¥¯¥é¥¤¥¢¥ó¥È |
---|
| 6 | |
---|
| 7 | Name: irchat-pj |
---|
| 8 | Version: 2.4.24.20 |
---|
| 9 | Release: 0vl2 |
---|
| 10 | Source0: http://irc.fan.gr.jp/pj/%{name}-%{version}.tar.bz2 |
---|
| 11 | Source1: %{name}-install.sh |
---|
| 12 | Source2: %{name}-remove.sh |
---|
| 13 | |
---|
| 14 | Copyright: GPL |
---|
| 15 | Group: Applications/Internet |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
| 18 | PreReq: emacsen |
---|
| 19 | BuildPreReq: emacsen-common |
---|
| 20 | %prereq_ge emacsen-common |
---|
| 21 | Obsoletes: irchat |
---|
| 22 | Obsoletes: irchat-pj-xemacs |
---|
| 23 | |
---|
| 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | irchat-pj package includes Japanse IRC Client. |
---|
| 31 | |
---|
| 32 | %description -l ja |
---|
| 33 | irchat-pj ¥Ñ¥Ã¥±¡¼¥¸¤Ï¡¢¤è¤ê´°àú¤ËÆüËܤò°·¤¦¤¿¤á¤Ë, |
---|
| 34 | irchat-jp ¤ò²þ¤¤·¤¿ IRC ¥¯¥é¥¤¥¢¥ó¥È irchat-pj ¤ò´Þ¤ß¤Þ¤¹¡£ |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | |
---|
| 43 | make dcc |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 48 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
---|
| 49 | |
---|
| 50 | mkdir -p ${RPM_BUILD_ROOT}%{_bindir} |
---|
| 51 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name} |
---|
| 52 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install |
---|
| 53 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove |
---|
| 54 | |
---|
| 55 | # |
---|
| 56 | # install dcc binary |
---|
| 57 | # |
---|
| 58 | |
---|
| 59 | make EMACS=emacs \ |
---|
| 60 | DCCDIR=${RPM_BUILD_ROOT}%{_bindir} install-dcc |
---|
| 61 | |
---|
| 62 | # |
---|
| 63 | # install el files |
---|
| 64 | # |
---|
| 65 | |
---|
| 66 | cp -a Makefile *.el contrib ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name} |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | # |
---|
| 70 | # install script (bytecompile el and install elc, remove) |
---|
| 71 | # |
---|
| 72 | |
---|
| 73 | %_installemacsenscript %{name} %{SOURCE1} |
---|
| 74 | |
---|
| 75 | %_removeemacsenscript %{name} %{SOURCE2} |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | %post |
---|
| 79 | |
---|
| 80 | # |
---|
| 81 | # byte-compile and install |
---|
| 82 | # |
---|
| 83 | |
---|
| 84 | if [ "$1" = 2 ] ; then |
---|
| 85 | |
---|
| 86 | %_emacsenPackageRemove %{name} |
---|
| 87 | |
---|
| 88 | fi |
---|
| 89 | |
---|
| 90 | %_addemacsenlist %{name} |
---|
| 91 | |
---|
| 92 | %_emacsenPackageInstall %{name} |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | %preun |
---|
| 96 | |
---|
| 97 | if [ "$1" = 0 ] ; then |
---|
| 98 | |
---|
| 99 | %_emacsenPackageRemove %{name} |
---|
| 100 | |
---|
| 101 | %_removeemacsenlist %{name} |
---|
| 102 | |
---|
| 103 | fi |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | %clean |
---|
| 107 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | %files |
---|
| 111 | %defattr(-,root,root) |
---|
| 112 | %doc doc contrib |
---|
| 113 | %{_bindir}/dcc |
---|
| 114 | %{_datadir}/emacs/site-lisp/%{name} |
---|
| 115 | %{_libdir}/emacsen-common/packages/install/%{name} |
---|
| 116 | %{_libdir}/emacsen-common/packages/remove/%{name} |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | %changelog |
---|
| 120 | * Mon Dec 31 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.24.20-0vl2 |
---|
| 121 | - added missing BuildPreReqs/PreReqs |
---|
| 122 | |
---|
| 123 | * Sat Dec 29 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.24.20-0vl1 |
---|
| 124 | - updated to newest 2.4.24.20 stable release |
---|
| 125 | - now emacsen-common aware |
---|
| 126 | |
---|
| 127 | * Thu Jan 24 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 2.4.24.07-4 |
---|
| 128 | - a small fix in the spec file |
---|
| 129 | |
---|
| 130 | * Sun Jan 9 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 131 | [2.4.24.07-3] |
---|
| 132 | - added %defattr |
---|
| 133 | - change release to 0vl1 |
---|
| 134 | |
---|
| 135 | * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 136 | [2.4.24.07-2] |
---|
| 137 | - change group |
---|
| 138 | - strip bin |
---|
| 139 | |
---|
| 140 | * Tue Sep 7 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
| 141 | - modified irchat-pj-2.4.24.7 for emacs |
---|
| 142 | |
---|
| 143 | * Mon Aug 31 1999 Yasushi karino <kari-p@bk.iij4u.or.jp> |
---|
| 144 | - irchat-pj-xemacs-2.4.24.8-3 |
---|
| 145 | - It changed to XEmacs21.1.6 correspondence. |
---|
| 146 | |
---|
| 147 | * Tue Aug 10 1999 Yasushi Karino <kari-p@bk.iij4u.or.jp> |
---|
| 148 | - ircaht-pj-2.4.24.08pl1-xemacs-2 |
---|
| 149 | - Changed DCCDIR from /usr/local/bin to /usr/bin |
---|
| 150 | - Added '%changelog' tag. |
---|
| 151 | |
---|
| 152 | * Sun Aug 8 1999 Yasushi Karino <kari-p@bk.iij4u.or.jp> |
---|
| 153 | - ircaht-pj-2.4.24.08pl1-xemacs-1 |
---|
| 154 | - Applied patch 'irchat-pj-2.4.24.08pl1.diff.gz' |
---|
| 155 | - first Release |
---|