~vcs-imports/tuxtype/trunk

« back to all changes in this revision

Viewing changes to tuxtype_preview.spec.in

  • Committer: dbruce-guest
  • Date: 2009-03-12 02:43:29 UTC
  • Revision ID: vcs-imports@canonical.com-20090312024329-axpcu5xcjsg1gc4v
tweaks of desktop file, specfiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
%define         realname @PACKAGE@
24
24
%define         progname tuxtype
25
25
License:        GNU General Public License (GPL) v2, Open Font License v1.1, free (BSD-like) license
26
 
Group:          Amusements/Games/Action/Other
 
26
Group:          Amusements/Teaching/Language
27
27
Version:        @VERSION@
28
28
Release:        1
29
29
Vendor:         openSUSE-Education
59
59
 
60
60
%description
61
61
Tux Typing is an educational typing tutor game starring Tux, the Linux
62
 
penguin.
63
 
 
64
 
In "Fish Cascade" you control Tux as he searches for fish to eat. Fish fall
65
 
from the top of the screen. These fish have letters on them.  Unforunately
66
 
for Tux, eating a fish with a letter on it will cause his stomach to
67
 
become ill, so it is up to you to help Tux eat fish!  By typing the
68
 
letters, it will cause them to disappear so tux can chow down on the
69
 
fish.
70
 
 
71
 
In "Comet Zap" you control Tux as he defends the cities from comets.  To
72
 
protect a city from a comet, type the letter on the comet and it will
73
 
cause Tux to destroy it with a laser! (In case you wondered, Comet Zap
74
 
is an adaptation of the *great* math drill game, "Tux, of Math Command").
75
 
 
76
 
"Phrase Typing" offers practice typing phrases and sentences, with on-
77
 
screen display of accuracy and typing speed.
78
 
 
79
 
"Lessons" is an additional typing activity that we have not yet
80
 
completed. You will find other menu entries for planned features
81
 
that still need to be implemented.
 
62
penguin. It is designed to be entertaining for children, but can be used
 
63
by all ages to improve typing skills. Tux Typing includes two video game-style activities that give practice typing individual characters and words.  There
 
64
is also a phrase typing activity that provides practice with phrases and sentences, with on-screen display of accuracy and typing speed.
 
65
 
 
66
Tux Typing supports all commonly used desktop platforms, and is packaged with translation files and word lists for many (human) languages. The program is capable of displaying essentially the entire Unicode character set.
82
67
 
83
68
Authors:
84
69
--------
96
81
    Mobin Mohan <mobinmohan@gmail.com>
97
82
 
98
83
 
 
84
# prep section: ---------------------------------------------------------
 
85
 
99
86
%prep
100
87
%setup -q -n %realname-%version
 
88
rm -rf $(find . -type d -name CVS)
 
89
rm -rf $(find . -type d -name .svn)
 
90
rm -rf $(find . -type d -name .xvpics)
 
91
 
 
92
 
 
93
 
 
94
# build section: ---------------------------------------------------------
101
95
 
102
96
%build
103
 
%configure --docdir="%{_defaultdocdir}/%{progname}" --disable-rpath
 
97
%configure --disable-rpath
104
98
make %{?jobs:-j %jobs}
105
99
 
106
100
 
 
101
 
 
102
# install section: ---------------------------------------------------------
 
103
 
107
104
%install
108
 
%if 0%{?suse_version} < 1030
109
 
for i in $(find . -progname Makefile ); do
110
 
    sed -i "s#MKDIR_P#mkdir_p#g" $i
111
 
done
112
 
%endif
113
 
 
 
105
install -d %buildroot/{%_bindir,%_datadir/pixmaps,%_datadir/applications,%_datadir/%progname,%_defaultdocdir/%progname}
114
106
make DESTDIR=%{buildroot} install
115
 
# remove unneeded data
116
 
rm -rf %buildroot/usr/doc/tuxtype
117
 
rm -rf %buildroot%_datadir/tuxtype/{autorun.inf,OFL.txt}
118
 
 
119
 
