cmemo-vl.spec 6.7 KB

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