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