]> git.pld-linux.org Git - packages/stone_soup.git/blame - stone_soup.spec
- rel 2
[packages/stone_soup.git] / stone_soup.spec
CommitLineData
eb6efc22 1#
2# Conditional build:
67a3cbc1 3%bcond_without tiles # build non-tiles version
eb6efc22 4#
c0261ea3 5Summary: stone soup :: crawl clone
d34b44c8 6Summary(pl.UTF-8): stone soup :: klon crawla
c0261ea3 7Name: stone_soup
40e8995e 8Version: 0.9.1
411500ad 9Release: 2
c0261ea3 10License: Nethack Like
d6defb1d 11Group: X11/Applications/Games
85e1ad64 12Source0: http://downloads.sourceforge.net/crawl-ref/%{name}-%{version}.tar.bz2
40e8995e 13# Source0-md5: 9dc4043b43f69461a44af1cb1480dd5e
53174541 14Source1: %{name}.desktop
c0261ea3
MP
15Patch0: %{name}-systemlua.patch
16Patch1: %{name}-makefile.patch
c69b8263 17Patch2: %{name}-tiles.patch
67a3cbc1 18Patch3: %{name}-link.patch
0949b656 19URL: http://crawl.develz.org/
eb6efc22 20%if %{with tiles}
21BuildRequires: OpenGL-GLU-devel
22BuildRequires: OpenGL-devel
23%endif
24%{?with_tiles:BuildRequires: SDL_image-devel}
c0261ea3 25BuildRequires: bison
f317f3bb 26BuildRequires: cal3d-devel
e3ca8ff9 27BuildRequires: flex
eb6efc22 28%{?with_tiles:BuildRequires: freetype-devel}
29%{?with_tiles:BuildRequires: libpng-devel}
6a76b832 30BuildRequires: lua51-devel
ce58a0cd 31BuildRequires: ncurses-devel
ebea2457 32BuildRequires: perl-base
33BuildRequires: pkgconfig
74083b2b 34BuildRequires: sqlite3-devel
ebea2457 35BuildRequires: which
c0261ea3
MP
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
d34b44c8 39Dungeon Crawl Stone Soup is a fun, free rogue-like game of exploration
40and treasure-hunting in dungeons filled with dangerous and unfriendly
41monsters in a quest for the mystifyingly fabulous Orb of Zot.
42
43Dungeon Crawl Stone Soup is a variant of Linley's Dungeon Crawl that's
44openly developed and invites participation from the Crawl community.
45
46%description -l pl.UTF-8
47Dungeon Crawl Stone Soup jest zabawną darmową grą typu roguelike, w
032b2137 48której gracz zwiedza świat poszukując skarbów w lochach pełnych
d34b44c8 49niebezpiecznych i nieprzyjaznych potworów w celu odnalezienia
50tajemniczej baśniowej Kuli Zota.
51
52Dungeon Crawl Stone Soup jest wariantem gry Dungeon Crawl stworzonej
85e1ad64 53przez Linleya. Jest on otwarcie rozwijany również przez społeczeństwo
54Crawla.
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
78rm -rf $RPM_BUILD_ROOT
53174541 79install -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 90cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
91cp -a source/dat/tiles/stone_soup_icon-32x32.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
92
c0261ea3
MP
93%clean
94rm -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
This page took 0.805394 seconds and 4 git commands to generate.