tuxtype2-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %define name tuxtype2
  2. %define version 1.8.1
  3. %define release 2%{?_dist_release}
  4. Summary: An educational typing tutor for children
  5. Summary(ja): 子供向けのタイピング練習ゲーム
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: tuxtype_w_fonts-%{version}.tar.gz
  10. Source1: tuxtype2.desktop
  11. Patch0: tuxtype2-1.8.1-chown.patch
  12. License: GPLv2+
  13. Group: Applications/Games
  14. URL: http://tuxtype.sourceforge.net/
  15. Requires: SDL >= 1.2.5, SDL_image >= 1.2.3
  16. Requires: SDL_mixer >= 1.2.5, SDL_ttf >= 2.0.5
  17. BuildRequires: SDL-devel >= 1.2.5, SDL_image-devel >= 1.2.3
  18. BuildRequires: SDL_mixer-devel >= 1.2.5, SDL_ttf-devel >= 2.0.5
  19. BuildRequires: SDL_Pango-devel
  20. BuildRequires: librsvg2-devel
  21. BuildRequires: ImageMagick
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. Conflicts: tuxtype < 1.0.2
  24. %description
  25. "Tux Typing" is an educational typing tutor for children. It features
  26. several different types of gameplay, at a variety of difficulty levels.
  27. %description -l ja
  28. Tux Typing は,子供向けのタイピング練習ゲームです。数種類の異なるゲームが
  29. 含まれていて、難易度も自由に選ぶことができます。
  30. %prep
  31. %setup -q -n tuxtype_w_fonts-%{version}
  32. %patch0 -p1 -b .chown
  33. rm -rf data/fonts/*.ttf
  34. # fix wrong end of line encoding
  35. sed -i -e 's|\r||g' doc/en/TuxType_port_Mac.txt
  36. #unknow lang
  37. pushd po
  38. mv zh_N.gmo zh_CN.gmo
  39. mv zh_N.po zh_CN.po
  40. popd
  41. # fix gettext version
  42. sed -i "s|0.17|0.18|g" configure.ac
  43. sed -i "s|0.17|0.18|g" aclocal.m4
  44. %build
  45. autoreconf -if
  46. %configure --localstatedir=%{_localstatedir}/games
  47. make %{?_smp_mflags}
  48. %install
  49. rm -rf ${RPM_BUILD_ROOT}
  50. make install DESTDIR=$RPM_BUILD_ROOT
  51. rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
  52. # install menu entry.
  53. install -d $RPM_BUILD_ROOT%{_datadir}/applications
  54. install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/
  55. install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/
  56. convert -size 48x48 tuxtype.ico $RPM_BUILD_ROOT%{_datadir}/pixmaps/tuxtype.png
  57. install -d $RPM_BUILD_ROOT%{_localstatedir}/games/tuxtype
  58. %find_lang tuxtype
  59. %clean
  60. rm -rf ${RPM_BUILD_ROOT}
  61. %files -f tuxtype.lang
  62. %defattr(-,root,root)
  63. %doc AUTHORS COPYING ChangeLog README TODO doc/en/howtotheme.html doc/en/TuxType_port_Mac.txt
  64. %attr(-,root,games) %{_bindir}/tuxtype
  65. %{_datadir}/pixmaps/*
  66. %{_datadir}/applications/*
  67. %{_datadir}/tuxtype
  68. %config(noreplace) %{_sysconfdir}/tuxtype
  69. %attr(0755,root,games) %config(noreplace) %{_localstatedir}/games/tuxtype
  70. %changelog
  71. * Sun Dec 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-2
  72. - rebuild with libpng-1.6.12
  73. * Sun Jul 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  74. - update to 1.8.1
  75. - add BuildRequires: SDL_Pango-devel, librsvg2-devel, ImageMagick
  76. - merge spec file from fedora packages
  77. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 1.5.3-1vl5
  78. - applied new versioning policy, spec in utf-8
  79. * Sat May 07 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.5.3-0vl1
  80. - initial build for VineSeed Plus.