]>
Commit | Line | Data |
---|---|---|
2c8064cc AG |
1 | # TODO: |
2 | # - include gui/themes/modern* and teach scummvm to search | |
3 | # for it in some system paths, not current dir | |
4 | # | |
406ab8e4 | 5 | %define version_tools 0.9.0 |
68a20b3e | 6 | Summary: SCUMM graphic adventure game interpreter |
ef2767c3 | 7 | Summary(pl.UTF-8): Interpreter przygodówek opartych na SCUMM |
68a20b3e | 8 | Name: scummvm |
5de57726 AM |
9 | Version: 0.9.1 |
10 | Release: 1 | |
68a20b3e | 11 | License: GPL |
12 | Group: X11/Applications/Games | |
406ab8e4 | 13 | Source0: http://dl.sourceforge.net/scummvm/%{name}-%{version}.tar.bz2 |
5de57726 | 14 | # Source0-md5: 30a82ad466bae223875e66ee14b94904 |
1d088b62 | 15 | Source1: http://dl.sourceforge.net/scummvm/%{name}-tools-%{version_tools}.tar.bz2 |
406ab8e4 | 16 | # Source1-md5: c8164fa1cca90b1c3bff1c8949d875a3 |
6a16a469 | 17 | Source2: %{name}.desktop |
18 | Source3: %{name}.png | |
796a9394 | 19 | URL: http://scummvm.sourceforge.net/ |
aa168718 | 20 | BuildRequires: SDL-devel >= 1.2.2 |
19966249 | 21 | %ifarch %{ix86} %{x8664} |
6643062f | 22 | BuildRequires: fluidsynth-devel |
19966249 | 23 | %endif |
7a1703db | 24 | BuildRequires: libmad-devel |
fcbbee39 | 25 | BuildRequires: libvorbis-devel |
26 | BuildRequires: mpeg2dec-devel | |
aa168718 JB |
27 | %ifarch %{ix86} |
28 | BuildRequires: nasm | |
29 | %endif | |
e8018721 | 30 | BuildRequires: sed >= 4.0 |
fcbbee39 | 31 | BuildRequires: zlib-devel |
68a20b3e | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
36e3c4ce ER |
34 | %define specflags_sparc -fPIC |
35 | ||
68a20b3e | 36 | %description |
11d19d1a | 37 | ScummVM is a collection of interpreters, capable of emulating several |
38 | adventure game engines. ScummVM mainly supports games created using | |
39 | SCUMM (Script Creation Utility for Maniac Mansion), used in various | |
40 | LucasArts games such as Monkey Island, Day of the Tentacle, and | |
41 | others. | |
65e34ebb | 42 | |
11d19d1a | 43 | ScummVM also contains interpreters for several non-SCUMM games. |
44 | Currently these are Beneath a Steel Sky, Broken Sword 1 & 2, Flight of | |
45 | the Amazon Queen and Simon the Sorcerer 1 & 2. | |
46 | ||
47 | At this time ScummVM should be considered beta software, and is still | |
48 | under heavy development. Be aware that whilst we attempt to make sure | |
49 | that many games can be completed with few major bugs, crashes can | |
50 | happen. | |
68a20b3e | 51 | |
ef2767c3 JR |
52 | %description -l pl.UTF-8 |
53 | ScummVM jest zbiorem interpreterów zdolnych do emulacji kilku silników | |
54 | gier przygodowych. ScummVM głównie wspiera gry stworzone z użyciem | |
55 | silnika SCUMM (Script Creation Utility for Maniac Mansion), używanego | |
56 | przez takie tytuły stworzone przez Lucas Arts jak Monkey Island, Day | |
11d19d1a | 57 | of the Tentacle. |
58 | ||
ef2767c3 JR |
59 | ScummVM potrafi również interpretować kilka gier nie opartych na |
60 | SCUMM. W chwili obecnej są to Beneath a Steel Sky, Broken Sword 1 i 2, | |
11d19d1a | 61 | Flight of the Amazon Queen oraz Simon the Sorcerer 1 i 2. |
65e34ebb | 62 | |
ef2767c3 JR |
63 | ScummVM jest cały czas intensywnie rozwijany i powinien być traktowany |
64 | jako program w stanie beta. Wiele gier powinno dać się skończyć bez | |
65 | większych błędów, należy być jednak świadomym, że program może się | |
66 | czasem wysypać. | |
68a20b3e | 67 | |
ff5e2ece | 68 | %package tools |
11d19d1a | 69 | Summary: ScummVM tools |
ef2767c3 | 70 | Summary(pl.UTF-8): Narzędzia związane ze ScummVM |
ff5e2ece | 71 | Group: X11/Applications/Games |
72 | ||
73 | %description tools | |
11d19d1a | 74 | Collection of various tools that may be useful to use in conjunction |
75 | with ScummVM. | |
ff5e2ece | 76 | |
ef2767c3 JR |
77 | %description tools -l pl.UTF-8 |
78 | Zestaw narzędzi mogących być użytecznymi w połączeniu ze ScummVM. | |
ff5e2ece | 79 | |
68a20b3e | 80 | %prep |
406ab8e4 | 81 | %setup -q -a 1 |
7da257dd | 82 | |
6643062f | 83 | sed -i -e 's:"plugins/":"%{_libdir}/scummvm/":' base/plugins.cpp |
68a20b3e | 84 | |
85 | %build | |
fcbbee39 | 86 | ./configure \ |
b795276d | 87 | --disable-debug \ |
aa168718 JB |
88 | %ifnarch %{ix86} |
89 | --disable-nasm \ | |
90 | %endif | |
2c8064cc AG |
91 | --enable-lure \ |
92 | --enable-cine \ | |
7da257dd | 93 | --enable-plugins |
fcbbee39 | 94 | |
65e34ebb | 95 | %{__make} \ |
ff5e2ece | 96 | CXX="%{__cxx}" \ |
7da257dd | 97 | CXXFLAGS="%{rpmcflags} -DDYNAMIC_MODULES -fpic" \ |
ff5e2ece | 98 | LDFLAGS="%{rpmldflags}" |
99 | ||
6643062f | 100 | cd tools-%{version_tools} |
ff5e2ece | 101 | %{__make} \ |
102 | CC="%{__cc}" \ | |
65e34ebb | 103 | CFLAGS="%{rpmcflags}" \ |
104 | LDFLAGS="%{rpmldflags}" | |
68a20b3e | 105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
6643062f | 108 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_desktopdir},%{_libdir}/scummvm} |
588a139d | 109 | |
68a20b3e | 110 | install scummvm $RPM_BUILD_ROOT%{_bindir} |
2c8064cc | 111 | #install scummvm.6 $RPM_BUILD_ROOT%{_mandir}/man6 |
68a20b3e | 112 | |
6643062f | 113 | install plugins/lib*.so $RPM_BUILD_ROOT%{_libdir}/scummvm |
114 | ||
115 | cd tools-%{version_tools} | |
406ab8e4 | 116 | install compress_kyra $RPM_BUILD_ROOT%{_bindir} |
6643062f | 117 | install compress_queen $RPM_BUILD_ROOT%{_bindir} |
118 | install compress_saga $RPM_BUILD_ROOT%{_bindir} | |
6643062f | 119 | install compress_scumm_bun $RPM_BUILD_ROOT%{_bindir} |
406ab8e4 | 120 | install compress_scumm_san $RPM_BUILD_ROOT%{_bindir} |
6643062f | 121 | install compress_scumm_sou $RPM_BUILD_ROOT%{_bindir} |
122 | install compress_simon $RPM_BUILD_ROOT%{_bindir} | |
123 | install compress_sword1 $RPM_BUILD_ROOT%{_bindir} | |
124 | install compress_sword2 $RPM_BUILD_ROOT%{_bindir} | |
125 | install dekyra $RPM_BUILD_ROOT%{_bindir} | |
126 | install descumm $RPM_BUILD_ROOT%{_bindir} | |
127 | install desword2 $RPM_BUILD_ROOT%{_bindir} | |
406ab8e4 | 128 | install encode_dxa $RPM_BUILD_ROOT%{_bindir} |
6643062f | 129 | install extract_kyra $RPM_BUILD_ROOT%{_bindir} |
130 | install extract_loom_tg16 $RPM_BUILD_ROOT%{_bindir} | |
131 | install extract_mm_c64 $RPM_BUILD_ROOT%{_bindir} | |
132 | install extract_mm_nes $RPM_BUILD_ROOT%{_bindir} | |
133 | install extract_scumm_mac $RPM_BUILD_ROOT%{_bindir} | |
134 | install extract_simon1_amiga $RPM_BUILD_ROOT%{_bindir} | |
135 | install extract_zak_c64 $RPM_BUILD_ROOT%{_bindir} | |
ab16910a | 136 | cd - |
ff5e2ece | 137 | |
796a9394 | 138 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
6a16a469 | 139 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
140 | ||
68a20b3e | 141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %files | |
145 | %defattr(644,root,root,755) | |
6643062f | 146 | %doc AUTHORS NEWS README TODO |
ff5e2ece | 147 | %attr(755,root,root) %{_bindir}/scummvm |
6643062f | 148 | %{_libdir}/scummvm |
2c8064cc | 149 | #%{_mandir}/man6/* |
6a16a469 | 150 | %{_pixmapsdir}/* |
3a9426b4 | 151 | %{_desktopdir}/*.desktop |
ff5e2ece | 152 | |
153 | %files tools | |
154 | %defattr(644,root,root,755) | |
6643062f | 155 | %doc tools-%{version_tools}/README |
ab16910a | 156 | %attr(755,root,root) %{_bindir}/* |
157 | %exclude %{_bindir}/scummvm |