1 |
Summary: Nice tetris clone |
2 |
Name: ltris |
3 |
Epoch: 1 |
4 |
Version: 1.3 |
5 |
Release: %mkrel 1 |
6 |
License: GPLv2+ |
7 |
Group: Games/Arcade |
8 |
Url: https://lgames.sourceforge.net/index.php?project=LTris |
9 |
Source0: https://prdownloads.sourceforge.net/lgames/%{name}-%{version}.tar.gz |
10 |
BuildRequires: pkgconfig(sdl) |
11 |
BuildRequires: pkgconfig(SDL_mixer) |
12 |
BuildRequires: imagemagick |
13 |
BuildRequires: desktop-file-utils |
14 |
|
15 |
%description |
16 |
o Tetris clone using SDL |
17 |
o Sound |
18 |
o Menu |
19 |
o Controls can be redefined |
20 |
o Block preview |
21 |
o Starting level between 0 and 9 |
22 |
o Various backgrounds |
23 |
o HighScores |
24 |
o Nice graphics |
25 |
o Smooth gameplay |
26 |
o Cool effects (transparency, animations) |
27 |
o Two player mode |
28 |
o Two game modes |
29 |
|
30 |
%prep |
31 |
%setup -q |
32 |
|
33 |
%build |
34 |
export CFLAGS=$(echo "%{optflags} -fgnu89-inline" | sed "s/-Werror=format-security//") |
35 |
%configure --localstatedir=%{_localstatedir}/games \ |
36 |
--bindir=%{_gamesbindir} |
37 |
%make_build |
38 |
|
39 |
%install |
40 |
%make_install |
41 |
|
42 |
# better icons |
43 |
mkdir -p %{buildroot}{%{_liconsdir},%{_miconsdir}} |
44 |
convert icons/%{name}48.xpm %{buildroot}%{_liconsdir}/%{name}.png |
45 |
convert icons/%{name}32.xpm %{buildroot}%{_iconsdir}/%{name}.png |
46 |
convert icons/%{name}16.xpm %{buildroot}%{_miconsdir}/%{name}.png |
47 |
|
48 |
%find_lang %{name} |
49 |
|
50 |
%files -f %{name}.lang |
51 |
%doc README INSTALL AUTHORS ChangeLog |
52 |
%attr(2755, root, games) %{_gamesbindir}/* |
53 |
%config(noreplace) %attr(664, games, games) %{_localstatedir}/games/%{name}.hscr |
54 |
%{_datadir}/%{name} |
55 |
%{_datadir}/applications/%{name}.desktop |
56 |
%{_iconsdir}/%{name}.png |
57 |
%{_iconsdir}/hicolor/apps/%{name}.png |
58 |
%{_miconsdir}/%{name}.png |
59 |
%{_liconsdir}/%{name}.png |