]> git.pld-linux.org Git - packages/rogue.git/blob - rogue.spec
- added guidebook
[packages/rogue.git] / rogue.spec
1 Summary:        The game that started roguelike genre.
2 Summary(pl):    Gra, która zapocz±tkowa³a gatunek roguelike.
3 Name:           rogue
4 Version:        5.3
5 Release:        6
6 License:        GPL
7 Group:          Applications/Games
8 Source0:        http://yarws.kid.waw.pl/files/%{name}.tar.z
9 Source1:        %{name}.desktop
10 Source2:        %{name}.png
11 Source3:        http://yarws.kid.waw.pl/files/%{name}_spoiler.zip
12 Source4:        http://home.wanadoo.nl/loche/rogue/guide.txt
13 Patch0:         %{name}-rip_time.patch
14 Patch1:         %{name}-ldflags.patch
15 URL:            http://home.wanadoo.nl/loche/rogue/
16 BuildRequires:  ncurses-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _bindir         /usr/games
20 %define         _datadir        /var/games/rogue
21
22 %description
23 A Dungeons-and-Dragons-like game using character graphics, written
24 under BSD Unix and subsequently ported to other Unix systems. The
25 original BSD `curses(3)' screen-handling package was hacked together
26 by Ken Arnold primarily to support games, and the development of
27 `rogue(6)' popularized its use. Nethack, Omega, Larn, Angband, and an
28 entire subgenre of computer dungeon games (all known as `roguelikes')
29 all took off from the inspiration provided by `rogue(6)'; the popular
30 Windows game Diablo, though graphics-intensive, has very similar play
31 logic.
32
33 %description -l pl
34 Gra czerpi±ca z Dungeons and Dragons u¿ywaj±ca znakowej grafiki,
35 napisana pod Uniksem BSD, a nastêpnie portowana na inne systemy
36 Uniksowe. Pocz±tkowa biblioteka obs³ugi ekranu 'curses (3)' by³a
37 hackowana wspólnie z Kenem Arnoldem g³ównie by wspieraæ gry, a rozwój
38 'rogue (6)' spopularyzowa³ j±. Nethack, Omega, Larn, Angband i ca³y
39 podgatunek lochowych gier komputerowych (znanych jako 'roguelike')
40 czerpi± inspiracjê z 'rogue (6)'. Popularna gra Diablo, mimo ogromnego
41 ³adunku grafiki, ma bardzo podobn± logikê gry.
42
43 %package spoilers
44 Summary:        Spoilers for rogue
45 Summary(pl):    Psuje dla rogue
46 Group:          Applications/Games
47
48 %description spoilers
49 Spoilers for rogue.
50
51 %description spoilers -l pl
52 Psuje dla rogue.
53
54 %prep
55 %setup -a3 -q -c %{name}-%{version}
56 %patch0 -p1
57 %patch1 -p0
58
59 %build
60 for i in *.[ch]
61 do
62         cat $i | sed 's/^#ifdef CURSES/#if 0/g' > $i.new
63         cat $i.new | sed 's/^#ifndef CURSES/#if 1/g' > $i
64         rm $i.new
65 done
66 cat instruct.c | sed 's@%{_prefix}/games@%{_prefix}/share/doc/%{name}-%{version}@' > instruct.c.new
67 cat score.c | sed 's@%{_prefix}/games@%{_datadir}@' > score.c.new
68 mv -f instruct.c.new instruct.c
69 mv -f score.c.new score.c
70
71 %{__make} CC="%{__cc}" \
72         CFLAGS="%{rpmcflags} -DUNIX -DUNIX_SYS5 -I%{_includedir}/ncurses -c" \
73         LDFLAGS="%{rpmldflags} -lncurses"
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_applnkdir}/Games/Roguelike,%{_pixmapsdir}}
78
79 install rogue $RPM_BUILD_ROOT%{_bindir}
80
81 touch $RPM_BUILD_ROOT%{_datadir}/rogue.scores
82
83 cp %{SOURCE4} .
84 gzip -9nf README guide.txt
85 gzip -9nf rogue.[drsw]*
86
87 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Roguelike
88 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
94 %defattr(644,root,root,755)
95 %attr(2755,root,games) %{_bindir}/*
96 %attr(2775,root,games) %dir %{_datadir}
97 %attr(664,root,games) %config(noreplace) %verify(not md5 size mtime) %{_datadir}/rogue.scores
98
99 # don't gzip rogue.instr!
100 %doc usr/games/rogue.instr README.gz guide.txt.gz
101
102 %{_applnkdir}/Games/Roguelike/*
103 %{_pixmapsdir}/*
104
105 %files spoilers
106 %defattr(644,root,root,755)
107 %doc rogue.*.gz
This page took 0.081641 seconds and 3 git commands to generate.