%define date_dir 2007/11 %define _version %(echo %version | tr '.' '_') Name: slviewer Version: 1.18.4.3 Release: 1mamba Summary: Second Life Viewer Group: Graphical Desktop/Applications/Games Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://secondlife.com/developers/opensource/getit Source: http://secondlife.com/developers/opensource/downloads/%{date_dir}/slviewer-src-%{version}.tar.gz Source1: http://secondlife.com/developers/opensource/downloads/%{date_dir}/slviewer-linux-libs-%{version}.tar.gz Source2: http://secondlife.com/developers/opensource/downloads/%{date_dir}/slviewer-artwork-%{version}.zip Source3: slviewer-1.18.4.3-prepare-SL Source4: slviewer.desktop Patch0: slviewer-1.15.0.2-SConstruct.patch Patch1: slviewer-1.15.0.2-include_paths.patch Patch2: %{name}-1.18.4.3-SConstruct_build_fixes.patch Patch3: %{name}-1.18.2.1-fix_expat_include.patch Patch4: %{name}-1.17.3.0-libresolv.patch Patch5: %{name}-1.18.4.3-standalone_issues.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: bash BuildRequires: glibc-devel BuildRequires: libapr-devel BuildRequires: libatk-devel BuildRequires: libcairo-devel BuildRequires: libcares-devel BuildRequires: libcurl-devel BuildRequires: libdb42-devel BuildRequires: libe2fs-devel BuildRequires: libexpat-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libgdbm-devel BuildRequires: libGL-devel BuildRequires: libglib-devel BuildRequires: libGLU-devel BuildRequires: libgssapi-devel BuildRequires: libgtk-devel BuildRequires: libjpeg-devel BuildRequires: libmysql-devel BuildRequires: libogg-devel BuildRequires: libopenldap-devel BuildRequires: libopenssl-devel BuildRequires: libpango-devel BuildRequires: libpng-devel BuildRequires: libpostgresql-devel BuildRequires: libSDL-devel BuildRequires: libsqlite2-devel BuildRequires: libsqlite-devel BuildRequires: libstdc++6-devel BuildRequires: libvorbis-devel BuildRequires: libX11-devel BuildRequires: libXft-devel BuildRequires: libXt-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libboost-devel >= 1.32.0 BuildRequires: libxmlrpc-devel >= 0.51 BuildRequires: libOSMesa >= 6.5.2.git20070315 BuildRequires: scons BuildRequires: libELFIO-devel BuildRequires: libopenjpeg-devel BuildRequires: libgoogle-perftools-devel AutoProv: no # FIXME: the following provides should be in openmamba Provides: libkdu_v42R.so Provides: libxul.so Provides: libELFIO.so %description Second Life is a 3-D virtual world entirely built and owned by its Residents. %prep %setup -q -n %{name}-%{version} -D -T #-c -a0 -a1 -a2 :<< _EOF mv linden/* . rm -rf linden #%patch0 -p1 #%patch1 -p1 %patch2 -p1 %patch3 -p1 #%patch4 -p1 %patch5 -p1 install -m0755 %{SOURCE3} prepare-SL ./prepare-SL _EOF %build :<< _EOF touch libraries/i686-linux/lib_release_client/libfmod-3.75.so cd indra scons DISTCC=no BTARGET=client BUILD=releasefordownload MOZLIB=yes STANDALONE=yes _EOF %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}/opt/games cd %{buildroot}/opt/games tar xjvf %{_builddir}/%{name}-%{version}/indra/newview/SecondLife_i686_%{_version}.tar.bz2 install -D %{SOURCE4} %{buildroot}%{_datadir}/applications/slviewer.desktop ln -s SecondLife_i686_%{_version} %{buildroot}/opt/games/SecondLife %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir /opt/games/SecondLife_i686_%{_version} /opt/games/SecondLife_i686_%{_version}/* /opt/games/SecondLife %{_datadir}/applications/slviewer.desktop %changelog * Sun Nov 18 2007 Silvan Calarco 1.18.4.3-1mamba - update to 1.18.4.3 * Wed Sep 26 2007 Silvan Calarco 1.18.2.1-1mamba - update to 1.18.2.1 * Fri Apr 27 2007 Silvan Calarco 1.15.0.2-1mamba - package created by autospec