xpaint-vl.spec 6.5 KB

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