Eterm-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. %define ver 0.9
  2. Summary: Enlightened terminal emulator
  3. Summary(ja): Enlightened 端末エミュレータ
  4. Name: Eterm
  5. Version: %{ver}
  6. Release: 1%{?_dist_release}
  7. License: BSD
  8. Group: User Interface/X
  9. URL: http://www.eterm.org/
  10. #Source0: ftp://ftp.eterm.org/pub/Eterm/Eterm-%{ver}.tar.gz
  11. #Source1: ftp://ftp.eterm.org/pub/Eterm/Eterm-bg-%{ver}.tar.gz
  12. Source0: http://www.eterm.org/download/Eterm-%{ver}.tar.gz
  13. Source1: http://www.eterm.org/download/Eterm-bg-%{ver}.tar.gz
  14. #patch for vine
  15. Patch100: Eterm-0.9-compoundtext.patch
  16. Patch101: Eterm-0.9-vinefont.patch
  17. Patch102: Eterm-0.9-ja_nls.patch
  18. Patch103: Eterm-0.9-mbwrap.patch
  19. Patch200: Eterm-0.9-config.sub.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. Requires: xorg-x11-libs
  22. Requires: imlib >= 1.9.6
  23. Requires: libpng
  24. Requires: libtiff
  25. Requires: libungif
  26. Requires: zlib
  27. BuildRequires: xorg-x11-devel
  28. BuildRequires: imlib-devel >= 1.9.6
  29. BuildRequires: libpng-devel
  30. BuildRequires: libtiff-devel
  31. BuildRequires: libungif-devel
  32. BuildRequires: zlib-devel
  33. BuildRequires: desktop-file-utils
  34. %description
  35. Eterm is a color vt102 terminal emulator with enhanced graphical
  36. capabilities. Eterm is intended to be a replacement for xterm for
  37. Enlightenment window manager users, but it can also be used as a
  38. replacement for xterm by users without Enlightenment. Eterm supports
  39. various themes and is very configurable, in keeping with the
  40. philosophy of Enlightenment. If you install Eterm, you'll also need to
  41. have the Imlib library installed.
  42. %description -l ja
  43. Etermは先進的なグラフィカル機能を持ったvt102カラー端末エミュレータです。
  44. Etermは、 Enlightenment ウィンドウマネージャ用に、xtermの代替を目的とし
  45. ていますが、 Enlightenmentなしでも、 代替xtermとして利用することもでき
  46. ます。Etermはさまざまなテーマをサポートしており、 Enlightenmentの哲学に
  47. 従って 自由に設定することができます。 Etermをインストールするなら、
  48. Imlibライブラリもインストールする必要があります。
  49. %package backgrounds
  50. Summary: Backgrounds for Eterm
  51. Summary(ja): Eterm用背景画像集
  52. Group: User Interface/X
  53. Requires: Eterm = %{ver}
  54. %description backgrounds
  55. Install this package if you want additional backgrounds for Eterm
  56. %description backgrounds -l ja
  57. Eterm用の追加背景画像が欲しい場合、これをインストールしてください。
  58. %prep
  59. %setup -q -n Eterm-%{ver} 1
  60. %patch100 -p1 -b .compoundtext
  61. %patch101 -p1 -b .vinefont
  62. %patch102 -p1 -b .ja_nls
  63. %patch103 -p1
  64. %patch200 -p1 -b .config.sub
  65. find . -type f -size 0 -print | xargs rm -f
  66. %build
  67. %configure \
  68. --target=%{_arch}-pc-linux-gnu \
  69. --enable-multi-charset \
  70. --enable-trans \
  71. --enable-xim \
  72. --without-sense-of-humor
  73. make
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  77. cat > $RPM_BUILD_ROOT%{_datadir}/applications/Eterm.desktop <<EOF
  78. [Desktop Entry]
  79. Encoding=UTF-8
  80. Name=Eterm
  81. Name[ja]=Eterm 日本語端末
  82. Comment=Enlightened Terminal
  83. Comment[ja]=Enlightened 端末エミュレータ
  84. TryExec=Eterm
  85. Exec=Eterm
  86. Icon=gnome-eterm
  87. Terminal=false
  88. Type=Application
  89. Categories=Utility;TerminalEmulator;
  90. EOF
  91. chmod 0644 $RPM_BUILD_ROOT%{_datadir}/applications/Eterm.desktop
  92. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/Eterm.desktop
  93. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmconfig/
  94. cat > $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmconfig/Eterm <<EOF
  95. Eterm name "Eterm"
  96. Eterm description "A featureful, themeable X11 terminal emulator."
  97. Eterm exec "Eterm &"
  98. Eterm group Utilities/Shells
  99. EOF
  100. chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmconfig/Eterm
  101. %makeinstall
  102. ( cd $RPM_BUILD_ROOT
  103. mv .%{_bindir}/Eterm .%{_bindir}/Eterm-%{ver}
  104. cd $RPM_BUILD_ROOT%{_bindir}
  105. ln -sf Eterm-%{ver} Eterm
  106. cd $RPM_BUILD_ROOT
  107. chmod +x .%{_libdir}/lib*so* ||:
  108. )
  109. (cd $RPM_BUILD_ROOT%{_datadir}/Eterm/pix/ ; \
  110. for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  111. mv $i $i.base ; done)
  112. tar -zxvf %{SOURCE1}
  113. make -C bg all
  114. %makeinstall -C bg
  115. #get the package listing for Eterm-backgrounds
  116. echo "%defattr(-,root,root)" > rpm-Eterm-bg-files
  117. cat > rpm-Eterm-bg-files <<EOF
  118. %defattr(-,root,root)
  119. %{_datadir}/Eterm/pix/tiled-pixmaps.list
  120. %{_datadir}/Eterm/pix/scaled-pixmaps.list
  121. %{_datadir}/Eterm/pix/pixmaps.list
  122. EOF
  123. find ./bg/ -type f -not -name '*.list' -not -name 'Makefile*' \
  124. -not -name 'README*' -not -name 014.jpg \
  125. -not -name 40.jpg -not -name blackstone.jpg -not -name backwave.jpg \
  126. -not -name circuit.jpg -not -name nebula.jpg \
  127. -not -name fourthday.jpg -not -name gaia.jpg \
  128. -not -name galleon.jpg -not -name night_of_the_dragon.jpg \
  129. | sed "s#^\./bg/[scati]*le#%{_datadir}/Eterm/pix#g" >> rpm-Eterm-bg-files
  130. # remove *.la files
  131. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  132. %post
  133. /sbin/ldconfig
  134. update-desktop-database %{_datadir}/applications
  135. (cd %{_datadir}/Eterm/pix;
  136. if [ -f tiled-pixmaps.list.base ] ; then
  137. for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list; do mv -f $i.base $i ; done
  138. else
  139. exit 0
  140. fi
  141. )
  142. %preun
  143. for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  144. rm -f %{_datadir}/Eterm/pix/$i* ; done
  145. %postun
  146. /sbin/ldconfig
  147. update-desktop-database %{_datadir}/applications
  148. %pre backgrounds
  149. for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  150. mv -f %{_datadir}/Eterm/pix/$i %{_datadir}/Eterm/pix/$i.base; done
  151. %preun backgrounds
  152. for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  153. mv -f %{_datadir}/Eterm/pix/$i.base %{_datadir}/Eterm/pix/$i ; done
  154. %clean
  155. rm -rf $RPM_BUILD_ROOT
  156. %files
  157. %defattr(-,root,root)
  158. %doc doc/Eterm_reference.html doc/Eterm.1.html
  159. %doc COPYING README ChangeLog
  160. %config %{_sysconfdir}/X11/wmconfig/Eterm
  161. %config(missingok) %{_datadir}/Eterm/pix/*.list.base
  162. %config %{_datadir}/applications/Eterm.desktop
  163. %{_bindir}/*
  164. %{_libdir}/*.so
  165. %{_libdir}/*.a
  166. %{_mandir}/man1/*
  167. %dir %{_datadir}/Eterm
  168. %{_datadir}/Eterm/themes
  169. %dir %{_datadir}/Eterm/pix
  170. %{_datadir}/Eterm/pix/014.jpg
  171. %{_datadir}/Eterm/pix/40.jpg
  172. %{_datadir}/Eterm/pix/blackstone.jpg
  173. %{_datadir}/Eterm/pix/backwave.jpg
  174. %{_datadir}/Eterm/pix/circuit.jpg
  175. %{_datadir}/Eterm/pix/nebula.jpg
  176. %{_datadir}/Eterm/pix/fourthday.jpg
  177. %{_datadir}/Eterm/pix/gaia.jpg
  178. %{_datadir}/Eterm/pix/galleon.jpg
  179. %{_datadir}/Eterm/pix/night_of_the_dragon.jpg
  180. %{_datadir}/Eterm/pix/bar_horizontal_[123].png
  181. %{_datadir}/Eterm/pix/bar_vertical_[123].png
  182. %{_datadir}/Eterm/pix/button_arrow_up_[123].png
  183. %{_datadir}/Eterm/pix/button_arrow_down_[123].png
  184. %{_datadir}/Eterm/pix/menu[123].png
  185. %files backgrounds -f rpm-Eterm-bg-files
  186. %changelog
  187. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 0.9-1vl5
  188. - applied new versioning policy and spec in utf-8
  189. - added BuildRequires: xorg-x11-devel desktop-file-utils
  190. - removed %{_libdir}/*.la in %%files
  191. - moved Eterm.desktop to %%{_datadir}/applications/
  192. * Sat Sep 01 2007 Shu KONNO <owa@bg.wakwak.com> 0.9-0vl8
  193. - added Patch200: Eterm-0.9-config.sub.patch
  194. * Thu Oct 7 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl7
  195. - fixed Requires: and BuildRequires:
  196. - fixed post and pre scriptlet
  197. - added /etc/X11/applnk/Utilities/Eterm.desktop
  198. * Thu Sep 30 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl6
  199. - rebuild with new toolchains
  200. - s/Copyright/License/
  201. * Fri Nov 30 2001 MATUBARA Kazuyuki <matubara@mb.asmnet.ne.jp> 0.9-0vl5
  202. - fixed a bug of multi byte character wrap
  203. used rpm macros
  204. * Tue Jul 11 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  205. - added ja_nls patch for menu.
  206. * Tue Feb 15 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  207. - modify compoundtext patch to fix a bug to write CUT_BUEFFER without COMPOUND_TEXT.
  208. * Sat Jan 29 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  209. - making noarch rpm for Eterm-backgrounds
  210. - added vinefont and compoundtext patches
  211. * Fri Dec 10 1999 Michael Jennings <mej@eterm.org>
  212. - Added Tim's spec file to CVS as Eterm.spec.in for 0.9
  213. * Wed Dec 8 1999 Tim Powers <timp@redhat.com>
  214. - using unified patch for utempter and themes from Michael Jennings
  215. * Tue Dec 7 1999 Tim Powers <timp@redhat.com>
  216. - added wmconfig entry
  217. - split up into 2 packages, Eterm proper, and Eterm-backgrounds
  218. - thanks to ewt, we no longer have to make Eterm suid root, uses utempter
  219. instead
  220. * Mon Dec 6 1999 Tim Powers <timp@redhat.com>
  221. - updated to 0.8.10
  222. - patched so that Eterm finds pix/themes in the right place
  223. - new version fixes problems with utmp, conforms to Eterm docs.
  224. - added RedHat.Eterm_suid which includes instructions on how to run Eterm in
  225. order to have it seen by "w" and "who" as a regular user
  226. * Fri Aug 20 1999 Tim Powers <timp@redhat.com>
  227. - fixed roblem with removing all files when uninstalling Eterm.
  228. * Tue Jul 27 1999 Tim Powers <timp@redhat.com>
  229. - updated version to 0.8.9
  230. - cleaned up spec
  231. - updated patch
  232. - includes new backgrounds
  233. - built for 6.1
  234. * Mon Apr 05 1999 Michael Maher <mike@redhat.com>
  235. - update to 0.8.8
  236. * Fri Oct 23 1998 Jeff Johnson <jbj@redhat.com>
  237. - update to 0.8.7.
  238. * Fri Oct 08 1998 Michael Maher <mike@redhat.com>
  239. - built eterm