]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tiles # build non-tiles version | |
4 | # | |
5 | Summary: stone soup :: crawl clone | |
6 | Summary(pl.UTF-8): stone soup :: klon crawla | |
7 | Name: stone_soup | |
8 | Version: 0.9.1 | |
9 | Release: 2 | |
10 | License: Nethack Like | |
11 | Group: X11/Applications/Games | |
12 | Source0: http://downloads.sourceforge.net/crawl-ref/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: 9dc4043b43f69461a44af1cb1480dd5e | |
14 | Source1: %{name}.desktop | |
15 | Patch0: %{name}-systemlua.patch | |
16 | Patch1: %{name}-makefile.patch | |
17 | Patch2: %{name}-tiles.patch | |
18 | Patch3: %{name}-link.patch | |
19 | URL: http://crawl.develz.org/ | |
20 | %if %{with tiles} | |
21 | BuildRequires: OpenGL-GLU-devel | |
22 | BuildRequires: OpenGL-devel | |
23 | %endif | |
24 | %{?with_tiles:BuildRequires: SDL_image-devel} | |
25 | BuildRequires: bison | |
26 | BuildRequires: cal3d-devel | |
27 | BuildRequires: flex | |
28 | %{?with_tiles:BuildRequires: freetype-devel} | |
29 | %{?with_tiles:BuildRequires: libpng-devel} | |
30 | BuildRequires: lua51-devel | |
31 | BuildRequires: ncurses-devel | |
32 | BuildRequires: perl-base | |
33 | BuildRequires: pkgconfig | |
34 | BuildRequires: sqlite3-devel | |
35 | BuildRequires: which | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Dungeon Crawl Stone Soup is a fun, free rogue-like game of exploration | |
40 | and treasure-hunting in dungeons filled with dangerous and unfriendly | |
41 | monsters in a quest for the mystifyingly fabulous Orb of Zot. | |
42 | ||
43 | Dungeon Crawl Stone Soup is a variant of Linley's Dungeon Crawl that's | |
44 | openly developed and invites participation from the Crawl community. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Dungeon Crawl Stone Soup jest zabawną darmową grą typu roguelike, w | |
48 | której gracz zwiedza świat poszukując skarbów w lochach pełnych | |
49 | niebezpiecznych i nieprzyjaznych potworów w celu odnalezienia | |
50 | tajemniczej baśniowej Kuli Zota. | |
51 | ||
52 | Dungeon Crawl Stone Soup jest wariantem gry Dungeon Crawl stworzonej | |
53 | przez Linleya. Jest on otwarcie rozwijany również przez społeczeństwo | |
54 | Crawla. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | %patch0 -p1 | |
59 | %patch1 -p1 | |
60 | %if %{with tiles} | |
61 | %patch2 -p1 | |
62 | %else | |
63 | %patch3 -p1 | |
64 | %endif | |
65 | ||
66 | %build | |
67 | %{__make} -C source \ | |
68 | prefix="%{_prefix}" \ | |
69 | SAVEDIR="/var/games/stone_soup/" \ | |
70 | DATADIR="%{_datadir}/stone_soup/" \ | |
71 | %{?with_tiles:TILES="y"} \ | |
72 | V="y" \ | |
73 | CXX="%{__cxx}" \ | |
74 | OPTFLAGS="%{rpmcxxflags}" \ | |
75 | LDFLAGS="%{rpmldflags}" | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
80 | ||
81 | %{__make} -C source install \ | |
82 | prefix="%{_prefix}" \ | |
83 | bin_prefix="bin" \ | |
84 | SAVEDIR="/var/games/stone_soup/" \ | |
85 | DATADIR="%{_datadir}/stone_soup/" \ | |
86 | %{?with_tiles:TILES="y"} \ | |
87 | V="y" \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
91 | cp -a source/dat/tiles/stone_soup_icon-32x32.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc CREDITS.txt README.* docs | |
99 | %attr(2755,root,games) %{_bindir}/%{name} | |
100 | %{_datadir}/%{name} | |
101 | %attr(775,root,games) %dir /var/games/%{name} | |
102 | %{_desktopdir}/%{name}.desktop | |
103 | %{_pixmapsdir}/%{name}.png |