xpaint-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. Summary: An X Window System image editing or paint program.
  2. Summary(ja): Xウィンドウシステム用の画像編集・描写プログラム.
  3. Name: xpaint
  4. Version: 2.7.8.1
  5. Release: 2%{?_dist_release}
  6. License: MIT
  7. Group: Applications/Graphics
  8. URL: http://sf-xpaint.sourceforge.net/
  9. Source: http://prdownloads.sourceforge.net/sf-xpaint/%{name}-%{version}.tar.bz2
  10. ## for 2.5.7
  11. Source1: xpaint-2.5.7-Help_ja
  12. Patch0: xpaint-2.5.7-config.patch
  13. Patch1: xpaint-2.5.7-I18N-mb-1.2.patch
  14. Patch2: xpaint-2.5.7-Imakefile.patch
  15. #Patch3: xpaint-2.5.7-readPNG.patch
  16. #Patch4: xpaint-2.5.7-writePNG.patch
  17. ## for 2.7.8.1
  18. Source2: xpaint-2.7.8.1-XPaint_ja.ad.in
  19. Patch10: xpaint-2.7.8.1-config.patch
  20. Patch11: xpaint-2.7.8.1-Imakefile.patch
  21. Patch12: xpaint-2.7.8.1-xpaint.patch
  22. Patch13: xpaint-2.7.8.1-main.patch
  23. Patch14: xpaint-2.7.8.1-color.patch
  24. Patch15: xpaint-2.7.8.1-Paint.patch
  25. Patch16: xpaint-2.7.8.1-PaintP.patch
  26. Patch17: xpaint-2.7.8.1-fontSelect.patch
  27. Patch18: xpaint-2.7.8.1-fontOp.patch
  28. Patch100: xpaint-2.7.8.1-xpmpath.patch
  29. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  30. BuildPrereq: xorg-x11-devel libtiff-devel zlib-devel
  31. BuildPrereq: libpng-devel >= 1.2.5
  32. BuildPrereq: libjpeg-devel Xaw3d-devel
  33. Obsoletes: xpaint <= 2.5.7-1vl7
  34. %description
  35. XPaint is an X Window System color image editing program which supports
  36. most standard paint program options. XPaint also supports advanced
  37. features like image processing algorithms. XPaint allows you to edit
  38. multiple images simultaneously and supports a variety of image formats,
  39. including PPM, XBM, TIFF, JPEG, etc.
  40. And this xpaint has features extended to deal with Japanese in one's
  41. own right.
  42. Install the xpaint package if you need a paint program for X.
  43. %description -l ja
  44. XPaintはXウィンドウシステム用のカラー画像編集プログラムです. 標準的な
  45. 描写操作はほとんどサポートしています。さらにXPaint は画像処理プログラ
  46. ムといったような発展的な機能も備えています。
  47. XPaintを使って、同時に複数の画像を編集することができ、また、さまざ
  48. まな画像フォーマット(PPM, XBM, TIFF, JPEG等)がサポートされています。
  49. %if 0
  50. そして、このXPaintでは独自に日本語を扱うための機能が拡張されています。
  51. %endif
  52. X用の描写プログラムが必要なら、XPaintパッケージをインストールしま
  53. しょう。
  54. %prep
  55. %setup -q
  56. %if 0
  57. ## for 2.5.7
  58. %patch0 -p1 -b .config
  59. %patch1 -p1 -b .i18n
  60. #%patch2 -p1 -b .Imakefile
  61. #%patch3 -p1 -b .readPNG
  62. #%patch4 -p1 -b .writePNG
  63. %endif
  64. %if 0
  65. ## for 2.7.8.1
  66. cp %SOURCE2 app-defaults/XPaint.ad.in
  67. %patch10 -p1 -b .config
  68. %patch11 -p1 -b .Imakefile
  69. %patch12 -p1 -b .xpaint
  70. %patch13 -p1 -b .main
  71. %patch14 -p1 -b .color
  72. %patch15 -p1 -b .Paint
  73. %patch16 -p1 -b .PaintP
  74. %patch17 -p1 -b .fontSelect
  75. %patch18 -p1 -b .fontOp
  76. %endif
  77. %patch100 -p1 -b .xpmpath
  78. %build
  79. xmkmf
  80. make Makefiles
  81. make
  82. %install
  83. rm -rf $RPM_BUILD_ROOT
  84. make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}/man1 install install.man
  85. ( cd $RPM_BUILD_ROOT
  86. mkdir -p ./etc/X11/wmconfig
  87. cat > ./etc/X11/wmconfig/xpaint <<EOF
  88. xpaint name "xpaint"
  89. xpaint description "Paint Program"
  90. xpaint group Graphics
  91. xpaint exec "xpaint &"
  92. EOF
  93. )
  94. # remove unuse files
  95. rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/X11/app-defaults
  96. %clean
  97. rm -rf $RPM_BUILD_ROOT
  98. %files
  99. %defattr(-,root,root)
  100. %doc ChangeLog README README.PNG TODO Doc
  101. %config %{_sysconfdir}/X11/wmconfig/%{name}
  102. %{_sysconfdir}/X11/app-defaults/XPaint*
  103. %{_bindir}/%{name}
  104. %{_datadir}/%{name}/XPaintIcon.xpm
  105. %{_datadir}/%{name}/c_scripts
  106. %{_datadir}/%{name}/include
  107. %{_datadir}/%{name}/help
  108. %{_datadir}/%{name}/messages
  109. %{_mandir}/man1/xpaint.1x*
  110. %changelog
  111. * Wed Jan 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.7.8.1-2
  112. - add Patch100 to fix include path to the xpm header/library
  113. * Tue Nov 25 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.8.1-1vl5
  114. - new upstream release
  115. - built with libXaw.so.7 (libXaw-1.0.5)
  116. - applied new versioning policy
  117. - spec in utf-8
  118. - dropt xpaint-2.5.7-config.patch
  119. - dropt xpaint-2.5.7-I18N-mb-1.2.patch
  120. - dropt xpaint-2.5.7-Imakefile.patch
  121. - dropt xpaint-2.5.7-readPNG.patch (fixed)
  122. - dropt xpaint-2.5.7-writePNG.patch (fixed)
  123. * Mon Jul 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.7-1vl9
  124. - changed Group to Applications/Graphics
  125. * Thu Jun 14 2007 Shu Konno <owa@bg.wakwak.com> 2.5.7-1vl8
  126. - updated Patch0: xpaint-*-config.patch
  127. - added Patch2: xpaint-2.5.7-Imakefile.patch
  128. - added Patch3: xpaint-2.5.7-readPNG.patch
  129. - added Patch4: xpaint-2.5.7-writePNG.patch
  130. - added BuildPrereq: libjpeg-devel Xaw3d-devel
  131. - dropped Epoc:2
  132. - rebuilt with new toolchain
  133. * Thu Feb 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.7-1vl7
  134. - s/Copyright/License/
  135. - s/Serial/Epoch/
  136. - added BuildPrereq: XOrg-devel libtiff-devel zlib-devel
  137. - added URL
  138. - updated Source location
  139. * Thu Apr 17 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.7-1vl6
  140. - add BuildPrereq: libpng-devel >= 1.2.5
  141. * Thu Jul 13 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  142. - 2.5.7-1vl5
  143. - modified %files section to handle compressed man page
  144. * Thu May 09 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  145. - rebuild for libpng 1.0.5
  146. * Thu Jan 20 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  147. - change ja resource from ja_JP.ujis/app-defaults to ja/app-defaults
  148. * Thu Dec 16 1999 Yasuyuki Furukawa<furukawa@vinelinux.org>
  149. - updated I18N patch to add XGuessFontSetName to the font-selection dialog.
  150. - corrected font settings.
  151. * Fri Oct 15 1999 Yasuyuki Furukawa<furukawa@vinelinux.org>
  152. - updated to 2.5.7 from 2.4.7
  153. - add I18N patch and delete glibc patch
  154. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  155. - auto rebuild in the new build environment (release 8)
  156. * Thu Dec 17 1998 Michael Maher <mike@redhat.com>
  157. - built package for 6.0
  158. * Mon Aug 3 1998 Jeff Johnson <jbj@redhat.com>
  159. - build root.
  160. * Tue Jun 09 1998 Mike Wangsmo <wanger@redhat.com>
  161. - changed the docs from being %config files.
  162. * Fri May 01 1998 Prospector System <bugs@redhat.com>
  163. - translations modified for de, fr, tr
  164. * Thu Apr 16 1998 Erik Troan <ewt@redhat.com>
  165. - built against libpng 1.0
  166. * Fri Oct 24 1997 Marc Ewing <marc@redhat.com>
  167. - new release
  168. - wmconfig
  169. * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
  170. - build against new libpng
  171. * Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
  172. - built against glibc
  173. * Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
  174. - "make install.man" places man page in wrong location