]>
Commit | Line | Data |
---|---|---|
eb6efc22 | 1 | # |
2 | # Conditional build: | |
67a3cbc1 | 3 | %bcond_without tiles # build non-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 |
40e8995e | 8 | Version: 0.9.1 |
411500ad | 9 | Release: 2 |
c0261ea3 | 10 | License: Nethack Like |
d6defb1d | 11 | Group: X11/Applications/Games |
85e1ad64 | 12 | Source0: http://downloads.sourceforge.net/crawl-ref/%{name}-%{version}.tar.bz2 |
40e8995e | 13 | # Source0-md5: 9dc4043b43f69461a44af1cb1480dd5e |
53174541 | 14 | Source1: %{name}.desktop |
c0261ea3 MP |
15 | Patch0: %{name}-systemlua.patch |
16 | Patch1: %{name}-makefile.patch | |
c69b8263 | 17 | Patch2: %{name}-tiles.patch |
67a3cbc1 | 18 | Patch3: %{name}-link.patch |
0949b656 | 19 | URL: http://crawl.develz.org/ |
eb6efc22 | 20 | %if %{with tiles} |
21 | BuildRequires: OpenGL-GLU-devel | |
22 | BuildRequires: OpenGL-devel | |
23 | %endif | |
24 | %{?with_tiles:BuildRequires: SDL_image-devel} | |
c0261ea3 | 25 | BuildRequires: bison |
f317f3bb | 26 | BuildRequires: cal3d-devel |
e3ca8ff9 | 27 | BuildRequires: flex |
eb6efc22 | 28 | %{?with_tiles:BuildRequires: freetype-devel} |
29 | %{?with_tiles:BuildRequires: libpng-devel} | |
6a76b832 | 30 | BuildRequires: lua51-devel |
ce58a0cd | 31 | BuildRequires: ncurses-devel |
ebea2457 | 32 | BuildRequires: perl-base |
33 | BuildRequires: pkgconfig | |
74083b2b | 34 | BuildRequires: sqlite3-devel |
ebea2457 | 35 | BuildRequires: which |
c0261ea3 MP |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
d34b44c8 | 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 | |
032b2137 | 48 | której gracz zwiedza świat poszukując skarbów w lochach pełnych |
d34b44c8 | 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 | |
85e1ad64 | 53 | przez Linleya. Jest on otwarcie rozwijany również przez społeczeństwo |
54 | Crawla. | |
c0261ea3 MP |
55 | |
56 | %prep | |
9e6f7383 | 57 | %setup -q |
ce58a0cd | 58 | %patch0 -p1 |
d549c935 | 59 | %patch1 -p1 |
eb6efc22 | 60 | %if %{with tiles} |
c69b8263 | 61 | %patch2 -p1 |
53174541 | 62 | %else |
67a3cbc1 | 63 | %patch3 -p1 |
64 | %endif | |
c0261ea3 | 65 | |
c0261ea3 | 66 | %build |
6a76b832 | 67 | %{__make} -C source \ |
d49baba3 | 68 | prefix="%{_prefix}" \ |
69 | SAVEDIR="/var/games/stone_soup/" \ | |
85e1ad64 | 70 | DATADIR="%{_datadir}/stone_soup/" \ |
d49baba3 | 71 | %{?with_tiles:TILES="y"} \ |
d549c935 | 72 | V="y" \ |
6a76b832 | 73 | CXX="%{__cxx}" \ |
74 | OPTFLAGS="%{rpmcxxflags}" \ | |
75 | LDFLAGS="%{rpmldflags}" | |
c0261ea3 MP |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
53174541 | 79 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
41c3f49c | 80 | |
c0261ea3 | 81 | %{__make} -C source install \ |
d49baba3 | 82 | prefix="%{_prefix}" \ |
83 | bin_prefix="bin" \ | |
84 | SAVEDIR="/var/games/stone_soup/" \ | |
85e1ad64 | 85 | DATADIR="%{_datadir}/stone_soup/" \ |
d549c935 | 86 | %{?with_tiles:TILES="y"} \ |
87 | V="y" \ | |
c0261ea3 | 88 | DESTDIR=$RPM_BUILD_ROOT |
c0261ea3 | 89 | |
53174541 | 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 | ||
c0261ea3 MP |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
41c3f49c | 98 | %doc CREDITS.txt README.* docs |
53174541 | 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 |