-
Notifications
You must be signed in to change notification settings - Fork 0
/
tuxtype_preview.spec
181 lines (143 loc) · 5.27 KB
/
tuxtype_preview.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
## tuxtype_preview.spec.in - process with configure to fill in current
## PACKAGE and VERSION strings
#
#
# spec file for package tuxtype_preview
#
# This specfile version produces rpm packages with "tuxtype_preview"
# in the name, rather than "tuxtype". The tuxtype program is installed
# identically with either specfile. This flavor is intended for pre-release
# builds.
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: tuxtype_preview
Version: 1.8.3
Obsoletes: tuxtype <= 1.8.3
Provides: tuxtype = 1.8.3
%define realname tuxtype
%define progname tuxtype
Summary: Typing tutor for children
Url: http://alioth.debian.org/projects/tux4kids/
License: GNU General Public License (GPL) v2, Creative Commons Attribution ShareAlike 3.0, Public Domain
Group: Amusements/Teaching/Language
Release: 1
Vendor: openSUSE-Education
Source: %realname-%version.tar.bz2
BuildRequires: SDL_image-devel >= 1.2.2
#BuildRequires: SDL_ttf-devel > 2.0.8
BuildRequires: SDL-devel
BuildRequires: SDL_mixer-devel
#BuildRequires: SDL_net-devel
BuildRequires: SDL_Pango-devel
#BuildRequires: librsvg2-devel
BuildRequires: ImageMagick
%if 0%{?suse_version}
BuildRequires: update-desktop-files
BuildRequires: fdupes
%endif
%if 0%{?fedora_version}
BuildRequires: desktop-file-utils
%endif
%if 0%{?mandriva_version}
BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%endif
%if 0%{?mandriva_version} >= 2009
BuildRequires: pulseaudio-esound-compat
%endif
BuildRoot: %{_tmppath}/%{progname}-%{version}-build
%description
Tux Typing is an educational typing tutor game starring Tux, the Linux
penguin. It is designed to be entertaining for children, but can be used
by all ages to improve typing skills. Tux Typing includes two video game-style activities that give practice typing individual characters and words. There
is also a phrase typing activity that provides practice with phrases and sentences, with on-screen display of accuracy and typing speed.
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.
Authors:
--------
Current maintainer and programming lead:
David Bruce <davidstuartbruce@gmail.com>
Holger Levsen <holger@debian.org>
Jesse Andrews <jdandr2@uky.edu>
Calvin Arndt <calarndt@tux4kids.org>
Sam Hart <hart@geekcomix.com>
Jacob Greig <bombastic@firstlinux.net>
Sreyas Kurumanghat <k.sreyas@gmail.com>
Sreerenj Balachandran <bsreerenj@gmail.com>
Vimal Ravi <vimal_ravi@rediff.com>
Prince K. Antony <prince.kantony@gmail.com>
Mobin Mohan <mobinmohan@gmail.com>
Matthew Trey <tux4kids@treyhome.com>
Sarah Frisk <ssfrisk@gmail.com>
Caroline Ford <secretlondon@googlemail.com>
# prep section: ---------------------------------------------------------
%prep
%setup -q -n %realname-%version
rm -rf $(find . -type d -name CVS)
rm -rf $(find . -type d -name .svn)
rm -rf $(find . -type d -name .xvpics)
# build section: ---------------------------------------------------------
%build
%configure --disable-rpath \
--prefix=%_prefix \
--localstatedir=%_localstatedir/games \
--sysconfdir=%_sysconfdir \
--without-rsvg
make %{?jobs:-j %jobs}
# install section: ---------------------------------------------------------
%install
install -d %buildroot/%_bindir
install -d %buildroot/%_datadir/pixmaps
install -d %buildroot/%_datadir/applications
install -d %buildroot/%_datadir/%progname
install -d %buildroot/%_defaultdocdir/%progname
make DESTDIR=%{buildroot} install
install -m 644 data/images/icons/icon.png %buildroot%_datadir/pixmaps/%progname.png
%if 0%{?suse_version}
# handle special docdir path
mv %buildroot/%_datadir/doc/%progname/* %buildroot/%_defaultdocdir/%progname/
rm -rf %buildroot/%_datadir/doc/%progname
# install desktop file
%suse_update_desktop_file -i %progname Education Languages
%fdupes -s %buildroot
%endif
%if 0%{?fedora_version}
# install desktop file
desktop-file-install --vendor="%{vendor}" \
--dir=%buildroot/%_datadir/applications \
%progname.desktop
%endif
%if 0%{?mandriva_version}
desktop-file-install --vendor="%{vendor}" \
--dir=%buildroot/%_datadir/applications \
%progname.desktop
%endif
# remove invalid locale directories
rm -rf %buildroot/%{_datadir}/locale/en@*
%find_lang %progname
%if 0%{?mandriva_version}
%post
%{update_menus}
%postun
%{clean_menus}
%endif
%clean
rm -rf %buildroot
# files section: ---------------------------------------------------------
%files -f %progname.lang
%defattr(-,root,root)
%doc %_defaultdocdir/%progname
%_bindir/*
%_datadir/pixmaps/*
%_datadir/applications/*
%_datadir/%progname
%attr(755, root, root) %_sysconfdir/%progname
# create game state directories modifiable by members of "games" group:
#%attr(2755, root, games) %_localstatedir/games/%progname
# Perhaps only the words dir needs to have the non-default permissions:
%_localstatedir/games/%progname
%attr(2755, root, games) %_localstatedir/games/%progname/words
%changelog