mtpaint-vl.spec 6.1 KB

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