navi2ch-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define emacsver %(rpm -q emacs | cut -d - -f 2)
  4. %define Version 2.0.0
  5. %define Name navi2ch
  6. %define origver %{Version}
  7. %define origname %{Name}
  8. Summary: 2ch client on Emacsen
  9. Summary(ja): (X)Emacsで動く2ちゃんねるクライアントです
  10. Name: %{Name}
  11. Version: %{Version}
  12. Release: 2%{?_dist_release}
  13. License: GPL
  14. Group: Applications/Editors/Emacs
  15. #Source: http://prdownloads.sourceforge.net/%{Name}/%{Name}-%{Version}.tar.gz
  16. Source: http://prdownloads.sourceforge.net/%{Name}/%{Name}-20080929.tar.gz
  17. Source1: navi2ch-install.sh
  18. Source2: navi2ch-remove.sh
  19. Source3: vine-default-navi2ch.el
  20. Source4: navi2ch-init.el
  21. Patch1: navi2ch-machibbs.el-r1.32.patch
  22. Patch10: navi2ch-1.7.5-emacs22.patch
  23. BuildRoot: %{_tmppath}/%{Name}-%{Version}-root
  24. URL: http://navi2ch.sourceforge.net/
  25. BuildArch: noarch
  26. PreReq: emacsen make gzip texinfo
  27. %prereq_ge emacsen-common
  28. Provides: %{origname} = %{origver}
  29. %description
  30. 2ch client on Emacsen.
  31. %description -l ja
  32. (X)Emacsで動く2ちゃんねるクライアントです。
  33. navi2chの特徴
  34. ・(X)Emacsで動く。:-)
  35. ・データファイルを直接読み込むのでブラウザで見るより速い。
  36. ・その他(募集中)。
  37. キーバインドについては、info を参照して下さい。
  38. monafont を使いたい場合は、~/.navi2ch/init.el に、
  39. (setq navi2ch-mona-enable t)
  40. を記述して下さい。
  41. %prep
  42. #%setup -q -n %{Name}-%{Version}
  43. %setup -q -n %{Name}
  44. %patch1 -p1
  45. #%patch10 -p1
  46. %build
  47. %install
  48. #rm -rf $RPM_BUILD_ROOT
  49. #make lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/navi2ch install
  50. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  51. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  52. mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{origname}
  53. mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/emacsen-common/packages/install
  54. mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/emacsen-common/packages/remove
  55. #
  56. # install el files
  57. #
  58. #cp Makefile *.el ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
  59. cp -a * %{SOURCE3} %{SOURCE4} ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
  60. #
  61. # install script( bytecompile el and install elc , remove )
  62. #
  63. %_installemacsenscript %{origname} %{SOURCE1}
  64. %_removeemacsenscript %{origname} %{SOURCE2}
  65. #
  66. # install info file
  67. #
  68. cd doc
  69. # makeinfo navi2ch.texi
  70. emacs -q -batch -l ./batch-texi2info.el -f batch-texi2info navi2ch.texi
  71. gzip navi2ch.info
  72. cd ..
  73. mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
  74. install -m 644 doc/*.info* ${RPM_BUILD_ROOT}%{_infodir}
  75. %post
  76. #
  77. # bytecompile and install
  78. #
  79. if [ "$1" = 2 ]; then
  80. %_emacsenPackageRemove %{origname}
  81. fi
  82. %_addemacsenlist %{origname}
  83. %_emacsenPackageInstall %{origname}
  84. /sbin/install-info %{_infodir}/navi2ch.info.gz %{_infodir}/dir \
  85. --entry="* Navi2ch:(navi2ch) . 2ch Client On Emacsen" --section="Navi2ch"
  86. %preun
  87. if [ "$1" = 0 ]; then
  88. %_emacsenPackageRemove %{origname}
  89. %_removeemacsenlist %{origname}
  90. /sbin/install-info --delete %{_infodir}/navi2ch.info.gz %{_infodir}/dir \
  91. --entry="* Navi2ch: (navi2ch). 2ch Client On Emacsen" --section="Navi2ch"
  92. fi
  93. %clean
  94. #rm -rf $RPM_BUILD_ROOT
  95. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  96. rm -rf ${RPM_BUILD_DIR}/%{Name}-%{Version}
  97. %files
  98. %defattr(-, root, root)
  99. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
  100. #%{_datadir}/emacs/site-lisp/navi2ch
  101. /usr/share/emacs/site-lisp/%{origname}/
  102. /usr/lib/emacsen-common/packages/install/%{origname}
  103. /usr/lib/emacsen-common/packages/remove/%{origname}
  104. %{_infodir}/navi2ch.info*
  105. %changelog
  106. * Mon Dec 21 2009 IWAI, Masaharu <iwai@alib.jp> 2.0.0-2
  107. - apply vine-default
  108. - rename navi2ch-init.el to vine-default-navi2ch.el (Source3)
  109. - add navi2ch-init.el (Source4)
  110. - update nav2ch-install.sh
  111. - add navi2ch-machibbs.el-r1.32.patch (Patch1) :fixed <BTS:VineLinux:860>
  112. - refactoring for nav2ch-install.sh
  113. * Tue Sep 29 2008 Hiroaki Irokawa <irorinrin @ terra.dti.ne.jp> 2.0.0-1vl5
  114. - Sync with cvs trunk(20080929)
  115. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.7.5-1vl5
  116. - applied new versioning policy, spec in utf-8
  117. - changed %%{_libdir} to %%{_prefix}/lib
  118. * Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl8
  119. - Sync with CVS Snapshot(20070724)
  120. - rebuilt for VineSeed
  121. * Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl7
  122. - Sync with CVS Snapshot(20070724)
  123. * Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl6
  124. - rebuilt for VineSeed
  125. * Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl5
  126. - Sync with CVS Snapshot(20070424)
  127. - Add Compile for emacs-21
  128. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.5-0vl4
  129. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  130. * Tue Jun 6 2006 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl3
  131. - Sync with CVS Snapshot(20060529) because not work on XEmacs.
  132. - Not Support for emacs-20,21(compile error)
  133. * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.5-0vl2
  134. - add Patch10 to use assoc-string instead of assoc-ignore-case for emacs22.
  135. * Sun Oct 17 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl1
  136. - update
  137. * Tue Aug 31 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.4-0vl1
  138. - update
  139. - Copyright -> License
  140. * Fri May 7 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.3-0vl1
  141. - update
  142. * Mon Apr 5 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.2-0vl1
  143. - update
  144. * Mon Sep 29 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.1-0vl1
  145. - update
  146. * Tue Jul 22 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7-0vl1
  147. - update
  148. - include %SOURCE3
  149. * Thu Mar 6 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  150. - navi2ch-1.6.1-0vl4.
  151. - rebuilt.
  152. * Mon Dec 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  153. - navi2ch-1.6.1-0vl1.
  154. - update.
  155. * Sun Jul 28 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  156. - navi2ch-1.6.0-0vl1.
  157. - update.
  158. * Sun Jun 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  159. - navi2ch-1.5.2-0vl1.
  160. - update.
  161. * Sat Jan 26 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  162. - navi2ch-1.5.1-0vl1.
  163. - update.
  164. * Sat Jan 12 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  165. - navi2ch-1.4-0vl1.
  166. - update.
  167. * Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  168. - 01.11.28-1vl2.
  169. - emacsenized.
  170. * Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  171. - 01.11.28-1vl1.