tuxpaint-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. Summary: Drawing program designed for young children
  2. Summary(ja): 子供向けのお絵かきソフトウェア
  3. Name: tuxpaint
  4. Version: 0.9.21
  5. Release: 1%{?_dist_release}
  6. Source0: http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
  7. Patch0: tuxpaint-utf8.patch
  8. Patch1: tuxpaint-0.9.20-fix-desktop-file.patch
  9. Patch2: tuxpaint-0.9.21-fix-puzzle-plugin.patch
  10. License: GPLv2+
  11. Group: Applications/Multimedia
  12. URL: http://www.tuxpaint.org/
  13. BuildRequires: SDL-devel >= 1.2.4
  14. BuildRequires: SDL_image-devel
  15. BuildRequires: SDL_mixer-devel
  16. BuildRequires: SDL_ttf-devel
  17. BuildRequires: SDL_Pango-devel
  18. BuildRequires: desktop-file-utils
  19. BuildRequires: freetype2-devel >= 2.0
  20. BuildRequires: gettext
  21. BuildRequires: libpaper-devel
  22. BuildRequires: libpng-devel
  23. BuildRequires: librsvg2-devel
  24. BuildRequires: netpbm-devel
  25. BuildRequires: fribidi-devel
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. Packager: kazutaka
  28. %description
  29. "Tux Paint" is a free drawing program designed for young children
  30. (kids ages 3 and up). It has a simple, easy-to-use interface,
  31. fun sound effects, and a cartoon mascot who helps you along.
  32. %description -l ja
  33. タックスペイントは、3歳から12歳の子供向けの、フリーのお絵かき
  34. プログラムです。簡単な操作と楽しい効果音を兼ね備え、マスコット
  35. キャラクターが、プログラムを使ってお絵かきをする子供たちの案
  36. 内役を務めます。
  37. 日本語環境で使用する場合は、ボタンの文字や説明文などは、全て
  38. ひらがなやカタカナのみで表示されます。
  39. %package devel
  40. Summary: Development files for tuxpaint extensions/plugins
  41. Group: Development/Libraries
  42. Requires: %{name} = %{version}-%{release}
  43. %description devel
  44. Development files for tuxpaint extensions/plugins
  45. %description devel -l ja
  46. tuxpaint 用の extensions/plugins 開発に必要なファイルです。
  47. %prep
  48. %setup -q
  49. %patch0 -p1
  50. %patch1 -p1 -b .fixdesktopfile
  51. %patch2 -p1 -b .fixpuzzle
  52. sed -i -e '/\/gnome\/apps\/Graphics/d' Makefile
  53. find docs -type f -exec perl -pi -e 's/\r\n/\n/' {} \;
  54. find docs -type f -perm +100 -exec chmod a-x {} \;
  55. make PREFIX=/usr MAGIC_PREFIX=%{_libdir}/tuxpaint/plugins tp-magic-config
  56. %build
  57. make %{?_smp_mflags} \
  58. PREFIX=/usr \
  59. CFLAGS="$RPM_OPT_FLAGS" \
  60. MAGIC_PREFIX=%{_libdir}/tuxpaint/plugins
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. mkdir -p $RPM_BUILD_ROOT/%{_bindir}
  64. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
  65. make install PKG_ROOT=$RPM_BUILD_ROOT PREFIX=%{_usr} \
  66. X11_ICON_PREFIX=$RPM_BUILD_ROOT%{_datadir}/pixmaps/ \
  67. GNOME_PREFIX=/usr \
  68. KDE_PREFIX="" \
  69. KDE_ICON_PREFIX=/usr/share/icons \
  70. MAGIC_PREFIX=$RPM_BUILD_ROOT%{_libdir}/tuxpaint/plugins
  71. find $RPM_BUILD_ROOT -type d|xargs chmod 0755
  72. %find_lang %{name}
  73. desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
  74. --vendor vine \
  75. --add-category KidsGame \
  76. --delete-original \
  77. $RPM_BUILD_ROOT%{_datadir}/applications/tuxpaint.desktop
  78. rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %files -f %{name}.lang
  82. %defattr(-,root,root,-)
  83. %dir %{_sysconfdir}/%{name}
  84. %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
  85. %doc docs
  86. %{_bindir}/*
  87. %{_datadir}/%{name}
  88. %{_datadir}/applications/*
  89. %{_datadir}/pixmaps/*
  90. %{_datadir}/icons/*/*/apps/*
  91. %{_libdir}/%{name}/
  92. %{_mandir}/man1/*
  93. %{_mandir}/*/man1/*
  94. %files devel
  95. %defattr(-,root,root,-)
  96. %doc %{_datadir}/doc/%{name}-dev/
  97. %{_includedir}/tuxpaint/
  98. %changelog
  99. * Sat Oct 10 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.21-1
  100. - new upstream release
  101. - add BuildRequires: fribidi-devel
  102. - add patch2 to fix puzzle plugin error
  103. * Thu May 21 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.20-1
  104. - initial build for Vine Linux based of fedora development
  105. - add japanese summary and description
  106. - add patch2 to fix puzzle plugin
  107. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.20-3
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  109. * Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:0.9.20-2
  110. - Rebuild for Python 2.6
  111. * Mon Sep 8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.9.20-1
  112. - update to 0.9.20
  113. * Mon Sep 8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.9.17-4
  114. - fix license tag
  115. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:0.9.17-3
  116. - Autorebuild for GCC 4.3
  117. * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1:0.9.17-2
  118. - Rebuild for selinux ppc32 issue.
  119. * Sat Jul 07 2007 Steven Pritchard <steve@kspei.com> 1:0.9.17-1
  120. - Update to 0.9.17.
  121. - BR librsvg2-devel and libpaper-devel.
  122. - Add include path for glibconfig.h to CFLAGS.
  123. * Tue Jan 30 2007 Steven Pritchard <steve@kspei.com> 1:0.9.16-4
  124. - Honor $RPM_OPT_FLAGS.
  125. - Fix various rpmlint warnings:
  126. - Expand tabs in spec.
  127. - Convert tuxpaint.1 to UTF-8.
  128. - Get rid of DOS line endings in docs.
  129. - Nothing in docs should be executable.
  130. * Fri Oct 27 2006 Steven Pritchard <steve@kspei.com> 1:0.9.16-3
  131. - Fix category in tuxpaint.desktop.
  132. * Thu Oct 26 2006 Steven Pritchard <steve@kspei.com> 1:0.9.16-2
  133. - Drop "--add-category X-Fedora".
  134. * Tue Oct 24 2006 Steven Pritchard <steve@kspei.com> 1:0.9.16-1
  135. - Update to 0.9.16.
  136. * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.9.15b-4
  137. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  138. * Thu Sep 21 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15b-3
  139. - Explicitly link libpng.
  140. * Mon Aug 28 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15b-2
  141. - Rebuild.
  142. - Update URL.
  143. * Fri Jun 02 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15b-1
  144. - Update to 0.9.15b
  145. - Convert tuxpaint.desktop to UTF-8
  146. - Drop gnome-libs-devel and kdelibs build dependencies by providing
  147. appropriate variables to "make install"
  148. - Add docs properly
  149. - Indirectly require hicolor-icon-theme (so that directories are
  150. owned and have proper permissions)
  151. * Mon Mar 13 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15-1
  152. - Update to 0.9.15
  153. - Drop destdir patch
  154. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1:0.9.13-3
  155. - rebuild on all arches
  156. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  157. - rebuilt
  158. * Wed Jun 09 2004 Warren Togami <wtogami@redhat.com> 1:0.9.13-0.fdr.1
  159. - Epoch bump to override old k12ltsp package
  160. * Mon May 31 2004 Panu Matilainen <pmatilai@welho.com> 0:0.9.13-0.fdr.1
  161. - update to 0.9.13
  162. - take a private copy of desktop file and fix it..
  163. * Sun May 30 2004 Panu Matilainen <pmatilai@welho.com> 0:0.9.12-0.fdr.3
  164. - add missing buildrequires desktop-file-utils (#1667)
  165. * Fri Oct 03 2003 Panu Matilainen <pmatilai@welho.com> 0:0.9.12-0.fdr.2
  166. - add missing buildreq's: kdelibs, gnome-libs-devel, SDL_mixer-devel
  167. - remove CVS directories from rpm
  168. * Tue Aug 26 2003 Panu Matilainen <pmatilai@welho.com> 0:0.9.12-0.fdr.1
  169. - Initial RPM release.