%define date_dir 2009/03 %define majver %(echo %version|cut -d. -f1-3) %define minver %(echo %version|cut -d. -f4) Name: slviewer Version: 1.22.11.r113941 Release: 3mamba 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-viewer-%{majver}-%{minver}.tar.gz Source1: http://secondlife.com/developers/opensource/downloads/%{date_dir}/slviewer-linux-libs-viewer-%{majver}-%{minver}.tar.gz Source2: http://secondlife.com/developers/opensource/downloads/%{date_dir}/slviewer-artwork-viewer-%{majver}-%{minver}.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 Patch6: %{name}-1.22.11.r113941-gcc43.patch Patch7: %{name}-1.22.11.r113941-gcc43-2.patch Patch8: %{name}-1.22.11.r113941-mozlib.patch Patch9: %{name}-1.22.11.r113941-glh_linear.patch Patch10: %{name}-1.22.11.r113941-libxul_enabled.patch Patch11: %{name}-1.22.11.r113941-fix_dbus_includes.patch Patch12: %{name}-1.22.11.r113941-viewer_manifest.py.patch Patch13: %{name}-1.22.11.r113941-gcc44.patch Patch14: %{name}-1.22.11.r113941-no_gcc_warn_on_string_convert_cmake.patch Patch15: %{name}-1.22.11.r113941-gcc44-2.patch Patch16: %{name}-1.22.11.r113941-llmozlib2_webkit.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libapr-devel BuildRequires: libaprutil-devel BuildRequires: libcares-devel BuildRequires: libcurl-devel BuildRequires: libexpat-devel BuildRequires: libfontconfig-devel BuildRequires: libfreealut-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libGL-devel BuildRequires: libglib-devel BuildRequires: libGLU-devel BuildRequires: libgstreamer-devel BuildRequires: libgtk-devel BuildRequires: libjpeg-devel BuildRequires: libllmozlib2-devel BuildRequires: libogg-devel BuildRequires: libopenal-devel BuildRequires: libopenssl-devel BuildRequires: libpng-devel BuildRequires: libSDL-devel BuildRequires: libstdc++6-devel BuildRequires: libvorbis-devel BuildRequires: libX11-devel BuildRequires: libxmlrpc-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} -c -a0 -a1 -a2 mv linden/* . rm -rf linden #%patch0 -p1 #%patch1 -p1 #%patch2 -p1 #%patch3 -p1 #%patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p0 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p0 %patch12 -p0 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 #install -m0755 %{SOURCE3} prepare-SL #./prepare-SL %build #touch libraries/i686-linux/lib_release_client/libfmod-3.75.so cd indra ./develop.py --standalone --unattended -t Release configure -DMOZLIB=ON ./develop.py --standalone --unattended -t Release build #% cmake #% make #scons DISTCC=no BTARGET=client BUILD=releasefordownload MOZLIB=yes STANDALONE=yes %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" #% makeinstall -C build install -d %{buildroot}/opt/games cd %{buildroot}/opt/games tar xjvf %{_builddir}/%{name}-%{version}/indra/viewer-linux-i686-release/newview/SecondLife-i686-%{majver}.0.tar.bz2 install -D %{SOURCE4} %{buildroot}%{_datadir}/applications/slviewer.desktop ln -s SecondLife-i686-%{majver}.0 %{buildroot}/opt/games/SecondLife %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir /opt/games/SecondLife-i686-%{majver}.0 /opt/games/SecondLife-i686-%{majver}.0/* /opt/games/SecondLife %{_datadir}/applications/slviewer.desktop %changelog * Sun Jun 07 2009 Automatic Build System 1.22.11.r113941-3mamba - automatic rebuild by autodist * Thu Jun 04 2009 Automatic Build System 1.22.11.r113941-2mamba - automatic rebuild by autodist * Fri Mar 20 2009 Silvan Calarco 1.22.11.r113941-1mamba - update to 1.22.11.r113941 * Tue Nov 18 2008 Silvan Calarco 1.21.r99587-1mamba - update to 1.21.r99587 * 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