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