irchat-pj-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. Summary: IRC Client for emacsen
  4. Summary(ja): emacsen 用のIRCクライアント
  5. Name: irchat-pj
  6. Version: 2.4.24.20
  7. Release: 0vl2
  8. Source0: http://irc.fan.gr.jp/pj/%{name}-%{version}.tar.bz2
  9. Source1: %{name}-install.sh
  10. Source2: %{name}-remove.sh
  11. Copyright: GPL
  12. Group: Applications/Internet
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. PreReq: emacsen
  15. BuildPreReq: emacsen-common
  16. %prereq_ge emacsen-common
  17. Obsoletes: irchat
  18. Obsoletes: irchat-pj-xemacs
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  22. %description
  23. irchat-pj package includes Japanse IRC Client.
  24. %description -l ja
  25. irchat-pj パッケージは、より完璧に日本を扱うために,
  26. irchat-jp を改造した IRC クライアント irchat-pj を含みます。
  27. %prep
  28. %setup
  29. %build
  30. make dcc
  31. %install
  32. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  33. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  34. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  35. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
  36. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install
  37. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove
  38. #
  39. # install dcc binary
  40. #
  41. make EMACS=emacs \
  42. DCCDIR=${RPM_BUILD_ROOT}%{_bindir} install-dcc
  43. #
  44. # install el files
  45. #
  46. cp -a Makefile *.el contrib ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
  47. #
  48. # install script (bytecompile el and install elc, remove)
  49. #
  50. %_installemacsenscript %{name} %{SOURCE1}
  51. %_removeemacsenscript %{name} %{SOURCE2}
  52. %post
  53. #
  54. # byte-compile and install
  55. #
  56. if [ "$1" = 2 ] ; then
  57. %_emacsenPackageRemove %{name}
  58. fi
  59. %_addemacsenlist %{name}
  60. %_emacsenPackageInstall %{name}
  61. %preun
  62. if [ "$1" = 0 ] ; then
  63. %_emacsenPackageRemove %{name}
  64. %_removeemacsenlist %{name}
  65. fi
  66. %clean
  67. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  68. %files
  69. %defattr(-,root,root)
  70. %doc doc contrib
  71. %{_bindir}/dcc
  72. %{_datadir}/emacs/site-lisp/%{name}
  73. %{_libdir}/emacsen-common/packages/install/%{name}
  74. %{_libdir}/emacsen-common/packages/remove/%{name}
  75. %changelog
  76. * Mon Dec 31 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.24.20-0vl2
  77. - added missing BuildPreReqs/PreReqs
  78. * Sat Dec 29 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.24.20-0vl1
  79. - updated to newest 2.4.24.20 stable release
  80. - now emacsen-common aware
  81. * Thu Jan 24 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 2.4.24.07-4
  82. - a small fix in the spec file
  83. * Sun Jan 9 2000 Jun Nishii <jun@vinelinux.org>
  84. [2.4.24.07-3]
  85. - added %defattr
  86. - change release to 0vl1
  87. * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org>
  88. [2.4.24.07-2]
  89. - change group
  90. - strip bin
  91. * Tue Sep 7 1999 Norihito Ohmori <ohmori@flatout.org>
  92. - modified irchat-pj-2.4.24.7 for emacs
  93. * Mon Aug 31 1999 Yasushi karino <kari-p@bk.iij4u.or.jp>
  94. - irchat-pj-xemacs-2.4.24.8-3
  95. - It changed to XEmacs21.1.6 correspondence.
  96. * Tue Aug 10 1999 Yasushi Karino <kari-p@bk.iij4u.or.jp>
  97. - ircaht-pj-2.4.24.08pl1-xemacs-2
  98. - Changed DCCDIR from /usr/local/bin to /usr/bin
  99. - Added '%changelog' tag.
  100. * Sun Aug 8 1999 Yasushi Karino <kari-p@bk.iij4u.or.jp>
  101. - ircaht-pj-2.4.24.08pl1-xemacs-1
  102. - Applied patch 'irchat-pj-2.4.24.08pl1.diff.gz'
  103. - first Release