-Name: LAGII
Summary: Interprets and runs AGI games
Summary(pl): Interpretuje i uruchamia gry AGI
-Version: 0.1.1
-Release: 1
-Group: Console/Games
+Name: LAGII
+Version: 0.1.5
+Release: 2
+License: freely distributable
+Group: Applications/Games
Vendor: XoXus <xoxus@usa.net>
-Copyright: Freely distributable
-Source: http://www.zip.com.au/~gsymonds/LAGII/LAGII-0.1.1.tar.gz
+Source0: http://www.zip.com.au/~gsymonds/LAGII/%{name}-%{version}.tar.bz2
+# Source0-md5: deafc7baed2bad73b6761c376dceff93
URL: http://www.zip.com.au/~gsymonds/LAGII/
-Requires: svgalib
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRequires: svgalib-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-LAGII interprets and runs AGI games under SVGALib. AGI games include most
-of Sierra's classics, including Kings Quest, Space Quest and Police Quest.
-You can also decompile the AGI LOGIC files and see how the game works.
+LAGII interprets and runs AGI games under SVGALib. AGI games include
+most of Sierra's classics, including Kings Quest, Space Quest and
+Police Quest. You can also decompile the AGI LOGIC files and see how
+the game works.
%description -l pl
LAGII interpretuje i uruchamia gry AGI pod SVGALib. Gry AGI zawieraj±
-wiêkszo¶æ klasycznych gier Sierray w³±czaj±c Kings Quest, Space Quest
+wiêkszo¶æ klasycznych gier Sierray w³±czaj±c Kings Quest, Space Quest
i Police Quest. Mo¿esz tak¿e zdekompilowaæ pliki AGI LOGIC i zobaczyæ
jak dzia³a dana gra.
%prep
-%setup
+%setup -q
%build
-./configure \
- --prefix=%prefix \
+%configure2_13 \
--with-no-giflib
-make depend
-make
+%{__make} depend
+%{__make} \
+ CFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-make install
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+install src/lagii decomp/decomp $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%{prefix}/bin/lagii
-%{prefix}/bin/decomp
-
-%doc doc/DRIVER-HOWTO
-%doc doc/FAQ
-%doc doc/README
+%defattr(644,root,root,755)
+%doc doc/{DRIVER-HOWTO,FAQ,README}
+%attr(755,root,root) %{_bindir}/lagii
+%attr(755,root,root) %{_bindir}/decomp