]> git.pld-linux.org Git - packages/abrick.git/blob - abrick.spec
e9fbc80fea6c176478842449add512b900821e86
[packages/abrick.git] / abrick.spec
1 Summary:        Abandoned Bricks is SDL based tetris clone
2 Summary(hu.UTF-8):      Egy Tetris-klón
3 Summary(pl.UTF-8):      Abandoned Bricks to gra typu tetris oparta o SDL
4 Name:           abrick
5 Version:        1.12
6 Release:        1
7 License:        GPL v2
8 Group:          X11/Applications/Games
9 Source0:        http://dl.sourceforge.net/project/abrick/abrick/abrick-1.12/%{name}-%{version}-src.tar.gz
10 # Source0-md5:  56bdb952e2c247abfccf6e4a5251753c
11 Patch0:         %{name}-buildfix.patch
12 Patch1:         %{name}-paths.patch
13 Patch2:         %{name}-usage.patch
14 URL:            http://abrick.sourceforge.net/
15 BuildRequires:  SDL-devel
16 BuildRequires:  SDL_image-devel
17 BuildRequires:  SDL_mixer-devel
18 BuildRequires:  sed >= 4.0
19 Requires:       group(games)
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Abandoned Bricks is yet anonther teris clone. It has SDL-based
24 interface.
25
26 For single player game there are three game modes. In Classic mode you
27 start each level with clean screen. In Challenge mode you start levels
28 with some garbage at bottom, and you only have two brick types
29 (shapes) for the level. In Bastet mode you start levels with clean
30 screen. You always get the worst possible brick for the moment, and
31 next brick preview is not available. You get 20 points for each brick,
32 and high bonuses for lines.
33
34 In two player games (duel), the goal is to remain the only one still
35 playing. When you drop more than one line, the other player gets
36 additional garbage lines at the bottom. For two lines he gets one, for
37 three he gets two and for four he gets three (in short: what you've
38 dropped minus one).
39
40 %description -l pl.UTF-8
41 Abandoned Bricks jest kolejnym klonem gry tetris. Interface gry
42 wykorzystuje bibliotekę SDL.
43
44 Dla jednego gracza są dostępne trzy tryby gry: "Klasyczny" w którym
45 każdy poziom gracz rozpoczyna z czystym ekranem, "Wyzwanie" w którym
46 każdy poziom na początku jest zaśmiecony pewną ilością klocków, oraz
47 są dostępne tylko dwa typy klocków oraz "Bastet" w którym gra dobiera
48 zawsze najgorszy klocek w danej sytuacji.
49
50 Dla dwóch graczy celem gry jest przetrwać w grze dłużej niż
51 przeciwnik. Jeżeli jednemu graczowi uda się usunąć więcej niż jedną
52 linię, przeciwnik otrzymuje dodatkowe śmieci.
53
54 %prep
55 %setup -q -n %{name}-%{version}-src
56
57 # undos sources
58 %{__sed} -i -e 's,\r$,,' *.cpp *.h
59
60 %patch0 -p1
61 %patch1 -p1
62 %patch2 -p1
63
64 %build
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 install -d $RPM_BUILD_ROOT{/var/games/abrick,%{_bindir},%{_datadir}}
71 install abrick $RPM_BUILD_ROOT%{_bindir}/abrick
72 touch $RPM_BUILD_ROOT/var/games/abrick/hiscore.dat
73 cp -a data $RPM_BUILD_ROOT%{_datadir}/abrick
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc CHANGES README
81 %attr(2755,root,games) %{_bindir}/%{name}
82 %{_datadir}/abrick
83 %dir %attr(775,root,games) /var/games/abrick
84 %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) /var/games/abrick/hiscore.dat
This page took 0.085145 seconds and 2 git commands to generate.