cmemo-vl.spec 7.1 KB

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