# install desktop file and icon
120
 
mkdir -p %buildroot%_datadir/pixmaps
121
 
convert -scale 48x48 tuxtype.ico %buildroot%_datadir/pixmaps/%progname.png
122
 
rm -rf %buildroot%_datadir/tuxtype/*.ico
 
107
install -m 644 data/images/icons/icon.png %buildroot%_datadir/pixmaps/%progname.png
123
108
 
124
109
%if 0%{?suse_version}
125
 
#install -Dm644 %{SOURCE1} %buildroot%_datadir/applications/%progname.desktop
126
 
%suse_update_desktop_file -i %progname Game KidsGame
127
 
# save some discspace using symlinks
 
110
# handle special docdir path
 
111
mv %buildroot/%_datadir/doc/%progname/* %buildroot/%_defaultdocdir/%progname/
 
112
rm -rf %buildroot/%_datadir/doc/%progname
 
113
# install desktop file
 
114
%suse_update_desktop_file -i %progname Education Languages
128
115
%fdupes -s %buildroot
129
116
%endif
130
 
 
131
117
%if 0%{?fedora_version}
132
118
# install desktop file
133
119
desktop-file-install --vendor="%{vendor}" \
134
120
  --dir=%buildroot/%_datadir/applications \
135
 
  tuxtype.desktop
 
121
  %progname.desktop
136
122
%endif
137
 
 
138
123
%if 0%{?mandriva_version}
139
 
#desktop-file-install --vendor="%{vendor}" \
140
 
#  --dir=%buildroot/%_datadir/applications \
141
 
install -Dm644  tuxtype.desktop %buildroot/%_datadir/applications/%progname.desktop
 
124
desktop-file-install --vendor="%{vendor}" \
 
125
  --dir=%buildroot/%_datadir/applications \
 
126
  %progname.desktop
142
127
%endif
143
 
 
144
 
# grmbl....
145
 
#if [ ! -d %buildroot%{_datadir}/fonts/truetype ]; then
146
 
#       mkdir -p %buildroot%{_datadir}/fonts/truetype
147
 
#       ln -s %{_datadir}/tuxtype/fonts %buildroot%{_datadir}/fonts/truetype/ttf-sil-andika
148
 
#fi
149
 
 
 
128
# remove invalid locale directories
 
129
rm -rf %buildroot/%{_datadir}/locale/en@*
150
130
%find_lang %progname
151
131
 
152
132
%if 0%{?mandriva_version}
160
140
%clean
161
141
rm -rf %buildroot
162
142
 
 
143
 
 
144
 
 
145
# files section: ---------------------------------------------------------
 
146
 
163
147
%files -f %progname.lang
 
148
 
164
149
%defattr(-,root,root)
165
 
#%doc README AUTHORS COPYING ChangeLog TODO 
166
 
%dir %_docdir/%{progname}
167
 
%doc %_docdir/%{progname}/*
168
 
%doc data/sounds/README_SOUNDS.TXT
169
 
%doc data/images/README_IMAGES.TXT
170
 
 
171
 
#%if 0%{?fedora_version}
172
 
#%dir %_docdir/%{progname}
173
 
#%doc %_docdir/%{progname}/*
174
 
#%endif
175
 
 
176
 
%{_bindir}/tuxtype
177
 
%dir %_datadir/tuxtype
178
 
#%dir %_datadir/tuxtype/fonts
179
 
#%dir %{_datadir}/fonts/truetype
180
 
#%dir %{_datadir}/fonts/truetype/ttf-sil-andika
181
 
%_datadir/tuxtype/*
182
 
%_datadir/applications/*%progname.desktop
183
 
%_datadir/pixmaps/%progname.png
184
 
 
185
 
 
186
 
%changelog 
 
150
%doc %_defaultdocdir/%progname
 
151
%_bindir/*
 
152
%_datadir/pixmaps/*
 
153
%_datadir/applications/*
 
154
%_datadir/%progname
 
155
 
 
156
%changelog