mtpaint-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. Summary: Painting program for creating icons and pixel-based artwork
  2. Summary(ja): アイコンやピクセルベースの描画向けのペイントプログラム
  3. Name: mtpaint
  4. Version: 3.31
  5. Release: 2%{?_dist_release}
  6. License: GPLv3+
  7. Group: Applications/Graphics
  8. URL: http://mtpaint.sourceforge.net/
  9. Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2
  10. Patch: %{name}-3.19-xdg-open.patch
  11. #Patch1: %{name}-3.19-openjpeg.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: gtk2-devel zlib-devel
  14. BuildRequires: libpng-devel giflib-devel libjpeg-devel libtiff-devel
  15. BuildRequires: openjpeg-devel
  16. BuildRequires: desktop-file-utils gettext
  17. %description
  18. mtPaint is a simple painting program designed for creating icons and
  19. pixel-based artwork. It can edit indexed palette or 24 bit RGB images
  20. and offers basic painting and palette manipulation tools. Its main
  21. file format is PNG, although it can also handle JPEG, GIF, TIFF, BMP,
  22. XPM, and XBM files.
  23. %description -l ja
  24. mtPaint はシンプルなアイコンやピクセルベースの画像の作成用に
  25. デザインされたペイントプログラムです。インデックスパレットや
  26. 24ビットカラーの画像を編集することが可能で、基本的なペイント
  27. 機能とパレットの編集ツールを備えています。ファイル形式は PNG
  28. の他にも、JPEG や GIF、TIFF、BMP、XPM、XBM等が扱えます。
  29. %prep
  30. %setup -q
  31. %patch -p1
  32. #%patch1 -p1
  33. # We have moved docs
  34. %{__sed} -i 's,"/usr/doc/mtpaint/index.html","%{_docdir}/%{name}-handbook-%{version}/index.html",' src/png.c
  35. %build
  36. # This is not a "normal" configure
  37. %configure cflags asneeded intl man gtk2 tiff jpeg GIF
  38. %{__make} %{?_smp_mflags}
  39. %install
  40. %{__rm} -rf %{buildroot}
  41. %{__make} install MT_PREFIX=%{buildroot}%{_prefix} \
  42. MT_MAN_DEST=%{buildroot}%{_mandir}/man1 \
  43. MT_LANG_DEST=%{buildroot}%{_datadir}/locale \
  44. BIN_INSTALL=%{buildroot}%{_bindir}
  45. # install .desktop
  46. cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF
  47. [Desktop Entry]
  48. Version=1.0
  49. Encoding=UTF-8
  50. Type=Application
  51. Name=%{name}
  52. GenericName=Image Editor
  53. GenrricName[ja]=イメージエディタ
  54. Comment=Painting program to create pixel art and manipulate digital photos
  55. Comment[ja]=ピクセルアートやデジタル写真の加工を行います
  56. TryExec=%{name}
  57. Exec=%{_bindir}/%{name} %%F
  58. Icon=mtpaint
  59. Terminal=false
  60. Categories=Graphics;2DGraphics;RasterGraphics;GTK;
  61. MimeType=image/bmp;image/x-bmp;image/gif;image/jpeg;\
  62. image/jpg;image/pjpeg;image/png;image/x-png;image/tiff;\
  63. image/x-tga;image/xbm;image/x-xbm;image/x-xbitmap;\
  64. image/xpm;image/x-xpm;image/x-xpixmap;
  65. EOF
  66. %find_lang %{name}
  67. %clean
  68. %{__rm} -rf %{buildroot}
  69. %post
  70. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  71. if [ -x %{_bindir}/update-desktop-database ] ; then
  72. %{_bindir}/update-desktop-database &> /dev/null
  73. fi
  74. exit 0
  75. %postun
  76. if [ $1 -eq 0 ] ; then
  77. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  78. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  79. fi
  80. if [ -x %{_bindir}/update-desktop-database ] ; then
  81. %{_bindir}/update-desktop-database &> /dev/null
  82. fi
  83. exit 0
  84. %posttrans
  85. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  86. %files -f %{name}.lang
  87. %defattr(-, root, root, -)
  88. %doc COPYING NEWS README
  89. %{_mandir}/man1/%{name}*
  90. %{_bindir}/%{name}
  91. %{_datadir}/applications/*.desktop
  92. %{_datadir}/pixmaps/%{name}.png
  93. %changelog
  94. * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.31-2
  95. - rebuilt with openjpeg-1.4
  96. * Thu Mar 11 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 3.31-1
  97. - initial build for Vine Linux based on fedora development
  98. * Wed Aug 19 2009 Christoph Wickert <cwickert@fedoraproject.org> - 3.31-1
  99. - Update to 3.31
  100. - Make handbook package noarch
  101. - New gtk-update-icon-cache scriptlets
  102. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21-3
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  104. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21-2
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  106. * Fri Aug 15 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.21-1
  107. - 3.21
  108. - add %%defattr on handbook
  109. * Sat Feb 9 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.20-3
  110. - Rebuild
  111. * Wed Jan 23 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.20-2
  112. - Unzip by %%setup
  113. - Simplify %%post/postun
  114. - Added COPYING to handbook
  115. * Sat Dec 29 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.20-1
  116. - 3.20
  117. - include patch now upstream
  118. - handbook patch now upstream
  119. * Wed Dec 19 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.20-0.1.rc2
  120. - 3.20RC2
  121. - disable openjpeg support
  122. - icon and desktop file now upstream
  123. * Sun Dec 16 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.19-1
  124. - upgrade to 3.19
  125. - misc fixes to be rpmlint clean
  126. - fix debuginfo package
  127. - handle translations
  128. - fix license
  129. - compile with correct flags
  130. - add patch to compile
  131. - add handbook subpackage (and fix app to find docs)
  132. - add xdg-open patch
  133. - dont' use %%makeinstall
  134. - add icon and mimetypes to desktop file
  135. * Mon Apr 16 2007 Dries Verachtert <dries@ulyssis.org> - 3.11-1 - 5280/dries
  136. - Updated to release 3.11.
  137. * Sun Nov 12 2006 Dries Verachtert <dries@ulyssis.org> - 3.02-1
  138. - Updated to release 3.02.
  139. * Mon Aug 07 2006 Dries Verachtert <dries@ulyssis.org> - 3.01-1
  140. - Updated to release 3.01.
  141. * Wed May 31 2006 Dries Verachtert <dries@ulyssis.org> - 2.31-1
  142. - Updated to release 2.31.
  143. * Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.30-1.2
  144. - Rebuild for Fedora Core 5.
  145. * Wed Mar 01 2006 Dries Verachtert <dries@ulyssis.org> - 2.30-1
  146. - Updated to release 2.30.
  147. * Sun Jan 01 2006 Dries Verachtert <dries@ulyssis.org> - 2.20-1
  148. - Updated to release 2.20.
  149. * Mon Nov 21 2005 Dries Verachtert <dries@ulyssis.org> - 2.10-1
  150. - Updated to release 2.10.
  151. * Sat Sep 24 2005 Dries Verachtert <dries@ulyssis.org> - 2.03-1
  152. - Updated to release 2.03.
  153. * Tue Sep 20 2005 Dries Verachtert <dries@ulyssis.org> - 2.02-1
  154. - Initial package.