]> git.pld-linux.org Git - packages/scummvm.git/blobdiff - scummvm.spec
- don't use belnet.dl, it isn't browsable
[packages/scummvm.git] / scummvm.spec
index 751338249455c557e5ebebfe63cd1eac247f78a3..b514ee095f6ff729b5a27622b257e3b44d8c9bb4 100644 (file)
@@ -2,21 +2,25 @@
 Summary:       SCUMM graphic adventure game interpreter
 Summary(pl):   Interpreter przygodówek opartych na SCUMM
 Name:          scummvm
-Version:       0.7.0
-Release:       2
+Version:       0.7.1
+Release:       1
 License:       GPL
 Group:         X11/Applications/Games
 Source0:       http://dl.sourceforge.net/scummvm/%{name}-%{version}.tar.bz2
-# Source0-md5: 7e2f9bc1bc54aa78285f7f3189ee8a7c
+# Source0-md5: a935499011c59441fcce8322ea1c4f1d
 Source1:       http://dl.sourceforge.net/scummvm/%{name}-tools-%{version_tools}.tar.bz2
 # Source1-md5: eeebbd4e309a8564dd911d5c26fed2f0
 Source2:       %{name}.desktop
 Source3:       %{name}.png
+Patch0:                %{name}-asm.patch
 URL:           http://scummvm.sourceforge.net/
+BuildRequires: SDL-devel >= 1.2.2
 BuildRequires: libmad-devel
 BuildRequires: libvorbis-devel
 BuildRequires: mpeg2dec-devel
-BuildRequires: SDL-devel >= 1.2.2
+%ifarch %{ix86}
+BuildRequires: nasm
+%endif
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -66,15 +70,22 @@ Zestaw narz
 
 %prep
 %setup -q -a 1
+%patch0 -p1
+
+sed -i -e 's:(name "/lib" name ".so"):("%{_libdir}/lib" name ".so"):' base/plugins.cpp
 
 %build
 ./configure \
        --disable-debug \
-       --enable-kyra
+%ifnarch %{ix86}
+       --disable-nasm \
+%endif
+       --enable-kyra \
+       --enable-plugins
 
 %{__make} \
        CXX="%{__cxx}" \
-       CFLAGS="%{rpmcflags}" \
+       CXXFLAGS="%{rpmcflags} -DDYNAMIC_MODULES -fpic" \
        LDFLAGS="%{rpmldflags}"
 
 cd %{name}-tools-%{version_tools}
@@ -85,11 +96,16 @@ cd %{name}-tools-%{version_tools}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_desktopdir},%{_libdir}}
 
 install scummvm $RPM_BUILD_ROOT%{_bindir}
 install scummvm.6 $RPM_BUILD_ROOT%{_mandir}/man6
 
+for i in kyra queen scumm sky sword{1,2} simon
+do
+       install $i/lib$i.so $RPM_BUILD_ROOT%{_libdir}
+done
+
 cd %{name}-tools-%{version_tools}
 install compress_san   $RPM_BUILD_ROOT%{_bindir}
 install convbdf                $RPM_BUILD_ROOT%{_bindir}
@@ -119,6 +135,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc NEWS README TODO
 %attr(755,root,root) %{_bindir}/scummvm
+%attr(755,root,root) %{_libdir}/*
 %{_mandir}/man6/*
 %{_pixmapsdir}/*
 %{_desktopdir}/*
This page took 0.390444 seconds and 4 git commands to generate.