1 %define _ver %(echo %{version} | tr -d .)
2 Summary: Very popular rogue-like adventure game
3 Summary(pl.UTF-8): Bardzo popularna tekstowa gra przygodowa
9 Group: Applications/Games
10 Source0: http://www.adom.de/adom/download/linux/%{name}-%{_ver}-elf.tar.gz
11 # Source0-md5: 801484ba7c7c03b3b999365bc45db053
12 Source1: %{name}.desktop
14 URL: http://www.adom.de/
15 Requires: groups(games)
16 ExclusiveArch: %{ix86}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _scoredir /var/games/adom
22 ADOM stands for Ancient Domains of Mystery. ADOM is a so-called
23 rogue-like game. This means that it is a single-user game which allows
24 you to play the role of an intrepid adventurer exploring a large
25 dungeon with some specific goal in mind. The graphics in the game are
26 based on simple text characters and the game is controlled with a
27 large number of keyboard commands.
29 %description -l pl.UTF-8
30 ADOM to skrót od "Ancient Domains of Mystery". ADOM to tak zwana gra
31 rogue-podobna. To znaczy, że jest to gra dla jednej osoby, która
32 pozwala na wcielenie się w postać poszukiwacza przygód przeszukującego
33 olbrzymie podziemia próbując wypełnić pewną misję. Grafika w grze jest
34 oparta na prostym trybie tekstowym, a sama gra jest kontrolowana przy
35 użyciu dużej liczby poleceń z klawiatury.
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_bindir},%{_scoredir},%{_sysconfdir},%{_desktopdir},%{_pixmapsdir}}
44 install adom $RPM_BUILD_ROOT%{_bindir}
45 touch $RPM_BUILD_ROOT%{_scoredir}/.HISCORE
47 cat > $RPM_BUILD_ROOT%{_sysconfdir}/adom_ds.cfg << EOF
51 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
52 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %attr(2755,root,games) %{_bindir}/adom
60 %attr(775,root,games) %dir %{_scoredir}
61 %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) %{_scoredir}/.HISCORE
62 %{_sysconfdir}/adom_ds.cfg
64 %{_desktopdir}/*.desktop
67 %doc adomfaq.txt manual.doc readme.1st