tuxpaint-vl.spec 7.1 KB

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