source: projects/specs/trunk/t/tuxtype2/tuxtype2-vl.spec @ 9139

Revision 9139, 2.9 KB checked in by Takemikaduchi, 9 years ago (diff)

dvipng, tuxtype2: rebuild
others: new upstream release

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