liece-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define origver 1.4.10
  4. %define origname liece
  5. %ifarch x86_64
  6. %define _libdir %{_prefix}/lib
  7. %endif
  8. Summary: Liece is emacs based irc client
  9. Summary(ja): Liece は Emacsen 上で動作する IRC のクライアント
  10. Name: %{origname}
  11. Version: %{origver}
  12. Release: 1%{?_dist_release}
  13. Source0: http://www.unixuser.org/~ueno/liece/dist/%{origname}-%{origver}.tar.gz
  14. Source1: %{origname}-install.sh
  15. Source2: %{origname}-remove.sh
  16. Source3: plum-support.el
  17. Patch1: liece-dsa341.patch
  18. Patch10: liece-1.4.10-emacs22.patch
  19. License: GPL
  20. Group: Applications/Editors/Emacs
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: gettext
  23. PreReq: emacsen
  24. %prereq_ge emacsen-common
  25. %prereq_ge flim
  26. Provides: %{origname} = %{origver}
  27. Conflicts: liece-el
  28. %description
  29. Liece is based on Irchat, simple IRC client running under Emacsen,
  30. nevertheless nothing to do with irchat-2.4jp which has various features added
  31. by Japanese contributers (e.g. Mule support, channel buffers). We are going
  32. to full-replace to redesign thoroughly, and to stand up to extension against
  33. arbitrary protocol backend. The most recent version of this program has been
  34. almost completely rewritten from Irchat.
  35. %description -l ja
  36. Liece はEmacsen 上で動作するシンプルなIRC クライアントであるIrchat をベースに
  37. しています。にもかかわらず 日本人コントリビュータがたくさん機能を追加した
  38. irchat-2.4jp はまったくとりこまれていません。liece では全体的に再デザインし、
  39. 完全におきかえをしてます。
  40. %prep
  41. %setup -n %{origname}-%{origver}
  42. %patch1 -p1
  43. %patch10 -p1
  44. %build
  45. ./configure --prefix=$RPM_BUILD_ROOT%{_prefix} \
  46. --with-lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp \
  47. --with-emacs=emacs
  48. make -C dcc
  49. make -C doc
  50. make -C etc
  51. (cd etc/po && msgfmt -o ja.mo ja.po)
  52. %install
  53. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  54. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  55. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
  56. mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/install
  57. mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/remove
  58. mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
  59. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{origname}/icons
  60. mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
  61. mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/%{origname}/po/ja/LC_MESSAGES/
  62. #
  63. # install el files
  64. #
  65. cp dcc/{ldcc,ltcp} ${RPM_BUILD_ROOT}/%{_bindir}
  66. cp -r lisp/* ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  67. cp %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  68. mv -f ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/ChangeLog \
  69. ChangeLog.lisp
  70. (cd etc && make install prefix=${RPM_BUILD_ROOT}/usr )
  71. (cp etc/po/ja.mo ${RPM_BUILD_ROOT}%{_datadir}/%{origname}/po/ja/LC_MESSAGES/%{origname}.mo )
  72. #
  73. # build & install info
  74. #
  75. install -m 644 doc/*.info ${RPM_BUILD_ROOT}%{_infodir}
  76. #
  77. # install script( bytecompile el and install elc , remove )
  78. #
  79. %_installemacsenscript %{origname} %{SOURCE1}
  80. %_removeemacsenscript %{origname} %{SOURCE2}
  81. #
  82. # install info file
  83. #
  84. mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
  85. %post
  86. #
  87. # bytecompile and install
  88. #
  89. if [ "$1" = 2 ]; then
  90. %_emacsenPackageRemove %{origname}
  91. fi
  92. %_addemacsenlist %{origname}
  93. %_emacsenPackageInstall %{origname}
  94. /sbin/install-info %{_infodir}/liece.info.gz %{_infodir}/dir \
  95. --entry="* Liece: (liece). IRC Client On Emacsen" --section="Emacs"
  96. %preun
  97. if [ "$1" = 0 ]; then
  98. echo "preun$1"
  99. %_emacsenPackageRemove %{origname}
  100. %_removeemacsenlist %{origname}
  101. /sbin/install-info --delete %{_infodir}/liece.info.gz %{_infodir}/dir \
  102. --entry="* Liece: (liece). IRC Client On Emacsen" --section="Emacs"
  103. fi
  104. %clean
  105. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  106. %files
  107. %defattr(-,root,root)
  108. %doc AUTHORS COPYING ChangeLog* INSTALL NEWS README doc
  109. #%doc etc/sample.dot.emacs where is it?
  110. %{_bindir}/*
  111. %{_datadir}/emacs/site-lisp/%{origname}/
  112. %{_libdir}/emacsen-common/packages/install/%{origname}
  113. %{_libdir}/emacsen-common/packages/remove/%{origname}
  114. %{_infodir}/%{origname}.info*
  115. %{_datadir}/%{origname}/po/ja/LC_MESSAGES/%{origname}.mo
  116. %{_datadir}/%{origname}/icons
  117. %{_datadir}/%{origname}/styles
  118. %changelog
  119. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.10-1vl5
  120. - applied new versioning policy, spec in utf-8
  121. * Thu Aug 30 2007 Shu KONNO <owa@bg.wakwak.com> 1.4.10-0vl6
  122. - added %%define _libdir %%{_prefix}/lib for x86_64
  123. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.10-0vl5
  124. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  125. * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.10-0vl4
  126. - add Patch10 to support emacs22 (use assoc-string instead of assoc-ignore-case)
  127. * Sun Jun 20 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.10-0vl3
  128. - rebuild for VineSeed
  129. * Wed May 19 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp>
  130. - 1.4.10-0vl2
  131. - Added a patch "liece-dsa341.patch" for fixing security
  132. - DSA-341-1 liece -- insecure temporary file
  133. * Fri Nov 1 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.10-0vl1
  134. - new upstream version.
  135. * Wed Feb 13 2002 akira yamada <akira@vinelinux.org> 1.4.6-0vl1
  136. - new upstream version.
  137. - added BuildRequires: gettext
  138. - removed patch10.
  139. * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl4
  140. - liece-el -> liece
  141. - spec file cleaned up too much
  142. - added patch (Patch10) to set default {icon,style} directory for Vine
  143. - patch0 removed
  144. * Thu Nov 8 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  145. - patchZZ
  146. * Wed Jul 18 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  147. - emacsenize
  148. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  149. - 1.14.3-0vl2
  150. - back to Requires: emacs = 20.7 -> emacs >= 20.7 (for emacs-beta)
  151. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  152. - 1.14.3-0vl1
  153. - updated to apel-10.3, flim-1.14.3, semi-1.14.3, emh-1.14.1
  154. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  155. - 1.13.7-8
  156. - added %define _noVersionedDependencies 1
  157. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  158. - 1.13.7-7
  159. - modified %files section to handle compressed man page(s)
  160. * Wed May 10 2000 MATSUBAYASHI 'Shaolin' Kohji
  161. - 1.13.7-6
  162. - apel updated to 10.2
  163. * Mon Jan 24 2000 MATSUBAYASHI 'Shaolin' Kohji
  164. - 1.13.7-5
  165. - added patch (see emacs-mime-ja: 00303) to format texinfo correctly
  166. * Thu Dec 24 1999 MATSUBAYASHI 'Shaolin' Kohji
  167. - 1.13.7-4
  168. - updated in sync with apel-10.0 / clime-1.13.6 release
  169. * Wed Dec 1 1999 MATSUBAYASHI 'Shaolin' Kohji
  170. - 1.13.7-3
  171. - change Group to Applications/Editors/EmacsLisp
  172. * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji
  173. - 1.13.7-2
  174. - added patches (see emacs-mime-ja:00183, emacs-mime-ja:00184)
  175. - now emh-1.10.1 and rmail-mime-1.13.0 are also included
  176. - documentation files are properly stored under /usr/doc directory
  177. * Wed Nov 3 1999 MATSUBAYASHI 'Shaolin' Kohji
  178. - 1.13.7-1
  179. - updated to apel-9.23 / clime-1.13.5 / semi-1.13.7 release
  180. - added Japanese / English info files to be installed