xpaint-vl.spec 7.0 KB

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