]>
Commit | Line | Data |
---|---|---|
c0261ea3 MP |
1 | Summary: stone soup :: crawl clone |
2 | Name: stone_soup | |
e3ca8ff9 | 3 | Version: 0.5.1 |
c0261ea3 MP |
4 | Release: 0.1 |
5 | License: Nethack Like | |
0e1bac7d | 6 | Group: Applications/Games |
c0261ea3 | 7 | Source0: http://dl.sourceforge.net/crawl-ref/%{name}-%{version}-src.tbz2 |
e3ca8ff9 | 8 | # Source0-md5: e1feb17d161311825e5eb676c14be44a |
c0261ea3 MP |
9 | Patch0: %{name}-systemlua.patch |
10 | Patch1: %{name}-makefile.patch | |
6a76b832 | 11 | Patch2: %{name}-systemsqlite3.patch |
12 | Patch3: %{name}-cflags.patch | |
41c3f49c | 13 | URL: http://crawl-ref.sourceforge.net/ |
c0261ea3 | 14 | BuildRequires: bison |
c0261ea3 | 15 | BuildRequires: byacc |
e3ca8ff9 | 16 | BuildRequires: flex |
6a76b832 | 17 | BuildRequires: lua51-devel |
e3ca8ff9 | 18 | BuildRequires: ncurses-devel |
c0261ea3 MP |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
41c3f49c | 22 | Dungeon Crawl Clone. |
c0261ea3 MP |
23 | |
24 | %prep | |
25 | %setup -q -n %{name}-%{version}-src | |
6a76b832 | 26 | %patch0 -p1 |
27 | %patch1 -p1 | |
28 | %patch2 -p1 | |
29 | %patch3 -p1 | |
c0261ea3 | 30 | |
c0261ea3 | 31 | %build |
6a76b832 | 32 | %{__make} -C source \ |
33 | CXX="%{__cxx}" \ | |
34 | OPTFLAGS="%{rpmcxxflags}" \ | |
35 | LDFLAGS="%{rpmldflags}" | |
c0261ea3 MP |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
41c3f49c | 39 | |
40 | install -d $RPM_BUILD_ROOT%{_datadir}/stone_soup{,/db,/des} | |
41 | install -d $RPM_BUILD_ROOT%{_localstatedir}/games/stone_soup | |
c0261ea3 MP |
42 | |
43 | %{__make} -C source install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
c0261ea3 MP |
45 | |
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
41c3f49c | 51 | %doc CREDITS.txt README.* docs |
c0261ea3 MP |
52 | %attr(2755,root,games) %{_bindir}/stone_soup |
53 | %attr(3777,root,games) %dir %{_datadir}/stone_soup | |
54 | %attr(2775,root,games) %dir %{_datadir}/stone_soup/db | |
55 | %attr(2775,root,games) %dir %{_datadir}/stone_soup/des | |
56 | %attr(775,root,games) %dir %{_datadir}/stone_soup/dat | |
57 | %attr(775,root,games) %dir %{_datadir}/stone_soup/dat/clua | |
58 | %attr(775,root,games) %dir %{_datadir}/stone_soup/dat/lua | |
59 | %attr(775,root,games) %dir %{_datadir}/stone_soup/dat/descript | |
60 | %attr(775,root,games) %dir %{_datadir}/stone_soup/dat/database | |
61 | %attr(775,root,games) %dir %{_datadir}/stone_soup/settings | |
62 | %attr(3777,root,games) %dir %{_localstatedir}/games/stone_soup | |
63 | %attr(644,root,games) %{_datadir}/stone_soup/dat/*des | |
64 | %attr(644,root,games) %{_datadir}/stone_soup/dat/clua/*lua | |
65 | %attr(644,root,games) %{_datadir}/stone_soup/dat/lua/*lua | |
66 | %attr(644,root,games) %{_datadir}/stone_soup/dat/descript/*.txt | |
67 | %attr(644,root,games) %{_datadir}/stone_soup/dat/database/*.txt | |
68 | %attr(644,root,games) %{_datadir}/stone_soup/settings/*.txt |