mtpaint-vl.spec 5.8 KB

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