navi2ch-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. %define rel 5
  9. %define cvsdate 20101116
  10. %define cvsrel 1
  11. Summary: 2ch client on Emacsen
  12. Summary(ja): (X)Emacsで動く2ちゃんねるクライアントです
  13. Name: %{Name}
  14. Version: %{Version}
  15. Release: %{rel}.cvs%{cvsdate}%{?_dist_release}
  16. License: GPL
  17. Group: Applications/Editors/Emacs
  18. #Source: http://prdownloads.sourceforge.net/%{Name}/%{Name}-%{Version}.tar.gz
  19. Source: http://navi2ch.sourceforge.net/snapshot/%{name}-cvs_0.0.%{cvsdate}-%{cvsrel}.tar.gz
  20. Source1: navi2ch-install.sh
  21. Source2: navi2ch-remove.sh
  22. Source3: vine-default-navi2ch.el
  23. Source4: navi2ch-init.el
  24. BuildRoot: %{_tmppath}/%{Name}-%{Version}-root
  25. URL: http://navi2ch.sourceforge.net/
  26. BuildArch: noarch
  27. BuildRequires: emacs
  28. PreReq: emacsen make gzip texinfo
  29. %prereq_ge emacsen-common
  30. Provides: %{origname} = %{origver}
  31. %description
  32. 2ch client on Emacsen.
  33. %description -l ja
  34. (X)Emacsで動く2ちゃんねるクライアントです。
  35. navi2chの特徴
  36. ・(X)Emacsで動く。:-)
  37. ・データファイルを直接読み込むのでブラウザで見るより速い。
  38. ・その他(募集中)。
  39. キーバインドについては、info を参照して下さい。
  40. monafont を使いたい場合は、~/.navi2ch/init.el に、
  41. (setq navi2ch-mona-enable t)
  42. を記述して下さい。
  43. %prep
  44. #%setup -q -n %{Name}-%{Version}
  45. %setup -q -n %{name}-cvs-%{cvsdate}
  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. * Tue Dec 7 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-5.cvs20101116vl6
  107. - update install.sh (Source1) for Emacs 24
  108. * Wed Dec 1 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-4.cvs20101116
  109. - update to snapshot 0.0.20101116-1
  110. * Fri May 14 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-3.cvs20100415
  111. - update to snapshot 0.0.20100415-1
  112. - drop unnecessary machibbs patch (Patch1)
  113. - drop unused Emacs22 patch (Patch10)
  114. - add BuildRequires: emacs
  115. * Mon Dec 21 2009 IWAI, Masaharu <iwai@alib.jp> 2.0.0-2
  116. - apply vine-default
  117. - rename navi2ch-init.el to vine-default-navi2ch.el (Source3)
  118. - add navi2ch-init.el (Source4)
  119. - update nav2ch-install.sh
  120. - add navi2ch-machibbs.el-r1.32.patch (Patch1) :fixed <BTS:VineLinux:860>
  121. - refactoring for nav2ch-install.sh
  122. * Tue Sep 29 2008 Hiroaki Irokawa <irorinrin @ terra.dti.ne.jp> 2.0.0-1vl5
  123. - Sync with cvs trunk(20080929)
  124. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.7.5-1vl5
  125. - applied new versioning policy, spec in utf-8
  126. - changed %%{_libdir} to %%{_prefix}/lib
  127. * Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl8
  128. - Sync with CVS Snapshot(20070724)
  129. - rebuilt for VineSeed
  130. * Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl7
  131. - Sync with CVS Snapshot(20070724)
  132. * Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl6
  133. - rebuilt for VineSeed
  134. * Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl5
  135. - Sync with CVS Snapshot(20070424)
  136. - Add Compile for emacs-21
  137. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.5-0vl4
  138. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  139. * Tue Jun 6 2006 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl3
  140. - Sync with CVS Snapshot(20060529) because not work on XEmacs.
  141. - Not Support for emacs-20,21(compile error)
  142. * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.5-0vl2
  143. - add Patch10 to use assoc-string instead of assoc-ignore-case for emacs22.
  144. * Sun Oct 17 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl1
  145. - update
  146. * Tue Aug 31 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.4-0vl1
  147. - update
  148. - Copyright -> License
  149. * Fri May 7 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.3-0vl1
  150. - update
  151. * Mon Apr 5 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.2-0vl1
  152. - update
  153. * Mon Sep 29 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.1-0vl1
  154. - update
  155. * Tue Jul 22 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7-0vl1
  156. - update
  157. - include %SOURCE3
  158. * Thu Mar 6 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  159. - navi2ch-1.6.1-0vl4.
  160. - rebuilt.
  161. * Mon Dec 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  162. - navi2ch-1.6.1-0vl1.
  163. - update.
  164. * Sun Jul 28 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  165. - navi2ch-1.6.0-0vl1.
  166. - update.
  167. * Sun Jun 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  168. - navi2ch-1.5.2-0vl1.
  169. - update.
  170. * Sat Jan 26 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  171. - navi2ch-1.5.1-0vl1.
  172. - update.
  173. * Sat Jan 12 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  174. - navi2ch-1.4-0vl1.
  175. - update.
  176. * Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  177. - 01.11.28-1vl2.
  178. - emacsenized.
  179. * Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  180. - 01.11.28-1vl1.