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