xpaint-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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: 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. 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
  35. BuildRequires: xorg-x11-devel libtiff-devel zlib-devel
  36. BuildRequires: libpng-devel >= 1.2.5
  37. BuildRequires: libjpeg-devel
  38. BuildRequires: libXaw3dXft-devel
  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. * Mon Oct 07 2013 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.9.9.4-2
  125. - add desktop file
  126. * Sat Oct 05 2013 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.9.9.4-1
  127. - new upstream release
  128. - delete Patch100
  129. - fixed date of changelog
  130. * Wed Jan 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.7.8.1-2
  131. - add Patch100 to fix include path to the xpm header/library
  132. * Tue Nov 25 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.8.1-1vl5
  133. - new upstream release
  134. - built with libXaw.so.7 (libXaw-1.0.5)
  135. - applied new versioning policy
  136. - spec in utf-8
  137. - dropt xpaint-2.5.7-config.patch
  138. - dropt xpaint-2.5.7-I18N-mb-1.2.patch
  139. - dropt xpaint-2.5.7-Imakefile.patch
  140. - dropt xpaint-2.5.7-readPNG.patch (fixed)
  141. - dropt xpaint-2.5.7-writePNG.patch (fixed)
  142. * Mon Jul 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.7-1vl9
  143. - changed Group to Applications/Graphics
  144. * Thu Jun 14 2007 Shu Konno <owa@bg.wakwak.com> 2.5.7-1vl8
  145. - updated Patch0: xpaint-*-config.patch
  146. - added Patch2: xpaint-2.5.7-Imakefile.patch
  147. - added Patch3: xpaint-2.5.7-readPNG.patch
  148. - added Patch4: xpaint-2.5.7-writePNG.patch
  149. - added BuildPrereq: libjpeg-devel Xaw3d-devel
  150. - dropped Epoc:2
  151. - rebuilt with new toolchain
  152. * Thu Feb 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.7-1vl7
  153. - s/Copyright/License/
  154. - s/Serial/Epoch/
  155. - added BuildPrereq: XOrg-devel libtiff-devel zlib-devel
  156. - added URL
  157. - updated Source location
  158. * Thu Apr 17 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.7-1vl6
  159. - add BuildPrereq: libpng-devel >= 1.2.5
  160. * Thu Jul 13 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  161. - 2.5.7-1vl5
  162. - modified %files section to handle compressed man page
  163. * Tue May 09 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  164. - rebuild for libpng 1.0.5
  165. * Thu Jan 20 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  166. - change ja resource from ja_JP.ujis/app-defaults to ja/app-defaults
  167. * Thu Dec 16 1999 Yasuyuki Furukawa<furukawa@vinelinux.org>
  168. - updated I18N patch to add XGuessFontSetName to the font-selection dialog.
  169. - corrected font settings.
  170. * Fri Oct 15 1999 Yasuyuki Furukawa<furukawa@vinelinux.org>
  171. - updated to 2.5.7 from 2.4.7
  172. - add I18N patch and delete glibc patch
  173. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  174. - auto rebuild in the new build environment (release 8)
  175. * Thu Dec 17 1998 Michael Maher <mike@redhat.com>
  176. - built package for 6.0
  177. * Mon Aug 3 1998 Jeff Johnson <jbj@redhat.com>
  178. - build root.
  179. * Tue Jun 09 1998 Mike Wangsmo <wanger@redhat.com>
  180. - changed the docs from being %config files.
  181. * Fri May 01 1998 Prospector System <bugs@redhat.com>
  182. - translations modified for de, fr, tr
  183. * Thu Apr 16 1998 Erik Troan <ewt@redhat.com>
  184. - built against libpng 1.0
  185. * Fri Oct 24 1997 Marc Ewing <marc@redhat.com>
  186. - new release
  187. - wmconfig
  188. * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
  189. - build against new libpng
  190. * Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
  191. - built against glibc
  192. * Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
  193. - "make install.man" places man page in wrong location