cmemo-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. Summary: Cmemo is cool and useful GTK text editor.
  2. Summary(ja): Cmemo はシンプルで使いやすい GTK テキストエディタ
  3. Name: cmemo
  4. Version: 2.1.4
  5. Release: 5%{?_dist_release}
  6. License: GPL
  7. Group: Applications/Editors
  8. ## Autoconf/Automake/rpm version
  9. URL: http://www.mindgear.org/index.cgi/PlusAlpha?page=Cmemo%2Bi
  10. Source: http://www.mindgear.org/data/PlusAlpha/%{name}-%{version}.tar.gz
  11. #---------------------------------------------------------------------------
  12. Source1: cmemo2.desktop
  13. #---------------------------------------------------------------------------
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: gtk2-devel, automake, gettext
  16. BuildRequires: desktop-file-utils
  17. #### orignal developer
  18. # Source: http://www1.neweb.ne.jp/wb/smusic/soft/archives/cmemo213.tar.gz
  19. # URL: http://www1.neweb.ne.jp/wb/smusic/
  20. #### Before Packager version (CLOSE site)
  21. # http://www.hi-net.zaq.ne.jp/seiun/linux/archives/cmemo-%{version}-%{release}.tar.gz
  22. # URL: http://www.hi-net.zaq.ne.jp/seiun/linux/index.html
  23. # Packager: MATSUMURA tomohiro <seiwn@excite.co.jp>
  24. #----------------------------------------------------------------------------
  25. %description
  26. Cmemo is a simple, cool and useful text editor.
  27. * search for strings, replace
  28. * Auto indent, line number
  29. * Emacs key assignment, available
  30. * highlight a keyword which you want to define
  31. * Global search and Tag jump
  32. * any file have EUC/SJIS/JIS/UTF-8[EUC range only]
  33. and CR/CRLF/LF is editable
  34. * Key macros
  35. If you install cmemo completely, please type
  36. $ %{_prefix}/share/cmemo/cmemocfg.inst [Enter]
  37. to install configuration file.
  38. Other documents, please read this:
  39. %{_prefix}/share/doc/cmemo-%{version}/
  40. %description -l ja
  41. Cmemoはシンプルで渋くて使いやすいエディタです。主な機能は以下の通り。
  42. ・文字列の検索、置換
  43. ・オートインデント、行番号表示
  44. ・Emacsキーアサインが可能
  45. ・構文強調表示 [単語登録可能]
  46. ・グローバル検索とタグジャンプ
  47. ・EUC/SJIS/JIS/UTF-8[EUCの範囲のみ]およびCR/CRLF/LFのファイルを編集可能
  48. ・キーマクロ
  49. ※インストール後に各ユーザーで次のコマンドを実行して、
  50. 設定ファイルをインストールしてください。
  51. $ %{_prefix}/share/cmemo/cmemocfg.inst [Enter]
  52. ※まだmanページはありません。各種ドキュメントは標準では
  53. %{_prefix}/share/doc/cmemo-%{version}/ 以下にコピーされます。
  54. #----------------------------------------------------------------------------
  55. %prep
  56. rm -rf ${RPM_BUILD_ROOT}
  57. %setup -q %{name}-%{version}
  58. %build
  59. %configure --with-x
  60. make
  61. %install
  62. %makeinstall
  63. ### make prefix=${RPM_BUILD_ROOT}%{_prefix} install
  64. #### Before Pack save
  65. ## cp ./cmemocfg12.inst ${RPM_BUILD_ROOT}/usr/bin
  66. # install desktop files
  67. desktop-file-install \
  68. --vendor=vine \
  69. --dir=${RPM_BUILD_ROOT}/%{_datadir}/applications \
  70. %{SOURCE1}
  71. # check desktop files
  72. %check
  73. desktop-file-validate \
  74. ${RPM_BUILD_ROOT}%{_datadir}/applications/vine-cmemo2.desktop
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT
  77. #----------------------------------------------------------------------------
  78. ## %{_datadir}=/usr/share ,%{_bindir}=/usr/bin, %{_prefix}=/usr
  79. %files
  80. %doc ABOUT-NLS COPYING INSTALL
  81. %doc doc/00ADD_cmemo.txt
  82. %doc doc/AUTHORS*
  83. %doc doc/ChangeLog*
  84. %doc doc/INSTALL*
  85. %doc doc/KNOWN_BUGS
  86. %doc doc/Manual.txt
  87. %doc doc/NEWS*
  88. %doc doc/README*
  89. %doc doc/TODO.ja
  90. %doc doc/Usage.ja
  91. %doc doc/org-*
  92. %doc doc/rgbhex.txt
  93. %defattr(-, root, root)
  94. %{_bindir}/cmemo
  95. %{_datadir}/locale/*/LC_MESSAGES/cmemo.mo
  96. %{_datadir}/applications/*.desktop
  97. %{_datadir}/cmemo/po_org.tar.gz
  98. %{_datadir}/cmemo/cmemo2*
  99. %{_datadir}/cmemo/cmemo*.patch
  100. %{_datadir}/cmemo/dot.*
  101. %attr(755,root,root) %{_datadir}/cmemo/cmemocfg.inst
  102. ## %docdir directry-name
  103. #----------------------------------------------------------------------------
  104. %post
  105. #if [ "$LANG" = "ja_JP.eucJP" ]; then
  106. if [ "$LANG" = "ja_JP.UTF-8" ]; then
  107. echo "Cmemoをインストールしていただきありがとうございます。データ"
  108. echo "ディレクトリ(標準で %{_prefix}/share/cmemo/)の cmemocfg.inst"
  109. echo "を各ユーザー毎に実行し ~/.cmemo 設定ファイルをコピーしてください"
  110. else
  111. echo "Cmemo installed, Thank you. Please run script "
  112. echo "(default: %{_prefix}/share/cmemo/)cmemocfg.inst ,"
  113. echo "copy your ~/.cmemo config file."
  114. fi
  115. #----------------------------------------------------------------------------
  116. %changelog
  117. * Sat Jun 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-5
  118. - rebuild with current VineSeed environment
  119. - add BuildRequires: desktop-file-utils
  120. * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 2.1.4-4
  121. - changed locale condition at %%post
  122. * Fri Aug 29 2008 Seiichirou Babasaki 2.1.4-3
  123. - Changes directory tree.
  124. - Updated configure.ac , Makefile.am .
  125. - Updated specfile (vl, vs, and zon)
  126. - "--prefix=/usr" option enabled.
  127. - added "--enable-openbsd" swtich.(no test yet)
  128. - added 00ADD_cmemo.txt(ja)
  129. * Fri Aug 22 2008 Seiichirou Babasaki 2.1.4-2
  130. - Updated cmemocfg.inst Script .
  131. - Updated specfile (vl and zon)
  132. - localedir chenges /usr/local -> /usr (src/cme_def.h)
  133. - Update to 2.1.4
  134. - Updated cmemo.po
  135. * Wed Feb 08 2008 Seiichirou Babasaki 2.1.3-1zon5
  136. - Import cmemo - Packager: Babasaki
  137. - Updated specfile
  138. - Update to 2.1.3
  139. #---------------------#
  140. * Sat Feb 09 2003 MATSUMURA tomohiro <seiwn@excite.co.jp>
  141. - some fix
  142. * Thu Aug 29 2002 MATSUMURA tomohiro <seiwn@excite.co.jp>
  143. - version up 1.2.3
  144. * Wed Apr 03 2002 MATSUMURA tomohiro <seiwn@excite.co.jp>
  145. - version up 1.2.2
  146. * Tue Mar 12 2002 MATSUMURA tomohiro <seiwn@excite.co.jp>
  147. - update cmemo.inst script
  148. * Fri Mar 08 2002 MATSUMURA tomohiro <seiwn@excite.co.jp>
  149. - fix failing to install on non-GNUgettext system.
  150. * Fri Feb 01 2002 MATSUMURA tomohiro <seiwn@excite.co.jp>
  151. - version up 1.2.1 automake/autoconf version
  152. - fix failing to install on non-GNUgettext system.
  153. * Sun Dec 23 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  154. - version up 1.2.0 automake/autoconf version
  155. * Tue Nov 27 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  156. - version up 1.2.0
  157. * Mon Oct 15 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  158. - version up 1.1.11
  159. - and some fix
  160. * Sun Oct 7 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  161. - version up 1.1.10
  162. * Fri Sep 29 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  163. - fix some error
  164. * Sun Sep 23 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  165. - version up 1.1.9
  166. * Sun Sep 23 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  167. - version up 1.1.8
  168. * Mon Sep 17 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  169. - fix locale error
  170. * Sun Sep 16 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  171. - Cmemo and Cmemo-ext, to share Makefile and spec.
  172. - This modify is experiment for preraring next version.
  173. * Sat Aug 18 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  174. - version up 1.1.7
  175. * Sun Jul 15 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  176. - version up 1.1.6
  177. * Mon Jul 2 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  178. - version up 1.1.5
  179. * Sun Jun 24 2001 MATSUMURA tomohiro <seiwn@excite.co.jp>
  180. - version up 1.1.4